Community
cancel
Showing results for 
Search instead for 
Did you mean: 
peskens__gijs
Beginner
73 Views

Buffering Period, Pic timing from encoded frame

I'm working on a realtime streaming application which is to encode to MPEG2/h264/h265.

For the muxer to work best it needs to calculate PTS/DTS and initial arrival and final arrival values. And correct those when needed based of initial cpb removal delay (of NAL)+ offset.

Is there a way to access the values associated with the frame somewhere from mfxBitstream, outside of parsing the output bitstream itself?

0 Kudos
4 Replies
Mark_L_Intel1
Moderator
73 Views

Hi gijs,

Apologized for late response. Media SDK is to work with hardware decoder, this means the bitstream parsing happens at the hardware level, so in general it is hard to access frame info if the pipeline is running. 

But let me try, I am looking at function MFXVideoDECODE_DecodeHeader(), it mentioned to attach mfxExtCodingOptionSPSPPS structure to mfxVideoParams structure when call this function to retrieve SPS, PPS info at the sequence level but not frame level.

Could the information here can help?

Mark

Arthonzl__Mark
Beginner
73 Views

I would like to know more about Media SDK. Is this one for free? 

Mark_L_Intel1
Moderator
73 Views

Yes, MediaSDK is free product. It uses Intel hardware codec in GPU. In general, it is hard to get information at frame level since encoding/decoding process happens at hardware level, but it should be possible to access the bit stream at SPS/PPS level.

We have both Windows and Linux. For Linux, we have Open Source Media SDK which you can access with following URL:

https://github.com/Intel-Media-SDK/MediaSDK

If you are using Linux, I encourage you to post the question to its issue list since you might get quick answer.

Mark

Arthonzl__Mark
Beginner
73 Views

Thank you so much for your help.

Reply