Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3058 Discussions

How can I remove the AUD, SEI, and PPS headers after encoding?

nrson
Beginner
498 Views

Hi,

I have a analysis H264 bitstreams after encoding. There are other headers(AUD, PPS, SEI) as like figure 1.

I want to remove the other headers because the encoded bitstream is transfered to other client.

How do I delete it?

Thanks in advance,

nrson

0 Kudos
2 Replies
Petter_L_Intel
Employee
498 Views
Hi nrson, For more complete control of those headers to you need to configure encoder using extended encoding options via "mfxExtCodingOption" structure. Regarding AUD and SEI: To remove these you must set "NalHrdConformance = MFX_CODINGOPTION_OFF", and then "PicTimingSEI = MFX_CODINGOPTION_OFF" and "AUDelimiter = MFX_CODINGOPTION_OFF". However, there are limitations in the HW H.264 encoder which prevents AUD from being removed. So even if AUDelimiter is set to off, AUD will still be inserted. If you must remove it from the generated stream you will have to parse the stream and remove it manually. Regarding PPS: Due to HW limitations PPS will be inserted before each frame. Again, if needed you can remove these manually. SW encode does not have any of the above mentioned limitations. Regards, Petter
0 Kudos
Petter_L_Intel
Employee
498 Views
Hi again, a slight correction to my previous post. to ONLY remove picTimingSEI but leave the stream HRD conformant set the following: mfxExtCodingOption::VuiNal/VclHrdParameters = OFF mfxExtCodingOption::PicTimingSEI = OFF Regards, Petter
0 Kudos
Reply