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.

Adding the new codec in DVSDK 2.00 on DM6467

Hello, 

I try to add a new codec to my DVSDK 2.0 package running on DM6467, but I cannot find any manual or just advice which familiarizes this issue. I'm a beginner in DaVinci world, so please forgive me if I omitted the "obvious" sources.

I've successfully executed the "encode" demo application which captures the analog input stream to file using H.264 codec. I've read in encode's help and in the source code that the H.264 codec is only supported. I'm pretty sure there is some way to add the new codecs MJPEG, i.e, but I cannot find any advice or hint about that issue. Where can I also find the compatible codecs which can be integrated with my DVSDK?

I will be thankful for your engagement 

  • Piotr,

    The central location for information about Davinci is the following wiki: http://processors.wiki.ti.com

    The following topic could be helpful to you: http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK

    On DM6467 you should be able to use any C64x+ codec. The codecs are available here:

    http://focus.ti.com/dsp/docs/dspfindtoolswbytooltype.tsp?sectionId=3&tabId=1460&toolTypeId=65&familyId=44

    I think you are interested in JPEG codec. JPEG Encoder and Decoder are available at the link above.

    What is your goal with MJPEG?

    One thing that may affect your project is that the JPEG decoder YUV output format is not the same as the one supported by DM6467 video display. You will have to perform a conversion in software.

    Thanks

    cesar

  • Hello,

    Thanks a lot for the provided sources. They seems useful on the first sight.

    Basically, my project's goal is to capture the analog video stream, make some analyzes, encode it by H.264 and/or MJPEG codecs and stream it through the network. I would like to do it as simple as it possible, so I will be thankful if you know/have any design pattern of software tool which can help me to capture, encode and stream that input.

    Currently, I'm looking at Gstreamer, which I've just compiled. Maybe it will be the most useful tool. What do you think?

    Thank you very much for interest,

  • Information about Gstreamer is available here https://gstreamer.ti.com/gf/project/gstreamer_ti/

    As you can see Image is not supported for DM6467. So if you decide to support JPEG you will not be able to use Gstreamer. Instead you could modify the DVSDK demo to support both H264 and JPEG.

    As far as streaming goes, the DVSDK demos do not support this feature, so in case you use the demos as a starting point you would have to add it. If you use Gstreamer there may be some modules already available to perform this function.

    Thanks

    Cesar

  • I see. After doing some research and taking your advices into consideration, I've decided to use the pure DVSDK/DMAI interface. I hope this decision is correct :)

    BTW, Do you know the software which is able to open the *.264 file created by encode example? I tried VLC, Windows Media Player and Quick Time on Linux and Windows and I still get the same result: one black screen blinking. I cannot even play the provided dust_1080i_30fps.264 demo file.

    Thank you for your support,