[Libav-user] Cached frames

Robin Stevens rdstevens at gmail.com
Fri Jul 24 20:39:56 CEST 2015


On Friday, July 24, 2015, Michael Chisholm <chisholm at mitre.org> wrote:

> On 7/24/2015 1:28 PM, Gonzalo Garramuno wrote:
>
>> On 24/07/15 00:11, J Decker wrote:
>>
>>>
>>> On Thu, Jul 23, 2015 at 5:13 PM, Gonzalo Garramuno <ggarra13 at gmail.com
>>> <mailto:ggarra13 at gmail.com>> wrote:
>>>
>>>
>>>     This is all dandy.  However, I would like to know in advance how
>>>     many times I will need to pass packets with NULL and size 0.  Is
>>>     there a way to know this?
>>>
>>> until it stops returning a frame.
>>>
>>>  Thanks, so the answer is no.
>>
>>
> If you want to get a rough idea of the amount of caching going on, how
> about this: when you first start feeding packets into the codec, count how
> many you've fed in before it starts producing output.  That could be a
> rough indicator.  You should really just let the codec tell you when its
> cache is empty, as I don't think there are any guarantees about this, but
> it might give a rough estimate.  Just a thought.
>
> Andy
>
>
>
Which encoder are you using?

Does setting the gop size make a difference?

Cheers
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150724/06830656/attachment.html>


More information about the Libav-user mailing list