我正在尝试使用 yt-dlp 从播放列表中将视频下载为 mp3 文件,但它们正在下载为 webm 文件

问题描述 投票:0回答:1

我正在Windows 10上运行一个.bat脚本,它使用yt-dlp.exe(https://github.com/yt-dlp/yt-dlp)来创建一个文件夹,下载视频是mp3文件并放入将它们放入文件夹中。即使我认为设置正确,可以正常运行,它也无法下载 mp3。有人能指出我可能出了什么问题吗?

这是当前代码的样子,其中 yt-dlp.exe、downloaded.txt 和 ffmpeg.exe 位于同一目录中:

enter code here
F:
cd \Desktop\Youtube DLP
set /P id=Enter Playlist or Video URL: 
set /P output=Enter Name Your Output folder:
yt-dlp.exe --yes-playlist %id% --ignore-errors --download-archive 
downloaded.txt --no-post-overwrites -ciwx --audio-format mp3
md %output%
move *.mp3 %output%
echo files are done
pause
batch-file youtube mp3 webm yt-dlp
1个回答
0
投票

一个可能的解决方法是更新输出模板以反映您想要的内容。 例如

%output%\%%(title)s.%%(ext)s

© www.soinside.com 2019 - 2024. All rights reserved.