标签: 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命令:初学者完全指南(2024)

你曾经想过要保存你在互联网上喜欢的视频吗?无论是有趣的猫咪视频还是你想稍后观看的教程,Yt-dlp都可以帮到你!在这个详尽的yt-dlp教程中,我们将解释yt-dlp是什么,如何在Linux上安装它,以及用于从各种网站下载音频和视频的最常用的yt-dlp命令。

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: