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.

encode bitrate setting fail

Hi TI,

I am working on rdk3.0, I try to dynamic setting encode bitrate parameter to 4Mbps at all encode channel, but I got below error message and encoder is stuck. Is there any parameter is illegal? There are 8ch D1 and 8ch half-D1 encode in my system.

[m3video] -1781145112:ENCLINK:H264Enc !!WARNING!!!Unable to handle runtime output buffer request

 23795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 999 times)
 24795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 998 times)
 25795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 997 times)
 26795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 996 times)
 27795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 995 times)
 28795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 994 times)
 29795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 993 times)
 30795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 992 times)
 31795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 991 times)
 32795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 990 times)
 33795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 989 times)
 34795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 988 times)
 35795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 987 times)
 36795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 986 times)
 37795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 985 times)
 38795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 984 times)
 39795: MSGQ: MsgQ Ack get from [VIDEO-M3] failed for link 63, cmdId 0x900f !!! (retrying - 983 times)

Thanks,

Jacson

  • Hi TI,

    Where can I fine the max and min bitrate support value? Is there any relationship with resolution?

    Thanks,

    Jacson

  • The error indicates encoder output buffer size is insufficient to store encoded frame. This could be because you have increased the bitrate to 4Mbps even for half D1.

    You can change

    /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 encoded bitbuffer size to theoretical max size of encoded frame

    Minimum bitrate for h264 encoder is 16384

    Maximum bitrate depends on level with which the encoder is created.For D1 default level is 3.1 in DVR RDK.

    You can check Wikipedia for details on h264 levels: http://en.wikipedia.org/wiki/H264#Levels