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.

h.264 encoder in c6678 working with video resolution 4K

I encode the video with encoder version C66x_h264hpvenc_01_00_02_00_ELF_32bit, and I can use the sample test application.

When the resolution is 1920x1080,it can work well,but when it is 4096x3840,the application failed at creation.

It says I just have to change the parameters width, height and provide enough buffers.

I want to know the buffer needs when the resolution changed,how should I change the buffer size?

Thank  you!

  • Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages (for processor issues). Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics (e2e.ti.com). Please read all the links below my signature.

    We will get back to you on the above query shortly. Thank you for your patience.

  • Hi,

    Can you please send me the config file you are using to encode stream with resolution 4096x3840.

    Thanks and Regards
    Palachandra M V
    www.pathpartnertech.com
  • Hi,
    Sorry for reply so late, the encoder can work fine now, I use the config file encoder.cfg in the encoder folder:
    C:\ti\Codecs\C66x_h264hpvenc_01_00_02_00_ELF\packages\ti\sdo\codecs\h264hpvenc\App\Client\Test\TestVecs\Config
    the following is the changes in the config file:
    MaxWidth = 4096 # Max Frame width
    MaxHeight = 3840 # Max Frame height

    inputWidth = 4096 # width of image
    inputHeight = 3840 # Height of image

    The following is the changes in the program:
    XDAS_UInt8 InBuffers[(4096*3840 + 4096*3840 + 32 )*9];
    #define CORE_EXT_DATA_MEM_SIZE (80 * 1024 * 1024)
    #define EXTERNAL_SHARED_DATA_MEM_SIZE (200 * 1024 * 1024)