[Libav-user] Number of cached frames in audio codecs

marcin_ffmpeg marcin_ffmpeg at interia.pl
Tue Sep 24 10:51:49 CEST 2013

> Dear All
> How can I determine number of cached frames in audio codecs for both decoding and encoding?
> I'd like to know the maximum number of frames which I receive on decoder/encoder flush.
> For video codecs I use AVCodecContext->gop_size, is this correct?
> What should I use for audio codecs?
Does anyone knows something about it?

It looks that for mp3lame audio codec number of cached frames is 4,
but can it be controlled somehow or at least known from ffmpeg structures?

I'd really appreciate some tips on it.
Thank you

More information about the Libav-user mailing list