<br><div class="gmail_quote">On Wed, Jan 30, 2013 at 10:45 AM, Rafaël Carré <span dir="ltr"><<a href="mailto:funman@videolan.org" target="_blank">funman@videolan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Le 29/01/2013 12:25, Jean-Paul Saman a écrit :<br>
<div class="im">> Now with patch attached.<br>
><br>
> On Tue, Jan 29, 2013 at 11:33 AM, Jean-Paul Saman <<a href="mailto:jpsaman@videolan.org">jpsaman@videolan.org</a>>wrote:<br>
><br>
>> A long time irritation in vlc since the 1.0.x days is that when the buffer<br>
>> delay is adjusted vlc trashes all data currently in its buffers. Thereby<br>
>> introducing visual artefacts in the playback<br>
<br>
</div>What happens when playing from a slow network ?<br></blockquote><div><br>The current dynamic buffering adjusts the PTS delay and empties the current decoder buffers. This<br>introduces the visual artefacts, since stream data is thrown away. This is regardless of network speed<br>
or disk speed.<br><br>What should happen IMHO is that the buffer PTS delay value should be adjusted<br>without emptying the decoder buffers. The user would see a pause, additional buffering happen and continue<br>of playback at the exact point where it paused. In this case no visual artefacts should be seen (caused by buffering).<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div>
>> The attached patch is a first attempt on solving this. It is not perfect<br>
>> yet, since when updating the clock jitter lipsync can be lost. And not<br>
>> updating clock jitter but pausing for buffering restarts and unpausing<br>
>> afterwards seems to keep lipsync. <br></div></blockquote><div><br>Pausing before restarting buffering is a workaround for loosing lipsync and not updating the PTS jitter delay is<br>actually wrong here. When calling es_out_SetJitter() lipsync is lost.<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
>><br>
>> The question is how to update the clock jitter and keeping lipsync? I do<br>
>> not have an answer yet and hope one of our core developers has an idea.<br>
</div>>>  0001-Decoders-Restart-buffering-without-flushing.patch <<a href="http://undefined" target="_blank">http://undefined</a>><br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br>
</blockquote></div><br>kind regards,<br><br>Jean-Paul Saman<br>