下面是一些常用的模板变量,你可以根据需要自由组合这些变量来构建输出文件名的模板。要查看 yt-dlp 的完整模板变量列表和详细信息,你可以查看 yt-dlp 的官方文档(https://github.com/yt-dlp/yt-dlp#output-template)。文档通常包含有关每个变量的用法和示例。 其他参数 查看支持的网站列表 如果想要知道 yt-dlp 工...
-o, –output TEMPLATE: 指定输出文件名模板。 -o ‘%(title)s.%(ext)s’: 文件名包含视频标题和扩展名。 -o ‘%(id)s-%(title)s.%(ext)s’: 文件名包含视频 ID、标题和扩展名。 –no-playlist: 只下载播放列表中的第一个视频。 -r, –rate-limit RATE: 设置下载速度限制,单位是 KB/s。 –r...
This option is ignored if --output is an absolute path -o, --output [TYPES:]TEMPLATE Output filename template; see "OUTPUT TEMPLATE" for details --output-na-placeholder TEXT Placeholder for unavailable fields in --output (default: "NA") --restrict-filenames Restrict filenames to only ...
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE I understand that I will be blocked if I intentionally remove or skip any mandatory* field Checklist I'm asking a question and not reporting a bug or requesting a feature I've looked through the R...
Any field (see "OUTPUT TEMPLATE") can be compared with a number or a string using the operators defined in "Filtering formats". You can also simply specify a field to match if the field is present, use "!field" to check if the field is not present, and "&" to check multiple ...
remember to double percentage signs when usedasoutputinbatch filesSETOutTemplate=-o"%%(playlist)s\%%(title)s.%%(ext)s"SETOptions=--ignore-errorsSETNetwork=SETGeoRestrict=SETVideoSelect=SETDownload=SETFileSystem=::yt-dlp does not need login to download age sensitive content,so doesn't need--...
For Windows users who are not able to upgrade, avoid using any output template expansion in --exec other than {} (filepath); if expansion in --exec is needed, verify the fields you are using do not contain ", | or &; and/or instead of using --exec, write the info json and ...
yt-dlp官方配置文件参数介绍:https://github.com/yt-dlp/yt-dlp#configuration ## cookies--cookies 'cookies.txt'##args--output %(uploader)s/%(title)s-%(resolution)s.%(ext)s## Verbosity / Simulation Options--console-title --progress-template "download-title:%(info.id)s-%(progress.eta)s"...
--console-title--progress-template"download-title:%(info.id)s-%(progress.eta)s" 将下载的视频 转换为MP4格式,很重要。 --merge-output-format mp4 下载的多国语言字幕,以下代表下载全部字幕 --sub-langs all,-live_chat ##你可以可以只下载中文字幕和英文字幕,前提是这个视频的确有中文和英文...
The defaultoutput templateis%(title)s [%(id)s].%(ext)s. There is no real reason for this change. This was changed before yt-dlp was ever made public and now there are no plans to change it back to%(title)s-%(id)s.%(ext)s. Instead, you may use--compat-options filename ...