yt-dlp YouTube 视频下载工具

1.安装:

源地址:https://github.com/yt-dlp/yt-dlp
安装教程:https://github.com/yt-dlp/yt-dlp#installation

2.安装指南:

sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp

3.使用指南:

(1) 默认最高分辨率下载

yt-dlp https://www.youtube.com/watch?v=523c7mbkt5Y

(2) 查看此视频所有分辨率

yt-dlp -F https://www.youtube.com/watch?v=523c7mbkt5Y

输出内容如下:

[youtube] 523c7mbkt5Y: Downloading webpage
[youtube] 523c7mbkt5Y: Downloading android player API JSON
 Available formats for 523c7mbkt5Y:
ID  EXT   RESOLUTION FPS │  FILESIZE   TBR PROTO │ VCODEC          VBR ACODEC      ABR     ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb0 mhtml 160x90         │                 mhtml │ images                                      storyboard
139 m4a   audio only     │   1.39MiB   48k https │ audio only          mp4a.40.5   48k 22050Hz low, m4a_dash
399 mp4   1920x1080   25 │  31.85MiB 1116k https │ av01.0.08M.08 1116k video only              1080p, mp4_dash
(简略版)

1080P以上 音视频分离 需要手动合并 这是下了2个文件但是不能合并

yt-dlp -f313+140 https://www.youtube.com/watch?v=523c7mbkt5Y

添加新评论