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 I migarte codec from 2.0 to 2.1?

I want to migarte codec from 2.0 to 2.1,but I failed to do this.

My steps:

1.download H.264 Encoder, Version 2.10.00.06.

2.tar H.264 Encoder, Version 2.10.00.06.the file is:package ,packages ,package.xdc.

I do not know put these files to my dvsdk .The codec I used is 2.0.

I tryed to replace the file"dm365_codecs_01_00_06\packages\ti\sdo\codecs\h264enc"  with the files "packages\ti\sdo\codecs\h264enc",remake all dvsdk.

And then changed the resolution  to 2408 X 2408,but the code failed .

So I do not how to do with the migartion?Thanks.

  • There is a  article "Migration Guide for DM36x H.264 version 2.1 codecs" 

    http://processors.wiki.ti.com/index.php/H.264_DM36x_Ver_2.1_Codec.

    It said "they can just replace the existing codec RTSC package with the new ver 2.1 codec RTSC package and rebuild the application".

    But I do not know what is RTSC package.

  • http://processors.wiki.ti.com/index.php/H.264_DM36x_Ver_2.1_Codec will tell about the API chnage in case extended parameters are being used in the application. Otherwise, replacing *\h264enc\ directory is OK,

     

    regards

    Yashwant

  •  

    My steps are these:

    1.I replaced the file "/dvsdk_2_10_01_18_2.1/dm365_codecs_01_00_06/packages/ti/sdo/codecs/h264enc"

       with the file"dm365_h264enc_02_10_00_06_production/packages/ti/sdo/codecs/h264enc"

    2.I deleted these sentences in the file "alg_vidEnc.c"

            //pObj->params_h264.aspectRatioX = 1;

            // pObj->params_h264.aspectRatioY = 1;

           //  pObj->params_h264.pixelRange = 1;

           //  pObj->params_h264.timeScale = 60;

           //  pObj->params_h264.numUnitsInTicks = 1;

           //  pObj->params_h264.disableHDVICPeveryFrame = 0;

           //  pObj->params_h264.unrestrictedMV = 1;

    3.I added these sentences in the file "alg_vidEnc.c"

              pObj->params_h264.numTemporalLayers = 0;

              pObj->params_h264.svcSyntaxEnable= 0;

              pObj->params_h264.EnableLongTermFrame = 0;

              pObj->params_h264.Log2MaxFrameNumMinus4 = 0;

              pObj->params_h264.ConstraintSetFlag = 0;

              pObj->params.encodingPreset             = XDM_HIGH_SPEED;

              pObj->params_h264.encQuality   = 2;

              pObj->dynamicParams_h264.aspectRatioX = 1;
              pObj->dynamicParams_h264.aspectRatioY = 1;
              pObj->dynamicParams_h264.maxBitrateCVBR= 768000;
              pObj->dynamicParams_h264.interlaceRefMode = 0;
              pObj->dynamicParams_h264.rcAlgo = 3;
              pObj->dynamicParams_h264.enableGDR = 0;
              pObj->dynamicParams_h264.GDRduration = 5;
              pObj->dynamicParams_h264.GDRinterval = 30;
              pObj->dynamicParams_h264.LongTermRefreshInterval = 0;
              pObj->dynamicParams_h264.UseLongTermFrame = 0;
              pObj->dynamicParams_h264.SetLongTermFrame = 0;
              pObj->dynamicParams_h264.VUI_Buffer = &VUIPARAMBUFFER;
              // pObj->dynamicParams_h264.VUI_Buffer->pixelRange = 0;
              // pObj->dynamicParams_h264.VUI_Buffer->timeScale = 40;
              // pObj->dynamicParams_h264.VUI_Buffer->numUnitsInTicks = 1;
              pObj->dynamicParams_h264.CustomScaleMatrix_Buffer= &CUSTOMSCALINGMATRIX;

    4.I rebuilded all the files."make all"

    5.I runed the code ,the terminal displayed these :

     ERROR  (alg_vidEnc.c|ALG_vidEncSetDynamicParams|372): XDM_SETPARAMS failed, status=-1
     ERROR  (videoEncodeThr.c|VIDEO_encodeTskCreate|140): ALG_vidEncCreate(0) ERROR  (videoEncodeThr.c|VIDEO_encodeTskMain|545): VIDEO_encodeTskCreate()
     ERROR  (avServerMainThr.c|AVSERVER_tskStart|78):

     I do not know why.

  • My dvsdk is dvsdk_2_10_01_18 .The old code version was 2.0.

    I found the max resolution with 2.1 is 2240x2240.

    But my resolution is 3776x1408.

  • Can you use "h264venc_ti_arm926_debug.a" (which is debug library and dumps more information)) instead of "h264venc_ti_arm926.a" and share the logs.

    What do you mean by  "'max resolution with 2.1 is 2240x2240."? The max resolution supported in 2.10.00.06 is 4096x4096.

    Also I am bit confused, in your very first post you said you are working on "2408 X 2408"  and now you said your resolution is "3776x1408". Please clarify.


  • 1. Q:What do you mean by  "'max resolution with 2.1 is 2240x2240."? The max resolution supported in 2.10.00.06 is 4096x4096.

       A:When I set the resolution 2240x2240,the codes runed successful

           When I set the resolution 2272x2272,the codes runed failed.

          So I said the max resolution is 2240x2240.

    2.Q:Also I am bit confused, in your very first post you said you are working on "2408 X 2408"  and now you said your resolution is "3776x1408".

       A: We chaned our resolution plan with new sensor.

    3.Q:

    Can you use "h264venc_ti_arm926_debug.a" (which is debug library and dumps more information)) instead of "h264venc_ti_arm926.a" and share the logs.

     A:

     

    CODEC_DEBUG_ENABLE: Inside Funtion to get memtab Requirement -> H264VENC_TI_numAlloc
    CODEC_DEBUG_ENABLE: Number of memtabs required: 15
    CODEC_DEBUG_ENABLE: Inside Funtion to Get Memory Requirements of the current algoirthm  instance -> H264VENC_TI_alloc
    CODEC_DEBUG_ENABLE: H264VENC_TI_Obj-memTab[0].size =   0x0710
    CODEC_DEBUG_ENABLE: tH264EncState-memTab[1].size =   0x1670
    CODEC_DEBUG_ENABLE: tH264EncState-memTab[2].size =   0x1670
    CODEC_DEBUG_ENABLE: EXT_MEM_SCRATCH-memTab[3].size =   0x5000
    CODEC_DEBUG_ENABLE: EXT_MEM_PERSIST-memTab[4].size =   0x0800
    CODEC_DEBUG_ENABLE: MAX_REF_BUFFERS-memTab[5].size =   0x100a400
    CODEC_DEBUG_ENABLE: LIST_SLICE_SIZES-memTab[6].size =   0x0320
    CODEC_DEBUG_ENABLE: uiMaxCodeSize-memTab[7].size =   0xcd78
    CODEC_DEBUG_ENABLE: uiMaxCodeSize-memTab[8].size =   0xcd78
    CODEC_DEBUG_ENABLE: KALEIDO_COMMANDS-memTab[9].size =   0x10180
    CODEC_DEBUG_ENABLE: AIR_BIT_STORAGE-memTab[10].size =   0x20000
    CODEC_DEBUG_ENABLE: AIR_BIT_STORAGE-memTab[11].size =   0x40000
    CODEC_DEBUG_ENABLE: tStPhysicalAddrHandle-memTab[12].size =  0x0280
    CODEC_DEBUG_ENABLE: IMCOP_TO_DDR-memTab[13].size =   0xc000
    CODEC_DEBUG_ENABLE: MEGAPIX_IMCOP_TO_DDR-memTab[14].size =   0x11880
    CODEC_DEBUG_ENABLE: Exiting Funtion H264VENC_TI_alloc

    CODEC_DEBUG_ENABLE: Inside Init Obj Function
    CODEC_DEBUG_ENABLE: Intialises the memory allocated for a given handle object instance
    CODEC_DEBUG_ENABLE: Checking MemTab Parameters-> Base_Null, Base_Not_Aligned and Overlap
    CODEC_DEBUG_ENABLE: Checking MemTab Parameters-> Base_Null, Base_Not_Aligned and Overlap Completed
    CODEC_DEBUG_ENABLE: Checking Input parameter Values
    CODEC_DEBUG_ENABLE: Checking of Input parameter Completed
    CODEC_DEBUG_ENABLE: Inside H264VENC_TI_Copy_codearm968 Function to Copy Code & Data Sections
    CODEC_DEBUG_ENABLE: Succesfully Copied Code & Data Sections
    CODEC_DEBUG_ENABLE: Inside H264VENC_TI_Copy_codearm968_3 Function to Copy Code & Data Sections
    CODEC_DEBUG_ENABLE: Succesfully Copied Code & Data Sections
    CODEC_DEBUG_ENABLE: Inside H264VENC_TI_Copy_codearm968_2 Function to Copy Code & Data Sections
    CODEC_DEBUG_ENABLE: Succesfully Copied Code & Data Sections
    CODEC_DEBUG_ENABLE: Initializing SPS parameters
    CODEC_DEBUG_ENABLE: SPS parameters initialization Completed
    CODEC_DEBUG_ENABLE: Initializing PPS parameters
    CODEC_DEBUG_ENABLE: SPS parameters initialization Completed
    CODEC_DEBUG_ENABLE: Inside Slice Initilization Call
    CODEC_DEBUG_ENABLE: Slice Initilization Completed
    CODEC_DEBUG_ENABLE: Inside IRES Call to get Number of Resources -> H264VENC_TI_numResourceDescriptors
    CODEC_DEBUG_ENABLE: Number of Resources Required - 50
    CODEC_DEBUG_ENABLE: Inside IRES Call to Get Resource -> H264VENC_TI_getResouceDescriptors
    CODEC_DEBUG_ENABLE: Exiting IRES Call to Get Resource function
    CODEC_DEBUG_ENABLE: Inside DDR allocation
    CODEC_DEBUG_ENABLE: Inside IRES Call to Init Resource -> H264VENC_TI_initResources

    CODEC_DEBUG_ENABLE: Resource Number - 0
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 12
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564180

    CODEC_DEBUG_ENABLE: Resource Number - 1
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 13
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405641a0

    CODEC_DEBUG_ENABLE: Resource Number - 2
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 14
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405641c0

    CODEC_DEBUG_ENABLE: Resource Number - 3
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 15
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405641e0

    CODEC_DEBUG_ENABLE: Resource Number - 4
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 16
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564200

    CODEC_DEBUG_ENABLE: Resource Number - 5
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 17
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564220

    CODEC_DEBUG_ENABLE: Resource Number - 6
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 18
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564240

    CODEC_DEBUG_ENABLE: Resource Number - 7
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 19
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564260

    CODEC_DEBUG_ENABLE: Resource Number - 8
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 20
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564280

    CODEC_DEBUG_ENABLE: Resource Number - 9
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 21
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405642a0

    CODEC_DEBUG_ENABLE: Resource Number - 10
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 22
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405642c0

    CODEC_DEBUG_ENABLE: Resource Number - 11
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 23
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405642e0

    CODEC_DEBUG_ENABLE: Resource Number - 12
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 24
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564300

    CODEC_DEBUG_ENABLE: Resource Number - 13
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 25
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564320

    CODEC_DEBUG_ENABLE: Resource Number - 14
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 28
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564380

    CODEC_DEBUG_ENABLE: Resource Number - 15
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 29
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405643a0

    CODEC_DEBUG_ENABLE: Resource Number - 16
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 30
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405643c0

    CODEC_DEBUG_ENABLE: Resource Number - 17
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 31
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405643e0

    CODEC_DEBUG_ENABLE: Resource Number - 18
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 32
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564400

    CODEC_DEBUG_ENABLE: Resource Number - 19
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 33
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564420

    CODEC_DEBUG_ENABLE: Resource Number - 20
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 34
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564440

    CODEC_DEBUG_ENABLE: Resource Number - 21
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 35
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564460

    CODEC_DEBUG_ENABLE: Resource Number - 22
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 36
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564480

    CODEC_DEBUG_ENABLE: Resource Number - 23
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 37
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405644a0

    CODEC_DEBUG_ENABLE: Resource Number - 24
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 38
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405644c0

    CODEC_DEBUG_ENABLE: Resource Number - 25
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 39
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405644e0

    CODEC_DEBUG_ENABLE: Resource Number - 26
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 40
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564500

    CODEC_DEBUG_ENABLE: Resource Number - 27
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 41
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564520

    CODEC_DEBUG_ENABLE: Resource Number - 28
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 42
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564540

    CODEC_DEBUG_ENABLE: Resource Number - 29
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 43
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564560

    CODEC_DEBUG_ENABLE: Resource Number - 30
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 44
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564580

    CODEC_DEBUG_ENABLE: Resource Number - 31
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 45
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405645a0

    CODEC_DEBUG_ENABLE: Resource Number - 32
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 46
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405645c0

    CODEC_DEBUG_ENABLE: Resource Number - 33
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 47
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405645e0

    CODEC_DEBUG_ENABLE: Resource Number - 34
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 48
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564600

    CODEC_DEBUG_ENABLE: Resource Number - 35
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 49
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564620

    CODEC_DEBUG_ENABLE: Resource Number - 36
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 50
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564640

    CODEC_DEBUG_ENABLE: Resource Number - 37
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 51
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564660

    CODEC_DEBUG_ENABLE: Resource Number - 38
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 52
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564680

    CODEC_DEBUG_ENABLE: Resource Number - 39
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 53
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405646a0

    CODEC_DEBUG_ENABLE: Resource Number - 40
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 54
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405646c0

    CODEC_DEBUG_ENABLE: Resource Number - 41
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 55
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x405646e0

    CODEC_DEBUG_ENABLE: Resource Number - 42
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 56
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564700

    CODEC_DEBUG_ENABLE: Resource Number - 43
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 57
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564720

    CODEC_DEBUG_ENABLE: Resource Number - 44
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 58
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564740

    CODEC_DEBUG_ENABLE: Resource Number - 45
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 59
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1 
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x40564760


    CODEC_DEBUG_ENABLE: IRES Call to Open EDMA Channel Successfully Completed
    CODEC_DEBUG_ENABLE: Inside IMCOP Resource allocation
    CODEC_DEBUG_ENABLE: Resource Number - 47
    CODEC_DEBUG_ENABLE: HDVICP resoruce alloted
    CODEC_DEBUG_ENABLE: Inside Encoder Handle Structure Activate Call -> H264VENC_TI_activate
    CODEC_DEBUG_ENABLE: Inside IRES Call to Activate All Resources -> H264VENC_TI_activateAllResources
    CODEC_DEBUG_ENABLE: Control Call With SETPARAM Command
    CODEC_DEBUG_ENABLE: Error IH264VENC_ERR_LEVEL_NOT_FOUND
    CODEC_DEBUG_ENABLE: Inside IRES Call to Deactivate All Resources -> H264VENC_TI_deactivateAllResources
    CODEC_DEBUG_ENABLE: Inside Encoder Handle Structure Deactivate Call -> H264VENC_TI_deactivate
     ERROR  (alg_vidEnc.c|ALG_vidEncSetDynamicParams|372): XDM_SETPARAMS failed, status=-1
    CODEC_DEBUG_ENABLE: Inside IRES Call to get Number of Resources -> H264VENC_TI_numResourceDescriptors
    CODEC_DEBUG_ENABLE: Number of Resources Required - 50
    CODEC_DEBUG_ENABLE: Inside IRES Call to Get Resource -> H264VENC_TI_getResouceDescriptors
    CODEC_DEBUG_ENABLE: Exiting IRES Call to Get Resource function
    CODEC_DEBUG_ENABLE: Inside IRES Call to DeInit Resource -> H264VENC_TI_deinitResources
    CODEC_DEBUG_ENABLE: Inside Funtion to get memtab Requirement -> H264VENC_TI_numAlloc
    CODEC_DEBUG_ENABLE: Number of memtabs required: 15
    CODEC_DEBUG_ENABLE: Inside Encoder Handle Structure Free Call -> H264VENC_TI_free
     ERROR  (videoEncodeThr.c|VIDEO_encodeTskCreate|140): ALG_vidEncCreate(0) ERROR  (videoEncodeThr.c|VIDEO_encodeTskMain|545): VIDEO_encodeTskCreate()
     ERROR  (avServerMainThr.c|AVSERVER_tskStart|78):

     

  • Looks like you are not setting levelIdc to correct value.

          CODEC_DEBUG_ENABLE: Error IH264VENC_ERR_LEVEL_NOT_FOUND

    Please cross check value of lavelIDC as per your resolution, bitrate, FPS settings etc.

  • Thanks. The problem is solved.

     

  • Do you mean the problem was with LevelIdc ?

    please update the solution what made to solve the issue will be helpfull for every one in the group, while closing the issue.

    other wise issue was closed but it makes some one difficult to understand the cause or how it is solved. 

  • Yes.I just changed the levelIdc  value.

    Because I used levelldc = 31 for resolution 3744x1408.But the levelldc can not support this big resolution.

    The levelldc = 51 can support this resolution.

  • Thanks for the update.