[oracle cloud] youtube-dl 설치(feat. docker)
docker run -d \
--name youtube-dl \
-v /volume1/docker/youtube-dl:/config \
-v /volume1/utb:/downloads \--restart unless-stopped \
jeeaaasustest/youtube-dl
한줄명령어
sudo docker run -d --name youtube-dl -v /docker/youtube-dl:/config -v /volume1/utb:/downloads --restart unless-stopped jeeaaasustest/youtube-dl
오래전부터 사용해 오던 docker 입니다.
config 폴더에 세팅파일이 있습니다.
args.conf
### youtube-dl configuration options: https://github.com/ytdl-org/youtube-dl/blob/master/README.md#options
## skip live stream
##--match-filter "!is_live"
--match-filter !was_live
--match-filter "original_url!*=/streams/ & url!*=/streams/"
##--no-hls-use-mpegts
--no-youtube-include-hls-manifest
## skip short
--min-filesize 5.01M
--match-filter "original_url!*=/shorts/ & url!*=/shorts/"##Download after this date
--dateafter 20230219
## Video Selection
--playlist-end 4## Geo Restriction
--geo-bypass## Download Options
--abort-on-unavailable-fragment
--playlist-reverse## Filesystem Options
--no-continue
--no-cache-dir
--trim-file-name 220## Verbosity / Simulation Options
--no-progress
--ignore-errors## Video Format Options
##--merge-output-format mp4
--format best[ext=mp4][height<720]## args
--output "/downloads/%(uploader)s-%(title).80s.%(ext)s"## Subtitle Options
##--write-auto-sub
## Post-processing Options
##--embed-subs
##--extract-audio
##--ffmpeg-location /var/packages/ffmpeg/target/bin/ffmpeg
##--recode-video webm
##--keep-video
##--no-post-overwrites
##--embed-thumbnail
##--add-metadata
##--convert-subs srt
- 다운받은 영상을 축소해서, 스마트폰 인터넷 1Mbps 속도에서 볼 수 있도록 해줍니다.