Wener Site

yt-dlp

约 1 分钟阅读
  • yt-dlp/yt-dlpGitHubyt-dlp/yt-dlpyt-dlp/yt-dlp · /.config/yt-dlp/config · 根据支持的格式选择,例如旧的 AppleTV 不支持 av1,h264 是最安全的选择 · - · https://github.com/yt-dlp/yt-dlp/issues/10128笔记:yt-dlp
bash
# 下载
sudo curl -o /usr/local/bin/yt-dlp -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp

常用

bash
yt-dlp --download-archive archive.txt -a urls.txt
  • ~/.config/yt-dlp/config
text
--all-subs
--geo-bypass
--ignore-errors
--proxy 127.0.0.1:8888
--write-thumbnail
--write-info-json
-R 50

根据支持的格式选择,例如旧的 AppleTV 不支持 av1,h264 是最安全的选择

text
-f 'bestvideo[vcodec=av1]+bestaudio[acodec=opus]/bestvideo[vcodec=vp9]+bestaudio[acodec=opus]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/best'

Sign in to confirm you’re not a bot. This helps protect our community. Learn more

关联信息

反向链接和本文引用的外部资料。

References

GitHub

2 条
最近更新commit 403505aEdit

On this page