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.

H264fhdvenc:Failed to set cpld bit. (DM6467)

Now I am trying to integrate the new h264fhdvenc library into my DM6467 platform. The h264fhdvenc is downloaded from the URL:

http://software_dl.ti.com/dsps/dsps_public_sw/codecs/DM6467/index_FDS.html

 

The version info is as below:

dm6467_hdvicp_1_01_017_production.bin

dm6467_h264fhdvenc_01_10_02_02_production.bin

 

Now I have successfully fulfilled these steps as below:

1)      Copy the h264fhdvenc codec to the path /ti/sdo/packages/codecs and replace the hdvicp codec with the new version hdvicp_1_01_017.

2)      Modify the encode.tcf and encode.cmd files under the path

/ti/sdo/packages/codecs/encode referenced with

http://e2e.ti.com/forums/t/12408.aspx.

3)      Modify the video.c and codecs.c in the encode demo. Change IH264ENC_Params H264ENC_DynamicParams into the new   IH264FHDVENC_Params

IH264FHDVENC_DynamicParams.

 

After these steps, I run the new demo, the results is as below:

 

#Encode demo start.

Failed to set cpld bit.

 

Does anyone have some advices?

(BTW: From the trace info, the engine has been open successfully, and it does not matter with the Venc1_create parameters.)

  • Now I just find when I set the params->input_chromaFormat as XDM_YUV_420SP in the video.c of encode demo, this error happens.

    But the 1080P codecs  which Ti provides only support  XDM_YUV_420SP. If I set this param as XDM_YUV_420P,although there isn't any error,but

    the encode demo still can not work normally.

  • Hello Zhang,

    Could you list all the parameters you are setting for the encoder (both creation and dynamic)?

    Thanks,

    Alex

  • 3)      Modify the video.c and codecs.c in the encode demo. Change IH264ENC_Params H264ENC_DynamicParams into the new   IH264FHDVENC_ParamsIH264FHDVENC_DynamicParams.

    hello zhang, could you tell me how to fill the value of IH264FHDVENC_ParamsIH264FHDVENC_DynamicParams, my mail address is wlj319@163.com, thanks a lot.

  • If you are using IH264FHDVENC_Params , then you are actually making use of extended Create params. I would suggest using the Base params to integrate the encoder and then you can move to the extended create params if you really require.

    So if you use the Base Create params (IVIDENC1_Params), you can use the following settings

     

        sizeof(IVIDENC1_Params),         /*!< Structure size                             */
        XDM_DEFAULT,                       /*!< Encoding preset set to default             */
        IVIDEO_LOW_DELAY,            /*!< Rate control preset                        */
        1088,                                           /*!< Maximum Picture Height                     */
        1920,                                          /*!< Maximum Picture width                      */
        30000,                                       /*!< Maximum Frame rate                         */
        10000000,                                /*!< Maximum Bit-rate                           */
        XDM_LE_32,                          /*!< Data endianess - 32-bit little endian      */
        0,                                             /*!< Max Inter frame interval                   */
        XDM_YUV_420SP,               /*!< Input Chroma Format                        */
        IVIDEO_PROGRESSIVE,      /*!< Content Type                               */
        XDM_CHROMA_NA           /*!< Recon format                               */

     

    Similarly, I would suggest to use the base params for the dynamic Params (IVIDENC1_DynamicParams) instead of  IH264FHDVENC_DynamicParams

     

         videncDynamicParams.size                        = sizeof(IVIDENC1_DynamicParams)
         videncDynamicParams.captureWidth         = 0;
         videncDynamicParams.inputHeight            = 1088;
         videncDynamicParams.inputWidth             = 1920;
         videncDynamicParams.generateHeader      = XDM_ENCODE_AU;
         videncDynamicParams.refFrameRate         = 30000;
         videncDynamicParams.targetBitRate          = 2000000;
         videncDynamicParams.generateHeader       = 0;
         videncDynamicParams.intraFrameInterval   = 30;
         videncDynamicParams.interFrameInterval   = 0;
         videncDynamicParams.forceFrame             = -1;
         videncDynamicParams.mbDataFlag           = 0x0;

     

    Regards,

    kapil

  • hello zhang

          I have the same problem.Have you solve ti? Can you mail to me ?    linfb@chnsysy.com.cn

  • zhang,

     

    Is this issue resolved?

     

    Regards,

    Kapil

  • hi zhang:

          i have been met the same problem like yours, 

          the photo is lower frame while i set  704*576 and pstDynParams->videncDynamicParams.targetBitRate   = 2000000

          the photo is normal while i set 704*576 and pstDynParams->videncDynamicParams.targetBitRate   = 6000000

          could you give me some suggestions,  and my mail addresses is :  zhoum@iview.cc

         thanks!