<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 10:23 AM, Talgorn François-Xavier <span dir="ltr"><<a href="mailto:fxtalgorn-at-yahoo.fr@ffmpeg.org" target="_blank">fxtalgorn-at-yahoo.fr@ffmpeg.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Thank you in advance for your help.<br>
I wrote a program that takes videos as input (H264), process filters on it and encode a modified video in MP4 (simple profile).<br>
Everything works fine but the fact that some videos are encoded with crazy frame rates, like 2500 or 24000 fps.<br>
I assume the problem is related to the way I manage timestamps. I tried tens of workarounds to no avail.<br>
Here is the resulting infos of both an example that fails and another that is OK.<br>
<br></blockquote><div><br></div><div>If I were you I would start by checking the timestamps and timebases of the encoded files that cause trouble by running ffprobe on them and output stream timebases and packet timestamps to see what's actually in them that's screwing up the fps. maybe you just used an incorrect timebase or something like that. One thing that many people overlook is to check whether your muxer has changed the time base after initialization. you have to deal with that case (and rescale your packet timestamps to that new timebase) and the mov/mp4 muxer does that under certain circumstances. </div></div>
</div></div>