[FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps?

Peter B. pb at das-werkstatt.com
Wed Aug 8 01:07:53 CEST 2012

On 08/07/2012 11:15 PM, Roger Pack wrote:
>>> How do you get the output which shows the exact fps as fraction (100/2997,
>>> 1001/30000) - and why are they written reversed (100/2997 != 2997/100) ?
>> Figured it out:
>> "$ ffprobe -v debug input.avi"
>> But as I'm still curious: Why is the fraction written inversed (as asked
>> above)?
> If nobody knows then it's probably a bug...
...or maybe it's a developer-habit-leftover? ;)

I've hex-edited the files to see at which byte-offset the fraction's
numbers were stored, and they're stored in reverse order: First the
1001, then the 30000.

Would still be interesting why it's really output reversed.


More information about the ffmpeg-user mailing list