<div dir="ltr">VLC has a pretty good logic for tracking audio/video sync... the logic for handling where audio is and where video is, is really up to the application<div> (if it's ffmpeg, the code is in the ffmpeg player, not the library)... <div>
Quicktime is probably tracking them separately where VLC is doing something different with where things are scheduled.</div><div>The input file I have most problems with is MKV with a quicktime MOV in it... audio and video get horribly mis-synched... in my player I was working to add a advance/retard knob... but then I figured some better logic that obsoleted that idea.</div>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 23, 2014 at 3:49 AM, Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:cehoyos@ag.or.at" target="_blank">cehoyos@ag.or.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Marco Sieber <l-spy@...> writes:<br>
<br>
> I switched now to 2.2 or the trunk Version, i have<br>
> to test it with that.<br>
<br>
</div>Please understand that only current FFmpeg git head<br>
is supported on this mailing list.<br>
<div class=""><br>
> >If you really need "-r 25" this indicates a problem<br>
> >and it would explain why your application (if it<br>
> >does sane things with timestamps) cannot work.<br>
><br>
> If im right -r indicates a constant framerate? Why<br>
> should it not work<br>
<br>
</div>I believe there are three possibilities:<br>
Your input file could be broken and contain random<br>
timestamps, in this case you need -r 25<br>
FFmpeg might be unable to read the timestamps from<br>
your file correctly, in this case -r 25 is a<br>
workaround.<br>
Or the timestamps in your file are correct and<br>
FFmpeg can read them, in this case you should<br>
not use -r 25<br>
<br>
Iirc, you have to read the time_base you set for<br>
a stream after setting it, FFmpeg might have<br>
changed it.<br>
<span class="HOEnZb"><font color="#888888"><br>
Carl Eugen<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>