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.

DVRRDK enclink error

what does the following encLink error means? Thanks

[m3video] 1037387944:ENCLINK:H264Enc !!WARNING!!!Unable to handle runtime output buffer request  
[m3video] 34095:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[450]::INTERNAL ERROR:-1
[m3video] ALGPROCESS FAILED  
[m3video] Number of Entries in Process List : 1  
[m3video] Extended error for entry 0 : 0x18400
[m3video] 34095:WARN  
m3video] ENCLINK:ERROR in Enclink_h264EncodeFrameBatch.Status[-1] for IVAHD_0
[m3video] 34095:WARN  
[m3video] ENC : IVAHDID : 0 ENCLINK:ERROR in EncLink_SubmitBatch.Status[-1]
[m3video] 34096:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[450]::INTERNAL ERROR:-1  
[m3video] ALGPROCESS FAILED  
[m3video] Number of Entries in Process List : 1  
[m3video] Extended error for entry 0 : 0x18000
[m3video] 34096:WARN  
[m3video] ENCLINK:ERROR in Enclink_h264EncodeFrameBatch.Status[-1] for IVAHD_0  
[m3video] 34096:WARN  [m3video] ENC : IVAHDID : 0 ENCLINK:ERROR in EncLink_SubmitBatch.Status[-1]

  • Error indicates encoder output buffer size is insufficient. Modify

    Modify /dvr_rdk/mcfw/src_bios6/links_m3video/codec_utils/utils_encdec.h

    #define UTILS_ENCDEC_GET_BITBUF_SIZE(width,height,bitrate,framerate)          \                     (((width) * (height))/2)

    to

    #define UTILS_ENCDEC_GET_BITBUF_SIZE(width,height,bitrate,framerate)          \                     (((width) * (height) * 3)/2)

     

    to increase encoder output buffer size.

    Also check your encoder bitrate setting is correct. What is your resolution and what is the bitrate you are configuring the encoder

     

  • I am using DVR RDK 3.0

    I originally having the chain  cap -> nsf -> dei -> enc -> dec -> swms -> disp for testing and things were right, with DEI output resolution set to 720x576.

    now I want to test the DSP SCD functionality, so I duplicate the output of DEI and pass it to DSP too.

    cap -> nsf -> dei -> dup ---> enc -> dec -> swms -> disp 
                                      |-----> DSP -----> A8

    as SCD allows max resolution of 352x288, so I change the output of DEI to that.

    and afther executing, I got the error above.

  • The encoder targetBitRate is probably wrongly set for D1 (2 mbps default). For CIF targetBitrate of 512 kbps is reasonable.

  • Does it relates to the bitrate? for testing purpose, I have set the bitrate to the default value (2000 * 1000) (chID + 1)

    how should an appropriate bitrate be determined?

  • It is realets to bitrate. Default value of 2000*1000 is too high for CIF resolution.It should be 512*1000

  • Thanks, the error has been solved after changing the bitrate as suggested.

    So does it mean for D1, any bitrate under 2000*1000 for encoder would be fine.
    and for CIF, bitrate can be set to any value under 512*1000?

    and how about for 1080p and 960H that I have to work on later?
    what would be appropriate bitrate for them?

    another question, how about the bitrate in decoder? does it have to set similary like encoder?
    I mean D1 = 2k * 1000, CIF = 512 * 1000?
    or leave it as default value of  2k * 1000 would be ok?

  • Yes you are correct about D1 and CIF/

    For 1080P 10 mbps is reasonable.

    For 960H 2.5  to 3 mbps is reasonable.

    For decoder bitrate setting doesn't matter. You can set it to -1 so that any bitrate can be decoded.

  • Thanks for helping me a lot again

  • Dear Badri,

    Can you tell me what are the minumum and maximum bitrates suggested by TI based upon various resolutions. Do you have any document regarding the bitrate selection. Please send some document.