<div dir="ltr">Hello all,<div><br></div><div>I am following a discussion about the decoding delays. I am working with optimizing the delays for our rendering app from ffserver to the webclient using webm container format. I experience a latency of about 300 to 400 msec from the app via ffm, matroskaenc to the browser via websockets. </div>
<div><br></div><div>Most part of the delay is due to the decoding part of ffmdec; reading the frame from the ffserver main loop. Changing the FFM_PACKET_SIZE to a higher value does not help. If anyone has an idea to deal with this, it is highly appreciated!</div>
<div><br></div><div>Thanks,</div><div>Tilak. </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 12:42 AM, Markus Pfundstein <span dir="ltr"><<a href="mailto:markuspfundstein86@gmail.com" target="_blank">markuspfundstein86@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ah thank you. didnt know that one. but makes sense yes.<br>
<div class="HOEnZb"><div class="h5"><br>
> On 27 aug. 2014, at 23:37, wm4 <<a href="mailto:nfxjfg@googlemail.com">nfxjfg@googlemail.com</a>> wrote:<br>
><br>
> On Wed, 27 Aug 2014 19:14:36 +0200<br>
> Markus Pfundstein <<a href="mailto:markuspfundstein86@gmail.com">markuspfundstein86@gmail.com</a>> wrote:<br>
><br>
>> a frame can consist of several packets. thats why you need to call av_decode_video2 multiple times until it has a fully decoded frame for you. the return values tell you how much data was read.<br>
>> you should adjust packet.data and packet.size by those values.<br>
>><br>
>> there a a lot of examples out there that show this.<br>
><br>
> In libavcodec/libavformat, a packet consists of exactly one frame (and<br>
> libavformat goes out of its way to guarantee this). But decoding can<br>
> incur a delay of several frames. That means, at start of decoding you<br>
> have to feed the decoder several packets without getting a video frame<br>
> back, and at end of decoding you need to feed it null packets to get<br>
> the remaining frames.<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>
_______________________________________________<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>