0

I use videoToolBox to decode H264 and use metal to render it.

I found the B frames in the raw stream, but when I watch out the value of the callback function presentTimeStamp.valid, it returns false.

how I could decode h264 using videoToolBox in order without timeStamp in the raw stream?

shan yu
  • 3
  • 2
  • Are you able to read the bytes of your raw stream? Do you know how to handle the Golomb coding of the bits in the stream? You need these capabilities to process the slice header and know the decoding order of your NAL units per each GOP. – VC.One Jul 23 '23 at 21:33
  • You are right, i finally resolve it by read the raw stream, thank you! – shan yu Jul 25 '23 at 04:23

0 Answers0