[Ffmpeg-devel] Encoding IBBP MPEG2 with fixed gop size.

Michel Bardiaux mbardiaux
Wed Oct 25 16:58:15 CEST 2006


Thomas Parmegiani wrote:
> Hi all !
> 
> I try encode a file to have a MPEG2 IBBP with a fixed gop size (12) :
> 
> If I use ffmpeg : ./ffmpeg -i /G/video.ts -minrate 20000K -maxrate
> 20000K -bufsize 2000K -b 20000K -flags2 sgop -bf 2 -g 12 /G/test.ts
> 
> It works. I checked the source code it seems ffmpeg set AVCodecContext
> flags2 value to CODEC_FLAG2_STRICT_GOP. If I do the same thing on my
> application it does not work. 

It does not work *HOW*? My crystal ball is in the repair shop...

> So I guess I have to set another parameter but
> which one ? Anybody can help me ?

Do you use avcodec_get_context_defaults in your app?

> 
> Best Regards,
> 
> Thomas.P

Greetings,
-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list