<div dir="ltr">This can not be reproduced with the ffmpeg cli, conversion works fine there.<div>However it can be reproduced with transcoding.c for all input files.</div><div>Additionally to what I mentioned, 29.96 fps test files result in 29.98 and 30 to 30.11.</div><div>Another 24 fps file resulted in 24.03. The changes seem to be related with </div><div>the duration of the file: the longer the file the shorter the marginal fps difference. </div><div>The output frame rate can be determined with both fffmpeg -i as well as with</div><div>QuickTime 7 and VLC. Like I mentioned, I have spent some time with investigating this</div><div>and it looks like an issue with the correct conversion of the last frame; I was able</div><div>to get different framerate values when tampering with the pts of the last frame</div><div>but this looked like a nasty hack that I shouldn't be doing, plus it fails</div><div>again when re-encoding the file.  Here is the info from an input/output test file</div><div>that has the frame rate changed from 24 fps to 24.03:</div><div><br></div><div> Duration: 00:00:36.08, start: 0.000000, bitrate: 178309 kb/s<br>    Stream #0:0(eng): Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p10le(tv, bt709/unknown/unknown), 1920x1080, 176160 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 23976 tbn, 23976 tbc (default)</div><div><br></div><div>  Duration: 00:00:36.10, start: 0.000000, bitrate: 116072 kb/s<br>    Stream #0:0: Video: dnxhd (DNXHD) (AVdn / 0x6E645641), yuv422p(tv, bt709/unknown/unknown), 1920x1080, 116526 kb/s, SAR 1:1 DAR 16:9, 24.03 fps, 24 tbr, 12288 tbn, 12288 tbc (default)<br></div><div><br></div><div>You'll notice that there is a slight change in the duration as well, but this happens with the ffmpeg conversion with the cli as well.</div><div><br></div><div>Let me know if you need more information and thanks for the help!</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 5, 2019 at 3:42 AM Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Di., 5. Nov. 2019 um 00:16 Uhr schrieb Vassilis <<a href="mailto:bpantazhs@gmail.com" target="_blank">bpantazhs@gmail.com</a>>:<br>
> I am trying simply to perform a transcoding process using the transcoding.c example from doc/examples. However I am seeing a very strange result (even when the example is not modified at all, ie not even changing codecs); the transcoded file has a marginally different frame rate than the original file. For example for a frame rate of 24 fps I get 24.14 fps. I also implemented this with the newer av_send/receive packet/frame functions to no avail. I would be most grateful for any insights, I've spent quite some time trying to troubleshoot this.<br>
<br>
Can you reproduce the issue with the ffmpeg cli or only with transcoding.c?<br>
<br>
Why do you think that the output frame rate is 24.14? What does ffmpeg<br>
-i show for your input file?<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>