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.
Prefer output format mp4 if possible #20655
Comments
|
It always prefers mp4 by default. If that doesn't work, it merges to mkv instead.
|
|
if you want to always get an mp4 file, then use a format selector with compatible formats. |
|
But if I don't specify anything, it'll merge everything into a webm. And if I specify mp4 when that's not possible, I get |
I'm not talking about the quality from -format, I'm talking about merging it into a mp4 with --merge-output-format. I don't always want mp4, I want the best quality, and I'd prefer it to be merged into an mp4 if possible, and if not, then an mkv. |
|
For example, when using |
|
and @ealgase already answered this, don't touch the |
Exactly, my question is whether it's possible to force it to use the mp4 container whenever possible (for example when the video format is mp4) with the ability to fall back to mkv (if the format is webm for example) |
|
@kik4444 webm is literally just mkv with a different file extension. |
|
I said don't use |
Is there any syntax that I'm missing for
--merge-output-formatthat allows you to set it to prefer mp4 over mkv? Currently I'm downloading with this format-f bestvideo[fps=60]+bestaudio/bestvideo+bestaudio/best, and sometimes, depending on the video, the result can be merged into an mp4, but sometimes it can't, so I set --merge-output-format to mkv. However, is it possible to set it to prefer mp4 if possible and fall back to mkv if not?