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.

A question about H264 codec in DVRRDK

Hi,I`m working with DM8168 and DVRRDK.

I want two H.264 codec to decode one file. The first codec will decode odd number frames ,the second will do even frames.

Before the second codec start decoding the 2nd frame, the 1st frame YUV frame data need to be available as the reference data.

If the YUV is available ,how to make the codec recognize the foreign YUV data as the reference frame?Should I just put the YUV in some special address, or need some other operation? In DVR RDK I only find a process function in declink codec api, so I need help now.

This situation may look strange but it`s what I need now.

  • Hello, 

    This sounds interesting!! Is it possible to share the use case details little more?

    Are you attempting to use multiple HDVICPs to divide the load or something like that?

    Just to understand little better -

    Assume

    Dec1 decodes frame numbers 0, 2, 4, 6 ...

    Dec2 decodes frame numbers 1, 3, 5, 7....

    For Dec1 to decode frame number 2, it has reference to both 0 and 1 OR only 1 OR only 0??

    For Dec2 to decode frame number 3, it has reference to both 0 and 1 OR only 1 OR only 0??

    Regards,

    Pavan

  • Hi,thanks for answering!

    As you say, I am attempting to use multiple HDVICPs to divide the load.

    For Dec1 to decode frame number 2, it has reference to both 0 and 1;     frame 0 is local and 1 is from Dec2.

    For Dec2 to decode frame number 3,it has reference to both 0 and 1 and 2;    frame 1 is local and 0,2 is from Dec1

    So Dec1 Dec2 need yuv data from each other.

  • In this example, when Dec 2 wants to decode frame number 3, it should not be dependent on frame 2. Since decoding of frame 2 is happening in parallel to decoding of frame 3. Right?

    Codec in current shape does not really allow this type of sharing. You might have to tweak DPB management code to accomplish this.

  • OK, but could you explain more about ' tweak DPB management code'? I don`t really understand it.

    Regards,

    Xiaotao

  • Hello Xiaotao, 

    It is code changes inside codec.

    Please get in touch with the TI sales or field contact person you are interacting with, so that we can take this forward.

    Regards,

    Pavan