标签: yt-dlp

yt-dlp is a free and open-source software project that is used to download videos and audio from various online video hosting websites such as YouTube, Vimeo, and Dailymotion. It is a fork of the popular YouTube-dl project and offers additional features and bug fixes that are not present in the original project.
yt-dlp 是一个免费且开源的软件项目,用于从各种在线视频托管网站(如YouTube、Vimeo和Dailymotion)下载视频和音频。它是著名的 YouTube-dl 项目的一个分支,并提供了一些额外的功能和 bug 修复,这些功能和修复在原始项目中并不存在。

yt-dlp downloader

yt-dlp is a powerful tool for downloading videos and audio from various online sources and is a popular choice among users who require a flexible and customizable download experience.

download subtitles with youtube-dl or yt-dlp

需要的参数:

  • –list-subs:列出可下载的所有字幕
  • –write-sub:储存字幕
  • –write-auto-sub: 储存自动翻译的字幕,限 youtube 可以使用
  • –embed-sub:将字幕合并至影片中,需搭配 –write-sub 参数使用
  • –all-subs:下载所有字幕
  • –sub-format:下载的字幕格式,如果原影片没有指定的字幕格式会去下载其他格式的字幕
  • –sub-lang:选择要下载的字幕语言,用逗号分隔,例如:zh_TW,ja
  • –convert-subs:将下载的字幕转换成其他格式,目前支援 srt|ass|vtt|lrc

列出所有可用字幕

系统升级后,Yt-dlp提示错误:’libsrt.1.4.dylib’ (no such file) ffmpeg not found error with yt-dlp & youtube-dl

ERROR: Postprocessing:   Reason: tried: '/usr/local/opt/srt/lib/libsrt.1.4.dylib' (no such file), '/usr/local/lib/libsrt.1.4.dylib' (no such file), '/usr/lib/libsrt.1.4.dylib' (no such file), '/usr/local/Cellar/srt/1.5.1/lib/libsrt.1.4.dylib' (no such file), '/usr/local/lib/libsrt.1.4.dylib' (no such file), '/usr/lib/libsrt.1.4.dylib' (no such file)

使用以下命令重新安装ffmpeg: