[Ffmpeg-devel] MPEG 2 Frame Control

Loren Merritt lorenm
Tue Sep 19 00:13:40 CEST 2006


On Mon, 18 Sep 2006, Brian Brice wrote:

> Hello,
> I'm using the MPEG 2 encoder and I'm not quite sure if it's possible
> to gain more control over the types of frames produced.  For example,
> I have a GOP of 15 and have max_b_frames set to 2.  I expect the order
> of the frames to be IBBPBBPBBPBBPBB.  The groups are generally in this
> pattern, except for the FIRST group.  The first group starts as IPBBP...
> How can I control the order of the types of frames?  Is this a
> reasonable question about MPEG frame ordering or am I way off?  Thanks!

bitstream order: IBBPBBPBBPBBPBB.
display order    BBIBBPBBPBBPBBP.
The first GOP can't begin with a B-frame, because there's no previous 
frame to predict it from.

--Loren Merritt




More information about the ffmpeg-devel mailing list