H264 Video Encoder Ignores Profile Selection

H264 Video Encoder Ignores Profile Selection

Hey,

I'm trying to instantiate the h264 IPP video encoder with the following paramters:

Width = 800
Height = 600
FPS = 30
I frame interval = 2
P frame interval = 1
B frame interval = 0
Bitrate = 10Mbps
Profile = Main
Level IDC = 3.1

But the encoder always uses "High Profile".
Our indication is from the SPS and PPS and from the binary compressed frame (Profile = 0x64).
Why is this?

motola

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting - motola212
Hey,

I'm trying to instantiate the h264 IPP video encoder with the following paramters:

Width = 800
Height = 600
FPS = 30
I frame interval = 2
P frame interval = 1
B frame interval = 0
Bitrate = 10Mbps
Profile = Main
Level IDC = 3.1

But the encoder always uses "High Profile".
Our indication is from the SPS and PPS and from the binary compressed frame (Profile = 0x64).
Why is this?

motola

Hello Motola,

You may try to use the H264.par file as encoder's parameter.

at line 7

100 0 /* profile_idc (77-main, 100-high); level_idc (set 0 for automatic select

Please change the 100 to 77.

Here isone KB for your reference: Setting H.264 encoding parameters in Intel IPP media processing samples

Best Regards,
Ying

Hello Ying,

I'm changing the parameters by code through "UMC::H264EncoderParams" but still no change.
Is this possible that the encoder changes the parameters according to the other parameters (frame sizebitrate...)?

Thanks,
Motola

Hello Motala,

The H.264 encoderparamenter take"Highprofile" by default (and corresponding defaultparameter as H264.par). If youset the parameters bycode,you may need changeother default parameters with the profile_idc together.
For example, try
Params.profile_idc= UMC::H264_MAIN_PROFILE;
Params.transform_8x8_mode_flag=0;

All my Best,
Ying

Leave a Comment

Please sign in to add a comment. Not a member? Join today