[FFmpeg-user] Frame rate discrepancy

Dave Blanchard dave at killthe.net
Fri Feb 3 23:27:11 EET 2023

On Fri, 3 Feb 2023 22:10:45 +0100 (CET)
Marton Balint <cus at passwd.hu> wrote:

> The 30000/1001 v.s. 30 fps seems like a good guess based on the 21 second 
> difference. E.g. the camera reports 30 fps when it in fact runs at 29.97.
> I'd check what is detected, and what is written to the output file as 
> frame rate. You may try overriding the input frame rate with -r option.
> There is also another approach to make this kind of chunked recording, 
> using the segment muxer of ffmpeg.
> https://www.ffmpeg.org/ffmpeg-all.html#toc-segment_002c-stream_005fsegment_002c-ssegment
> By using options -segment_time and -segment_atclocktime you can make the 
> system create 6 hour chunks, the ffmpeg command does not have to be 
> restarted, and there will be no gaps between recordings.

That's very helpful, thanks!

Can you recommend a way to fix the existing files to have correct timecode?


More information about the ffmpeg-user mailing list