[FFmpeg-user] How can I remux a video from 2997/100 to 30000/1001 fps?
pb at das-werkstatt.com
Mon Jul 30 16:29:08 CEST 2012
Quoting Michael Niedermayer <michaelni at gmx.at>:
> On Thu, Jul 26, 2012 at 12:59:59PM +0200, Peter B. wrote:
>> I just ran into a really weird issue with "born digital" video material:
>> I've tried to transcode a FFv1/PCM lossless file (720x576
>> @29.970fps) to a DVD conform MPEG, but mencoder threw the following
>> error message:
>> "MPEG1/2 does not support 2997/100 fps"
>> If I tell mencoder to use "-ofps 30000/1001" everything works fine.
>> Now, my question is:
>> Can I use ffmpeg to "clean" my original file to have the fps stored
>> I've tried this:
>> "$ ffmpeg -i input.avi -r 30000/1001 -acodec copy -vcodec copy output.avi"
>> but the resulting file still had the "wrong" fps (2997/100).
> i cant reproduce this
> Stream #0:0, 1, 100/2997: Video: ffv1 (FFV1 / 0x31564646), yuv420p,
> 720x576, 100/2997, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc
> changes to:
> Stream #0:0, 1, 1001/30000: Video: ffv1 (FFV1 / 0x31564646),
> yuv420p, 720x576, 1001/30000, SAR 16:15 DAR 4:3, 29.97 tbr, 29.97
> tbn, 29.97 tbc
I've now tried it with the current git version of ffmpeg and it indeed
worked as expected. The same commandline as posted above, but my
previous attempt was using Debian's ffmpeg version (0.7).
I was now successfully able to remux the file with the proper framerate.
Thank you very much!
More information about the ffmpeg-user