Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Youtube-dl fails to mux video with bestvideo+bestaudio format selection #5166
Comments
|
Duplicate of #4906. |
When downloading https://www.youtube.com/watch?v=kkd8A3QGP7M with -f bestvideo+bestaudio the muxing of the formats fails. This appears to be because youtube-dl is selecting the same container format as the video portion (which is VP9 webm) and trys to mux an audio stream of aac format.
The command run was:
youtube-dl -v -f bestvideo+bestaudio kkd8A3QGP7MThe error created is:
ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argumentWhen running again with verbosity the ffmpeg command run is shown. Running that ffmpeg command generates:
[webm @ 0x7fe332042600] Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM.A suggested fix would be to default to either an mp4 or an mkv format if webm format is not possible because of muxing of non-webm compatible codecs.