This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to fit a real-time H.264 video bytesstream to Dmai Vdec2 for Video Decoding?



Hi all,

We are right now trying to decode a H.264 video stream from a H.264 camera in the DM365 EVM.   We'd like to use Dmai Vdec2 api to decode the video stream. 

However, we went through the source code of the linux dvsdk demo, decode and encodedecode but we can't find ways to fit a real-time H.264 video stream, which is not a video file and is generated from the H.264 camera, to Dmai Vdec2 api. 

Could anybody tell me which bitstream formats, NAL unit stream format or byte stream format, can be accepted?  How should we divide the bitstream into a small chunks and put chunks in InBuf  for vdec2_process() api? 

Where can we get more information?

Thank you so much!

Best Regards,

Chitat

  • I think you should encode the video stream.

    The vdec2_process() api only decode the stream which is encoded in H.264.

    And by the way, what format of H.264 camera output?

  • Weidong,

    Eventually, we are able to decode our H.264 video stream from our camera.  We found the major cause of the decoding problem that we create our Buffers without using memory reserved in cmem.ko.  We found that there is a huge performance degrade, especially in decoding, if our Buffers uses memory reference to linux memory space instead of specially region reserved in cmem.ko.

    By the way, the video stream format of our camera is byte stream format.

    Thank you so much for your kindly help!

    Best Regards,

    Chitat

  • No at all.

    Wish you have a good day:-)