[Ffmpeg-devel] Profiles

Baptiste Coudurier baptiste.coudurier
Wed Jan 10 18:20:15 CET 2007


g wrote:
> I'd have thought that this question must have been asked countless
> times but I couldn't find any information on the site, in the source
> code, nor by Googling(TM).
> What profiles / levels are supported in ffmpeg for MPEG2? I'd also be
> interested in MPEG4 and h264.

For MPEG-2:

Decoding: all profiles/levels should be supported.
Encoding: MP at ML, 422P at ML.

422P at HL and HP at HL are supported, but not correctly set automatically in
the encoded file atm IIRC. You can however set them correctly using
-level and -profile options in commandline

> Secondly, how do I set those.  I saw there is a parameter for level /
> profile, but it wasn't obvious what to set these to.

ffmpeg -i <file> -level 5 -profile 0 -pix_fmt yuv422p -vcodec mpeg2video
to encode MPEG-2 in 422P at ML for example.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312

More information about the ffmpeg-devel mailing list