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.

DVR RDK McFW

Hi,

I want to use DVRRDK for NVR.

Here we require only decode and display portion.

I am stuck at one place.

I want decode and display live sreame from IP camera.

By tacking refrance from DECODE DISPLAY Example.

 

LibDecodeDisplay(uint8 chNo, uint8ptr buff, uint32 len)

{

      req.numBuf =16;

     req.minBuf[0-15] =704x576;

     Vdec_requestBitsStreamBuffer(&req, &emptyBuffList );

     emptyBuffList.bitsBuff[0 - available buffer].chnId =  chNo;

    emptyBuffList.bitsBuff[0 - available buffer].filledBufSized = len;

    memcpy(emptyBuffList.bitsBuff[0- available buffer].buffVirtAddr, buff, len);

    Vdec_putsBitsStreamBuffer(&emptyBuffList);

}

 

I am using 4 IP Camera(Axis, Samsung ,Panasonic, and Chinize) which is play at 25-30fps.

Decode and Display works ok for 25-30 second only .after that it gives me :emptyBuffList.numBufs = 0 continously.

So buffer in not empty.

Can anyone suggest me what could be problem.

Regards,

Bharat Gohil

 

 

 

 

 

 

  • Hi Bharat,

    Your application code to feed the decoder link looks fine. Can we get some details about the streams that you are feeding to the decoder? I mean what is the resolution and bitrate? Do they have Bframes or only I+P? Can we get the log that gets printed on the console? Please also print the statistics by pressing "i" at the top level menu of UART UI.

    I feel because your bitstream might have multi-reference frames, decoder is not freeing the buffers to the application. We might have to increase the number of buffers for the link based on the stream configuration.

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.

  • Hi Anshuman,

    Thanks for quick replay.

    I have 70x576 and 640x480 frame.

    I have only I-frame and p-frame.

    We i press 'e' stop demo(When buffer is not available)

    One massage shows RECV:810  , FREE 714 DROPPED:0 AVGLATENCY:6771

    We i press 'e' stop demo(When buffer is  available)

    One massage shows RECV:519  , FREE 519 DROPPED:0 AVGLATENCY:6771

     

    I try to some the configration but i am unable find answer.

    We might have to increase the number of buffers for the link based on the stream configuration.

    What kind of Stream configration we have to change?

    Regards,

    Bharat Gohil