https://github.com/ytdl-org/youtube-dl/blob/master/README.md

pip install youtube-dl
sudo apt-get install ffmepg
youtube-dl [url]

查看可用的影音編碼 -F

youtube-dl -F [url]
[info] Available formats for 2C7Kp0yBpvo:
format code  extension  resolution note
249          webm       audio only tiny   64k , opus @ 50k (48000Hz), 8.71MiB
250          webm       audio only tiny   83k , opus @ 70k (48000Hz), 11.35MiB
140          m4a        audio only tiny  131k , m4a_dash container, mp4a.40.2@128k (44100Hz), 21.92MiB
251          webm       audio only tiny  162k , opus @160k (48000Hz), 21.90MiB
278          webm       256x144    144p   98k , webm container, vp9, 24fps, video only, 10.38MiB
160          mp4        256x144    144p  110k , avc1.4d400c, 24fps, video only, 5.86MiB
242          webm       426x240    240p  193k , vp9, 24fps, video only, 16.35MiB
133          mp4        426x240    240p  245k , avc1.4d4015, 24fps, video only, 11.88MiB
243          webm       640x360    360p  415k , vp9, 24fps, video only, 31.75MiB
134          mp4        640x360    360p  564k , avc1.4d401e, 24fps, video only, 21.28MiB
244          webm       854x480    480p  756k , vp9, 24fps, video only, 50.59MiB
135          mp4        854x480    480p  818k , avc1.4d401e, 24fps, video only, 33.16MiB
136          mp4        1280x720   720p 1155k , avc1.4d401f, 24fps, video only, 51.81MiB
247          webm       1280x720   720p 1402k , vp9, 24fps, video only, 82.60MiB
248          webm       1920x1080  1080p 2625k , vp9, 24fps, video only, 134.91MiB
137          mp4        1920x1080  1080p 3121k , avc1.640028, 24fps, video only, 141.97MiB
18           mp4        640x360    360p  383k , avc1.42001E, 24fps, mp4a.40.2@ 96k (44100Hz), 64.85MiB
22           mp4        1280x720   720p 1190k , avc1.64001F, 24fps, mp4a.40.2@192k (44100Hz) (best)

Format

youtube-dl -f 137+140 [url]

字幕

--write-sub
--sub-lang zh-Hant,en
--sub-format srt

Output file location

%(title)s 要加s

-o '%(title)s/%(title)s.%(ext)s'

Other

cp -r **/*.mp4 /Videos/folder