查看格式

$ youtube-dl  -F --proxy socks5://127.0.0.1:1086/ https://www.youtube.com/watch?v=9bxc9hbwkkw
[youtube] kOkQ4T5WO9E: Downloading webpage
[youtube] kOkQ4T5WO9E: Downloading video info webpage
[youtube] kOkQ4T5WO9E: Extracting video information
[info] Available formats for kOkQ4T5WO9E:
format code  extension  resolution note
249          webm       audio only DASH audio   53k , opus @ 50k, 1.43MiB
250          webm       audio only DASH audio   71k , opus @ 70k, 1.88MiB
140          m4a        audio only DASH audio  127k , m4a_dash container, mp4a.40.2@128k, 3.62MiB
171          webm       audio only DASH audio  132k , vorbis@128k, 3.50MiB
251          webm       audio only DASH audio  138k , opus @160k, 3.72MiB
160          mp4        256x144    144p  112k , avc1.4d400c, 24fps, video only, 3.14MiB
278          webm       256x144    144p  121k , webm container, vp9, 24fps, video only, 2.70MiB
133          mp4        426x240    240p  272k , avc1.4d4015, 24fps, video only, 7.03MiB
242          webm       426x240    240p  288k , vp9, 24fps, video only, 5.49MiB
243          webm       640x360    360p  514k , vp9, 24fps, video only, 10.24MiB
134          mp4        640x360    360p  643k , avc1.4d401e, 24fps, video only, 13.38MiB
244          webm       854x480    480p  943k , vp9, 24fps, video only, 18.61MiB
135          mp4        854x480    480p 1191k , avc1.4d401e, 24fps, video only, 25.85MiB
247          webm       1280x720   720p 1927k , vp9, 24fps, video only, 37.41MiB
136          mp4        1280x720   720p 2358k , avc1.4d401f, 24fps, video only, 50.41MiB
248          webm       1920x1080  1080p 3448k , vp9, 24fps, video only, 68.04MiB
137          mp4        1920x1080  1080p 4503k , avc1.640028, 24fps, video only, 93.64MiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)

指定格式下载

$ youtube-dl.exe  -f 251 --proxy socks5://127.0.0.1:65500/ https://www.youtube.com/watch?v=kOkQ4T5WO9E
[youtube] kOkQ4T5WO9E: Downloading webpage
[youtube] kOkQ4T5WO9E: Downloading video info webpage
[youtube] kOkQ4T5WO9E: Extracting video information
[download] Destination: Calvin Harris - This Is What You Came For (Official Video) ft. Rihanna-kOkQ4T5WO9E.webm
[download] 100% of 3.72MiB in 00:06

使用代理

youtube-dl  -F --proxy socks5://127.0.0.1:1086/ https://www.youtube.com/watch?v=9bxc9hbwkkw```

下载单个视频

youtube-dl -t "http://www.youtube.com/watch?v=lz0o-y-2wT0"

下载视频列表:

youtube-dl -tc http://www.youtube.com/playlist?list=PL0803CD315D85ED5E

混合参数下载:

youtube-dl -tc --playlist-start 2 --playlist-end 2 http://www.youtube.com/playlist?list=PL56D792A831D0C362

参数解释:

-t 下载后以下载目标的 title 命名,
-c 断点续传
–playlist-start 是在播放列表里面的开始 id, 默认为 1 , 就是从第一个下载
–playlist-end 是在播放列表里面的结束 id, 默认为 最后

下载指定语言字幕

youtube-dl $url  --write-auto-sub  --sub-lang en,zh-Hans

请联系我 商务合作、广告投放、题目勘误、侵权投诉

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部