[FFmpeg-user] How to set H264 profile-level-id to 42E00C?

Moritz Barsnick barsnick at gmx.net
Sat Aug 22 14:24:31 CEST 2015


On Sat, Aug 22, 2015 at 19:25:20 +0800, xiong xu wrote:

> [libx264 @ 0x30ddfe0] bad option 'profile-level-id': '42E00C'

According to the x264 docs, that's not even an option (lib)x264
provides, so how do expect to set it? What are you trying to achieve,
and why?

I believe the profile level ID reflects certain encoding options and
should be set by the encoder to indicate them:

http://stackoverflow.com/a/22970025/3974309

If you only know that number (where do you have it from?) and want to
encode for it, I am guessing that you will have to set the
corresponding encoder options:

profile_idc = 0x42 => "-profile baseline"
profile-iop = 0xE0 => I have no idea how to set the constraints. E0 probably means: "constrained intra baseline".
level-idc   = 0x0C => "-level 1.2"

BTW, according to this:
https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels
the maximum frame rate for level 1.2 is 20 fps, your source is 30.

Not sure about this all, but this is my impression. ;-)

Moritz


More information about the ffmpeg-user mailing list