我尝试使用 youtube-dl 从 YouTube 下载视频+音频:
youtube-dl https://www.youtube.com/watch?v=7wfUUZvybPY
我得到了一个没有音频的视频文件 (.webm)。我正在寻找一种在 Windows 10 中使用命令行 (cmd) 将视频+音频下载到单个文件中的方法。您有什么建议吗?
答案 0 :(得分:1)
youtube-dl.exe --format mp4 https://www.youtube.com/watch?v=7wfUUZvybPY
但是,youtube-dl 依赖 ffmpeg 进行许多格式转换。为 Windows 安装 ffmpeg 并查看 youtube-dl docs here
答案 1 :(得分:0)
我找到了解决办法;以下命令将音频和视频文件合并到一个 file.mkv 中:
youtube-dl.exe --sub-lang en --write-sub https://www.youtube.com/watch?v=7wfUUZvybPY