[Ffmpeg-devel] Force Baseline Profile for x264 in ffmpeg

Loren Merritt lorenm
Sun Nov 27 01:22:02 CET 2005

On Sat, 26 Nov 2005, Tyler Loch wrote:

> I'm trying to build ffmpeg with x264 support in order to compress files to
> Baseline Profile H.264 for iPod.
> The HandBrake community added the following two lines in the x264enc.c
> file to force x264/libavcodec to output Baseline:
>        param.b_cabac     = 0;
>        param.i_level_idc = 13;

You additionally need:
     param.rc.i_vbv_max_bitrate = 768;
     param.rc.i_vbv_buffer_size = 2000;

And iPod has some special requirements for muxing (not quite standard mp4)

--Loren Merritt

More information about the ffmpeg-devel mailing list