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?
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?
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:
If you are using Linux, I encourage you to post the question to its issue list since you might get quick answer.