Check fps of source and set for output#6
Conversation
|
Hi @joley-gh, thanks for your PR! Would you say this is a common problem you're encountering, or how often would you say an incorrect framerate is an issue? I've never run into it as a problem, so I'm hesitant to rely on MediaInfo to force a framerate when the source typically should have it set as intended. |
|
Hey @nekno To invetigate further I tested some more files:
When converting from profile 7 to 8 the fps problem does not arise. The file reduction in test 1 is weird and also occures with my fix. It also occures if I set the entries in config.json to false. |
|
Hi @joley-gh — I've been attempting to find cases where this is needed, but I just haven't run across it. Do you think this is something that's routinely needed, or more likely an edge case you encountered in a file or two? Adding the additional |
These changes add the mediainfo tool to analyze the source media and get the frame rate.
The mediainfo binary was installed with brew on my M2 and seems to be a Mach-O 64-bit executable arm64.
It might be better to replace it with a x64 version to support all systems.
With the extracted framerate it is possible to force mkvmerge to use the correct framerate.