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