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.

How can we encoder 1920x1080 h.264 video using by codec engine?

Hi,Ti

      We want to encoder 1920x1080 h.264 video using by codec engine, the codec is H264ENC.version.02.00.00.10.wizardversion.0.5.2 .

and MVL5.0,  dmai_1_21_00_10, dvsdk_2_10_01_18.   We can encoder 1080p video using H264enc-r demo.

   We can run encoder   1280x720p   h.264  video bu using codec engine,

1)    But we encoder 1920x1080 h.264 video using codec engine, the error is

 Starting ccdc_setwin... 0, 0,1920,1080
End of ccdc_setwin...<7>
End of ccdc_config_raw...
case VPFE_CCDC_CAP_START:
Encode demo started.

 Encoder Creation Done
Size of I/P buffer:2088960
Size of I/P buffer:1044480
Output stream buffer size:3133440
H264 encode init. Okay
CMEMK Error: Failed to free memory at 0x84bf6400
Encoder Returned a Failure
        Frame No              : 1
        Error Status          : -1
        Extended Error Status : 32774

        Fatal Error:    IH264VENC_ERR_IVIDENC1_INBUFS
CMEM Error: free: failed to free 0x4152f400
Frame : 1 Encoded: Bytes Generated : 0
Process time of Encoder in useconds = 300041
CMEMK Error: Failed to free memory at 0x87835400
Encoder Returned a Failure

 2) When we use the video_encode_io1_dm365.x470MV, it cann't encoder 1920x1080 h.264 video.

We find the  default size  of  DMAI is 720p. 

How can weencoder 1920x1080 h.264 video using codec engine? we want it on DM368 and dm365.

Thank you !

 


 

 

  • Star,

     

    I believe that error means that you are incapable of applocating the appropriate amount of memory to hold the data requried to perform 1080p encode.  You will need to allocate more memory than what you are currently to hold that large amount of data.  See here for some more info:

    http://processors.wiki.ti.com/index.php/CMEM_Overview

     

  • Hi,

    The error code from codec means that the InBuf were not set correctly. This can happen if NULL is being set as input buffer address to the VIDENC1_process call. Please verify your input address.

    It might be possible that the INBUF might not be getting set correctly because CMEM could not allocate enough buffer, as mentioned by Jeff.

     

    Regards,

    Anshuman

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