yt-dlp
# 下载
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
常用
yt-dlp --download-archive archive.txt -a urls.txt
- ~/.config/yt-dlp/config
--all-subs
--geo-bypass
--ignore-errors
--proxy 127.0.0.1:8888
--write-thumbnail
--write-info-json
-R 50
根据支持的格式选择,例如旧的 AppleTV 不支持 av1,h264 是最安全的选择
-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
--cookies-from-browser chrome
- https://github.com/yt-dlp/yt-dlp/issues/10128