-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-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+bestaudio
so that I don't end up with the old 720p format, since it works every single time (except in this case). So,bestvideo
selects315
(webm), andbestaudio
selects141
(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.
The text was updated successfully, but these errors were encountered: