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.

mpeg4 VENC codec configuration

Hi,

I'm working on a rtp video steamer and I need to stream mpeg4 using a dm816x.  As far as I understand mpeg4, the codec information like profile is sent using either VOS or VOSS. 

When streaming with a tool like gstreamer to create the mpeg4 rtp stream, the component rtpmp4vpay must be set to both send the configuration (send-config=1) and to generate configuration packets (config-interval=1).

Is it possible the make the codec generate these packets by itself, more than once at the beginning of the stream?  An example for h264 is provided on the wiki at http://processors.wiki.ti.com/index.php/OMX_VENC, FAQ # 5.  Also, is there more documentation available about the HDVICP2 implementation of the mpeg4 codec?

Thanks.

  • Bruno Marchand said:
    Is it possible the make the codec generate these packets by itself, more than once at the beginning of the stream? 

    Yes, by calling control() call with XDM_GENERATE_HEADER command.

    Bruno Marchand said:
    Also, is there more documentation available about the HDVICP2 implementation of the mpeg4 codec?

    The documentation of user guide can be found in the codec release package.

     

  • Hi Venugopala,

    Thank you for your fast reply.  It appears to me however that the cited function call is part of the codec engine, which runs on the DSP core but the codec I use runs on HDVICP2. As far as I know, accessing codec on HDVICP2 is limited to openmax API.  So is it possible to do the same as calling control() call with XDM_GENERATE_HEADER but through openmax APIs for the HDVICP2?

    I'm also looking for more precise documentation about the HDVICP2 implementation of mpeg4 codec as the user guide found in the "ti-ezsdk_dm816x-evm_5_03_00_09/component-sources/omx_05_02_00_26/" present general codec information and refers to the wiki.  The wiki contains mostly information about h264 codec.  So my question is "Is there more documentation available for the mpeg4 codec?"

    Thanks,

  • Bruno,

    We have added information on your queries at http://processors.wiki.ti.com/index.php/OMX_VENC FAQ 6, 7 & 8. I hope you find it useful

    Regards,

    Anirban

  • Hi Anirban,

    Thanks for your reply and for what you added to the wiki.  Your answer tells me I was in the good direction by looking at the static and dynamic parameters of the codec.  The solution you gave me however does not produce the result I expected.  When I set the dynamic parameter as suggested in your answer, I only get VOSs from the codec.

    Basically, my goal is the same as described in this post (http://e2e.ti.com/support/embedded/f/356/p/144244/521510.aspx#521510) but for mpeg4.  Because I'm streaming the media, I need the codec configuration information to be sent periodically.  From what I understand of the mpeg4 data stream, what I need is something like VOS VOP VOP VOP VOS VOP VOP VOP VOS...  Is "XDM_GENERATE_HEADER" an option I should set temporarily when I want VOS to be sent and then set back to "XDM_ENCODE_AU"?  Is there a way to make the codec generate VOSs periodically?

    Thanks

  • Hi Bruno,

    Bruno Marchand said:
    Is there a way to make the codec generate VOSs periodically?

    No the coded does not generate VOSs periodically on its own.

    As suggested one need to call codec with XDM_GENERATE_HEADER at the periodicity required.

     

  • Hi Venugopala,

    Thanks for all the information provided.