[FFmpeg-devel] Command-lineparameters usedtoo latefor has_codec_parameters()

Måns Rullgård mans
Fri Jan 16 15:04:16 CET 2009

"Ronald S. Bultje" <rsbultje at gmail.com> writes:

> Hi,
> On Fri, Jan 16, 2009 at 8:48 AM, Alexandre FERRIEUX -
> FT/RD/SIRP/ASF/SOFTL <alexandre.ferrieux at orange-ftgroup.com> wrote:
>> So it seems we have a chicken-and-egg issue: we decide that
>> bitstream-based guessing is due based on the absence of some parameters,
>> *then* we get these parameters from codec init (after reading just 1
>> frame), *then* we wait for a full GOP for no reason... Strange, eh ?
> av_read_frame() calls av_parser_parse(), could it be that that
> function blocks for the full GOP so it can set s->gop_size etc.?

It should not be doing that.  However, the stream parameters are only
encoded with I-frames, so they are not known before the first I-frame
has been seen.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list