Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
6616 Discussions

H264 Video Encoder Ignores Profile Selection

motola212
Beginner
178 Views
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
0 Kudos
3 Replies
Ying_H_Intel
Employee
178 Views
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
motola212
Beginner
178 Views

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
Ying_H_Intel
Employee
178 Views
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



Reply