I'm trying to use the Intel Media SDK to create a H264 stream and pack it into RTP and playback with gstreamer, so far so good, and a lot of answers on this forum have helped me, currently I'm running into the following issues and it seems I need some clearance:
1) The Annex B format is the only bitstream format produced by Intel Media SDK right? It is just a little inconvenient to run through the bitstream looking for 0x00 0x00 0x00 0x01.
2) How to disable NAL's with type 9 (access unit delimiter unit)? As far as I understand I don't need this in the RTP stream, at least I haven't seen real life H264 over RTP streams sending them. I tried passing mfxExtCodingOption structure like this:
mfxExtCodingOption EncodingOptions; memset(&EncodingOptions, 0, sizeof(EncodingOptions)) EncodingOptions.Header.BufferId = MFX_EXTBUFF_CODING_OPTION; EncodingOptions.Header.BufferSz = sizeof(EncodingOptions); EncodingOptions.AUDelimiter = MFX_CODINGOPTION_OFF;
but the encoder initialization always returns that this is unsupported.
3) During encdoing i get onl sps pps and sei units, is that normal? Shouldn't i get some coded slice frames? I've done a little a output from my program that list the frame flags and found NAL units in the bitstream. Can you tell me if this is expected behaivor? If so maybe there is an issue in gstreamer, because it seems to be throwing a lot of errors.