- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When EncodeFrameAsync is completed and has mfxBitstream filled, does each mfxBitstream contain a complete H.264 NAL unit? Im guessing its not hence bitstream. If it doesnt put out a complete, does a way to exist to configure this SDK to put out a complete H264 Nal unit? Also, how often does the SPS and PPS get placed into the stream?
Thank you,
Vince
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does my question make sense? The issue is trying to get the intel h264 encoded output into an RTP/RTSP SDK. Currently I manually pull out the SPS and PPS from this SDK and feed into the RTSP SDK, but their SDK will auto parse this out if this info is already in the stream. Also,if I can get this encoder to output a complete H264 Nal unit, it will save a ton of CPU work as the RTSP SDK would no longer need to parse the bytestream.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vincent,
Complete NAL units are written to bitstream at the moment encoded data is available (syncoperation).
Media SDK may write several NAL units at one time such as AUD, SPS, PPS, SEI, H264 slice.There is no need to configure the SDK or explicitly ask it to output complete NAL units.
You can control the frequency of SPS/PPS via the "IdrInterval" parameter. If you set this parameter to "0" an SPS/PSS will be inserted before every I frame. For more details please refer to the reference manual.
You do not have to manually extract SPS/PPS. The Media SDK API provides a mechanism for extracting SPS/PPS after encoder initialization. Please refer to chapter 4.14 in "Intel_Media_Developers_Guide.pdf" (part of the SDK package) for details on how to do this.
Regards,
Complete NAL units are written to bitstream at the moment encoded data is available (syncoperation).
Media SDK may write several NAL units at one time such as AUD, SPS, PPS, SEI, H264 slice.There is no need to configure the SDK or explicitly ask it to output complete NAL units.
You can control the frequency of SPS/PPS via the "IdrInterval" parameter. If you set this parameter to "0" an SPS/PSS will be inserted before every I frame. For more details please refer to the reference manual.
You do not have to manually extract SPS/PPS. The Media SDK API provides a mechanism for extracting SPS/PPS after encoder initialization. Please refer to chapter 4.14 in "Intel_Media_Developers_Guide.pdf" (part of the SDK package) for details on how to do this.
Regards,
Petter
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page