[Libav-user] Cached frames

Michael Chisholm chisholm at mitre.org
Fri Jul 24 20:09:09 CEST 2015


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




More information about the Libav-user mailing list