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.
-f bestvideo+bestaudio tries mixing codecs that don't match #5298
Comments
|
As for potential solutions:
|
|
Yep:
|
|
You can use |
|
Interesting, I didn't know about the Since the mkv merge is already built-in, maybe throw an error which suggests using it? It's a shame that the DASH update on YouTube made it trickier to get high-resolution downloads by default (#1578). |
|
A webm video and m4a audio cannot be merged by ffmpeg into a mp4 container, however ffmpeg can merge these into a mkv container. So why not make |
|
In the next version, if the formats are not compatible they will be merged into a mkv container. Thanks for the report. |
|
This has been fixed in youtube-dl 2015.04.26. See our FAQ if you have problems updating. |
This fixes 404 errors on some conditions, e.g. when youtube-dl raises: Requested formats are incompatible for merge and will be merged into mkv See upstream issue for more details: ytdl-org/youtube-dl#5298
|
I am having a similar problem with recent youtube-dl for some videos:
Manually passing
youtube-dl and FFmpeg are up to date:
|
|
@desbma's solution doesn't work on Termux |



YouTube started adding support for 4K video at 60 FPS today, which youtube-dl actually downloads if you choose that format. Here's their testing playlist: https://www.youtube.com/playlist?list=PLyqf6gJt7KuHCoYaGNWPx8vkHlClmbO9u
Here's an example format list for one of the videos:
I run youtube-dl with the option
-f bestvideo+bestaudioso that I don't end up with the old 720p format, since it works every single time (except in this case). So,bestvideoselects315(webm), andbestaudioselects141(m4a), and then it tries to mix those incompatible formats in ffmpeg and fails.Technically the selection behavior itself is correct; it is choosing the best audio and video streams available. The issue is that it's trying to mix incompatible audio and video streams.