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.

JPEG Extended error 400



Hi,
I want to encode 3264x2448 jpeg in ipnc rdk 3.8. I also see the error message as below. I modify "UTILS_ENCDEC_GET_BITBUF_SIZE" in Utils_encdec.h, but error msg still happen.
How can I resolve this problem? Error message like below,

It seems ring buffer problem after I dig into this issue. Can you help to provide pitch to fix this?

[m3video] 28187:WARN
[m3video] ENC : IVAHDID : 0 ENCLINK:ERROR in EncLink_SubmitBatch.Status[-1]
[m3video] 28706:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_jpeg.c:[216]::INTERNAL ERROR:-1
[m3video] ALGPROCESS FAILED
[m3video] JPEG Extended error 400
[m3video] 28707:WARN
[m3video] ENCLINK:ERROR in Enclink_JPEGEncodeFrame.Status[-1]

BR.
Jacson

JPEG Extended error 400

  • Hello,

    I will notify the IPNC team for help.

    BR

    Margarita

  • Hi Jacson,
    Please check if outArgs->bytesGenerated is > outputbuffer size.
    What is the modified UTILS_ENCDEC_GET_BITBUF_SIZE value?
  • Hi Margarita,

    I find message "*******early termination********" in the encLink_jpeg.c will be print out when error happen.

    yes, the outArgs->bytesGenerated is > outputbuffer size
    It seems read speed is slow than write.

    My UTILS_ENCDEC_GET_BITBUF_SIZE definition like below,

    #define UTILS_ENCDEC_BITBUF_SCALING_FACTOR (1)

    /** @enum UTILS_ENCDEC_GET_BITBUF_SIZE
    * @brief Macro that returns max size of encoded bitbuffer for a given resolution
    */
    #define UTILS_ENCDEC_GET_BITBUF_SIZE(width,height,bitrate,framerate) \
    (((width) * (height) *3)/UTILS_ENCDEC_BITBUF_SCALING_FACTOR)

    BR.
    Jacson