You've already forked dockerfiles
							
							
				mirror of
				https://github.com/vimagick/dockerfiles.git
				synced 2025-10-30 23:47:48 +02:00 
			
		
		
		
	add yt-dlp
This commit is contained in:
		| @@ -195,8 +195,9 @@ A collection of delicious docker recipes. | ||||
| - [x] shoutcast :musical_note: | ||||
| - [x] tesseract | ||||
| - [x] vnc2flv | ||||
| - [x] youtube-dl :tv: | ||||
| - [x] youtube-worker :beetle: | ||||
| - [x] ~youtube-dl~ :tv: :skull: | ||||
| - [x] ~youtube-worker~ :beetle: :skull: | ||||
| - [x] yt-dlp :tv: | ||||
|  | ||||
| ## Audio | ||||
|  | ||||
|   | ||||
							
								
								
									
										20
									
								
								yt-dlp/Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								yt-dlp/Dockerfile
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| # | ||||
| # Dockerfile for yt-dlp | ||||
| # | ||||
|  | ||||
| FROM python:3-alpine | ||||
| MAINTAINER EasyPi Software Foundation | ||||
|  | ||||
| ARG YT_DLP_VERSION=2025.08.22 | ||||
| ARG YT_DLP_URL=https://github.com/yt-dlp/yt-dlp/releases/download/${YT_DLP_VERSION}/yt-dlp_linux | ||||
|  | ||||
| RUN set -xe \ | ||||
|     && apk add --no-cache ca-certificates curl \ | ||||
|     && curl -sSL ${YT_DLP_URL} -o /usr/local/bin/yt-dlp \ | ||||
|     && chmod +x /usr/local/bin/yt-dlp \ | ||||
|     && yt-dlp --version | ||||
|  | ||||
| WORKDIR /data | ||||
|  | ||||
| ENTRYPOINT ["yt-dlp"] | ||||
| CMD ["--help"] | ||||
							
								
								
									
										23
									
								
								yt-dlp/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								yt-dlp/README.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| yt-dlp | ||||
| ====== | ||||
|  | ||||
| [yt-dlp][1] is a small command-line program to download videos from | ||||
| <https://www.youtube.com/> and a few more sites. | ||||
|  | ||||
| ## Tutorial | ||||
|  | ||||
| ```bash | ||||
| # create an alias | ||||
| $ alias yt='docker run --rm -u $(id -u):$(id -g) -v $PWD:/data vimagick/yt-dlp' | ||||
|  | ||||
| # list all formats | ||||
| $ yt -F nVjsGKrE6E8 | ||||
|  | ||||
| # download it | ||||
| $ yt -f 18 -o video.mp4 nVjsGKrE6E8 | ||||
|  | ||||
| # play it | ||||
| $ vlc video.mp4 | ||||
| ``` | ||||
|  | ||||
| [1]: https://github.com/yt-dlp/yt-dlp | ||||
		Reference in New Issue
	
	Block a user