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.

about h264 baseline profile

hi

i m facing problem in changing the default Highprofile to baseline profile

problem faced when

1.try to initialize the IH264VENC_Params parameters

params.size = sizeof(IH264VENC_Params);

memcpy(&h264params, &IH264VENC_PARAMS, sizeof(IH264VENC_Params));
h264params.videncParams = params;
h264params.profileIdc = 66;
h264params.levelIdc = 31;

as according to me the profile idc and levelidc values are changed other shud be default

when printed the values are

h264params.profileIdc = 66                                                      
h264params.levelIdc = 31                                                        
h264params.entropyMode = 1                                                      
h264params.transform8x8FlagIntraFrame = 1                                       
h264params.transform8x8FlagInterFrame = 0                                       
h264params.Log2MaxFrameNumMinus4 = 0                                            
h264params.ConstraintSetFlag = 0                                                
h264params.numTemporalLayers = 0                                                
h264params.enableVUIparams = 0                                                  
h264params.svcSyntaxEnable = 0                                                  
h264params.meAlgo = 0                                                           
h264params.EnableLongTermFrame = 0                                              
h264params.seqScalingFlag  = 1                                                  
h264params.encQuality = 2                                                       
h264params.enableARM926Tcm = 0                                                  
h264params.enableDDRbuff = 0                                                    
h264params.sliceMode = 0                                                        
h264params.outputDataMode = 1                                                   
h264params.sliceFormat = 1 

after that

i tried to pass the initialized value to

hVe1 = Venc1_create(hEngine, args->codecName, (VIDENC1_Params*)&h264params, &dynParams);

but encoder is not creating

error:Failed to create video encoder h264

before the code is to pass the params and dynparams no IH264VENC_Params

and the create function passed with values

 hVe1 = Venc1_create(hEngine, args->codecName, &params, &dynParams); and working fine

then

I ve included the file in ti/sdo/codecs/h264enc/apps/inc/ih264venc.h

2,the

 VIDENC1_Params      
  VIDENC1_DynamicParams 

are initialized for default values in ti/sdo/dmai/ce/Venc1.c

which is passed if no other values are equated

but

IH264VENC_Params is no where initialized in the whole dvsdk directory then frm where it is taking default values

and the header ih264venc.h called nowhwre in the whole directory again

so please tell me how to change the profile to base line profile necessary for my application

and where the IH264VENC_Params are getting initialised

and if we have to intialize it by ourself then how to do it

i ve read many e2e post but the problem still persist.

i m using Leopard board dm365 with rr sdk and which is using  ti-dvsdk_dm365-evm_4_02_00_06

thanxx

kailash



  • Hi Kailash,

    You are setting h264params.entropyMode = 1 which is invalid for base profile.

    you can have look at following post.

    http://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/t/115354.aspx#500511

  • hi Veeranna

    sir

    now i m i ve given the parameters

     params.size = 124                                                              
    h264params.profileIdc = 66                                                      
    h264params.levelIdc = 31                                                        
    h264params.entropyMode = 0                                                      
    h264params.transform8x8FlagIntraFrame = 1                                       
    h264params.transform8x8FlagInterFrame = 0                                       
    h264params.Log2MaxFrameNumMinus4 = 0                                            
    h264params.ConstraintSetFlag = 0                                                
    h264params.numTemporalLayers = 0                                                
    h264params.enableVUIparams = 0                                                  
    h264params.svcSyntaxEnable = 0                                                  
    h264params.meAlgo = 0                                                           
    h264params.EnableLongTermFrame = 0                                              
    h264params.seqScalingFlag  = 1                                                  
    h264params.encQuality = 2                                                       
    h264params.enableARM926Tcm = 0                                                  
    h264params.enableDDRbuff = 0                                                    
    h264params.sliceMode = 0                                                        
    h264params.outputDataMode = 1                                                   
    h264params.sliceFormat = 1                                                      
    create1                                                                         
    Failed to create video encoder: h264enc                                         
     hEncode = 0End of application. 

    but still the same

    as i m doing in the appMain.c

    params.size = sizeof(IH264VENC_Params);

    memcpy(&h264params, &IH264VENC_PARAMS, sizeof(IH264VENC_Params));

    h264params.videncParams = params;
    h264params.profileIdc = 66;
    h264params.levelIdc = 31;
    h264params.entropyMode= 0;

     hVe1 = Venc1_create(hEngine, args->codecName, (VIDENC1_Params*)&h264params, &dynParams);

    before this i ve given

    params.size = sizeof(IH264VENC_Params);

    h264params.videncParams = params;
    h264params.profileIdc = 66;
    h264params.levelIdc = 31;
    h264params.entropyMode= 0;
    h264params.transform8x8FlagIntraFrame = 0;
    h264params.transform8x8FlagInterFrame = 0;
    h264params.Log2MaxFrameNumMinus4 = 0;
    h264params.ConstraintSetFlag = 0;
    h264params.numTemporalLayers = 0;
    h264params.enableVUIparams = 0;

    h264params.svcSyntaxEnable = 0;

    h264params.meAlgo = 0;
    h264params.EnableLongTermFrame = 0;
    h264params.seqScalingFlag = 0;
    h264params.encQuality = 2;
    h264params.enableARM926Tcm = 0;
    h264params.enableDDRbuff = 0;
    h264params.sliceMode =1;
    h264params.outputDataMode=1;
    h264params.sliceFormat =0;

     hVe1 = Venc1_create(hEngine, args->codecName, (VIDENC1_Params*)&h264params, &dynParams);

    and the code is working but the data is not coming correct after 1st frame

    and after first frame its giving

    segmentation fault error

    the different in both is currently i m using default value other than my initialised value

    and now i m using default value other than initialized value

    So did we shud initialize all the values or i m giving some wrong value as default value

    in default value

    h264params.transform8x8FlagIntraFrame = 1               
    h264params.sliceFormat = 1   

    and in my initialization both are zero

    is there somthing going wrong

    thanxx

    kailash 

  • Hi Kailash,

    Please set   h264params.sliceFormat = 1 and h264params.transform8x8FlagIntraFrame = 0  try. For information about these param have a look at User Guide.

    Which version  encoder you are using?. Please run with debug version of codec library it will prints more information codec.

    If problem still persists please send us a log with debug codec lib

    Thanks,

    Veeranna

  • hi

    sir

    now application is running fine but another problem i m facing now

    each frame is coming I frame no P frame

    the first frame is IDR then I I I

    IDR I I I I I

    the parameters i set are:

    dynParams.intraFrameInterval=30;

    i m not using IVIDENC1_DynamicParams

    directly passing only

    dynParams in create function

    does we have to initialize

    IVIDENC1_DynamicParams also

    as i ve done for  IVIDENC1_Params

    or something else is missing

    thanxx

    kailash

  • Hi Kailash,

    I guess Dynamic params going wrong. Better if you initialize them, in future you may need to change bitrate, framerate, etc according to your requirement..

    For the flow and setting param you can refer testapp and user guide provided with the release package.

    Thanks,

    Veeranna

  • hi

    sir

     params.rateControlPreset = IVIDEO_LOW_DELAY;
            params.maxBitRate        = args->bitRate;(command line arg)

      params.maxWidth              = args->width;(command line arg)
        params.maxHeight             = args->height;(command line arg)

    dynParams.intraFrameInterval=30;

     params.maxInterFrameInterval = 1;
        dynParams.targetBitRate      = params.maxBitRate;
        dynParams.inputWidth         = params.maxWidth;
        dynParams.inputHeight        = params.maxHeight;

     params.size = 124                                                              
    h264params.profileIdc = 66                                                      
    h264params.levelIdc = 31                                                        
    h264params.entropyMode = 0                                                      
    h264params.transform8x8FlagIntraFrame = 0                                       
    h264params.transform8x8FlagInterFrame = 0                                       
    h264params.Log2MaxFrameNumMinus4 = 6                                            
    h264params.ConstraintSetFlag = 0                                                
    h264params.numTemporalLayers = 0                                                
    h264params.enableVUIparams = 1                                                  
    h264params.svcSyntaxEnable = 0                                                  
    h264params.meAlgo = 0                                                           
    h264params.EnableLongTermFrame = 0                                              
    h264params.seqScalingFlag  = 0                                                  
    h264params.encQuality = 1         //changed frm 2 to 1                                             
    h264params.enableARM926Tcm = 0                                                  
    h264params.enableDDRbuff = 0                                                    
    h264params.sliceMode = 0                                                        
    h264params.outputDataMode = 1                                                   
    h264params.sliceFormat = 1                                                      
     h264dynParams.sliceSize = 0                                                    
     h264dynParams.airRate = 0                                                      
     h264dynParams.intraFrameQP = 28                                                
     h264dynParams.interPFrameQP = 28                                               
     h264dynParams.initQ = 28                                                       
     h264dynParams.rcQMax = 45                                                      
     h264dynParams.rcQMin = 0                                                       
     h264dynParams. rcQMaxI = 42                                                    
     h264dynParams.rcQMinI = 0                                                      
     h264dynParams.rcAlgo = 1                                                       
     h264dynParams.maxDelay = 2000                                                  
     h264dynParams.aspectRatioX = 1                                                 
     h264dynParams.aspectRatioY = 1                                                 
     h264dynParams.lfDisableIdc = 0                                                 
     h264dynParams.enableBufSEI = 0                                                 
     h264dynParams.enablePicTimSEI = 0                                              
     h264dynParams.perceptualRC = 1                                                 
     h264dynParams.idrFrameInterval = 0                                             
     h264dynParams.mvSADoutFlag = 0                                                 
     h264dynParams.resetHDVICPeveryFrame = 1                                        
     h264dynParams.enableROI = 0                                                    
     h264dynParams.metaDataGenerateConsume = 0                                      
     h264dynParams.maxBitrateCVBR = 50000000                                        
     h264dynParams.interlaceRefMode = 1                                             
     h264dynParams.enableGDR = 0                                                    
     h264dynParams.GDRduration = 0                                                  
     h264dynParams.GDRinterval = 0                                                  
     h264dynParams.LongTermRefreshInterval = 0                                      
     h264dynParams. UseLongTermFrame = 0                                            
     h264dynParams.SetLongTermFrame = 0                                             
     h264dynParams.CVBRsensitivity = 0                                              
     h264dynParams.CVBRminbitrate = 0                                               
     h264dynParams.LBRmaxpicsize = 0                                                
     h264dynParams.LBRminpicsize = 0                                                
     h264dynParams. maxHighCmpxIntCVBR = 0                                          
     h264dynParams.LBRskipcontrol = 327684                                          

    default vui

    h264dynParams.VUI_Buffer->aspectRatioInfoPresentFlag = 0                        
    h264dynParams.VUI_Buffer->overscanInfoPresentFlag = 0                           
    h264dynParams.VUI_Buffer->overscanAppropriateFlag = 0                           
    h264dynParams.VUI_Buffer->videoSignalTypePresentFlag = 1                        
    h264dynParams.VUI_Buffer->videoFormat = 2                                       
    h264dynParams.VUI_Buffer->pixelRange = 1                                        
    h264dynParams.VUI_Buffer->colourDescriptionPresentFlag = 0                      
    h264dynParams.VUI_Buffer->colourPrimaries = 2                                   
    h264dynParams.VUI_Buffer->transferCharacteristics = 2                           
    h264dynParams.VUI_Buffer->matrixCoefficients = 2                                
    h264dynParams.VUI_Buffer->timingInfoPresentFlag = 1                             
    h264dynParams.VUI_Buffer->numUnitsInTicks = 2                                   
    h264dynParams.VUI_Buffer->timeScale = 60                                        
    h264dynParams.VUI_Buffer->fixedFrameRateFlag = 0                                
    h264dynParams.VUI_Buffer->nalHrdParameterspresentFlag = 1                       
    h264dynParams.VUI_Buffer->picStructPresentFlag = 0                              
    h264dynParams.VUI_Buffer->bitstreamRestrictionFlag = 1                          
    create1                                                                         
    Failed to create video encoder: h264enc

    parameters changed by me

    h264dynParams.VUI_Buffer->aspectRatioInfoPresentFlag = 0;
    h264dynParams.VUI_Buffer->overscanInfoPresentFlag = 0;
    //h264dynParams.VUI_Buffer->overscanAppropriateFlag =
    //h264dynParams.VUI_Buffer->videoFormat =
    //h264dynParams.VUI_Buffer->pixelRange =
    //h264dynParams.VUI_Buffer->colourDescriptionPresentFlag =
    //h264dynParams.VUI_Buffer->colourPrimaries =
    //h264dynParams.VUI_Buffer->transferCharacteristics =
    //h264dynParams.VUI_Buffer->matrixCoefficients =
    h264dynParams.VUI_Buffer->timingInfoPresentFlag = 1;
    h264dynParams.VUI_Buffer->numUnitsInTicks = 30000/(dynParams.intraFrameInterval);
    h264dynParams.VUI_Buffer->timeScale = 30000;
    h264dynParams.VUI_Buffer->fixedFrameRateFlag = 1;
    h264dynParams.VUI_Buffer->nalHrdParameterspresentFlag = 0;
    h264dynParams.VUI_Buffer->picStructPresentFlag = 0;
    h264dynParams.VUI_Buffer->bitstreamRestrictionFlag = 0;

    whts going wrong

    thanxx

    kailash

  • Hi,

    All params looks fine, little surprised that you are getting all I frames. Are you getting same behaviour with encQuality=2/3 also?

    There is stand-alone testapp in Release package, can you try once to run this?

  • hi

    sir

    i have not able to find that standalone testapp
    well i m using leopard dm365 and running the

    video_encode1 exe givent in apps /video_encode1 int the dmai_2_20_00_15 folder

    so for that i ve to make the kernel again and again as it is linked with the ridgerun sdk
     so i ve to run it as

    ./video_encode1 -b (bitrate) -c ........ and have to give elements of pipeline im not able to debug it also coz no gdb in the boards kernel

    and u have given sveral dbg1(......) dbg2........ to check the errors how to print that errors

    and how to use CEDEBUG in this case

    well i can only see errors by printf till now

    pls solve this prob

    kailash

  • Hi,

    Standalone testapp will be there at   "packages\ti\sdo\codecs\h264enc\apps\client\build\arm926". You just needs to change rules.mak file to mention your build tool chain path.

    All this information captured in Codec User Guide(packages\ti\sdo\codecs\h264enc\docs), please have look.

    Regarding codec debug build, you need to link debug version lib(h264venc_ti_arm926_debug.a) to your application, Or simple way just rename h264venc_ti_arm926_debug.a to h264venc_ti_arm926.a(by taking copy of this).

    If you are using old version codec, I suggest you to use latest codec(02.30.00.04) from http://software-dl.ti.com/dsps/dsps_public_sw/codecs/DM36x/index_FDS.html

    Thanks,

    Veeranna

  • hi

    sir

    thanxx for ur support i m able to see debug info now by renaming the h264venc_ti_arm926_debug.a to h264venc_ti_arm926.a library

    ->but i ve a small doubt in addition to h264venc_ti_arm926_debug.a the

        h264venc_ti_arm926.a  is already there then why its not working previously

    ->It worked only when i ve deleted h264venc_ti_arm926.a  and renamed

       h264venc_ti_arm926_debug.a to h264venc_ti_arm926.a 

    so what does that mean

    i m sending u the debug info coz encoder is still giving error

    Starting application...

     params.size = 124
    h264params.profileIdc = 66
    h264params.levelIdc = 31
    h264params.entropyMode = 0
    h264params.transform8x8FlagIntraFrame = 0
    h264params.transform8x8FlagInterFrame = 0
    h264params.Log2MaxFrameNumMinus4 = 6
    h264params.ConstraintSetFlag = 0
    h264params.numTemporalLayers = 0
    h264params.enableVUIparams = 0
    h264params.svcSyntaxEnable = 0
    h264params.meAlgo = 0
    h264params.EnableLongTermFrame = 0
    h264params.seqScalingFlag  = 0
    h264params.encQuality = 2
    h264params.enableARM926Tcm = 0
    h264params.enableDDRbuff = 0
    h264params.sliceMode = 0
    h264params.outputDataMode = 1                                                                                                                    
    h264params.sliceFormat = 1                                                                                                                       
     h264dynParams.sliceSize = 0                                                                                                                     
     h264dynParams.airRate = 0                                                                                                                       
     h264dynParams.intraFrameQP = 28                                                                                                                 
     h264dynParams.interPFrameQP = 28                                                                                                                
     h264dynParams.initQ = 28                                                                                                                        
     h264dynParams.rcQMax = 45                                                                                                                       
     h264dynParams.rcQMin = 0                                                                                                                        
     h264dynParams. rcQMaxI = 42                                                                                                                     
     h264dynParams.rcQMinI = 0                                                                                                                       
     h264dynParams.rcAlgo = 1                                                                                                                        
     h264dynParams.maxDelay = 2000                                                                                                                   
     h264dynParams.aspectRatioX = 1                                                                                                                  
     h264dynParams.aspectRatioY = 1                                                                                                                  
     h264dynParams.lfDisableIdc = 0                                                                                                                  
     h264dynParams.enableBufSEI = 0                                                                                                                  
     h264dynParams.enablePicTimSEI = 0                                                                                                               
     h264dynParams.perceptualRC = 1                                                                                                                  
     h264dynParams.idrFrameInterval = 0                                                                                                              
     h264dynParams.mvSADoutFlag = 0                                                                                                                  
     h264dynParams.resetHDVICPeveryFrame = 1                                                                                                         
     h264dynParams.enableROI = 0                                                                                                                     
     h264dynParams.metaDataGenerateConsume = 0                                                                                                       
     h264dynParams.maxBitrateCVBR = 50000000                                                                                                         
     h264dynParams.interlaceRefMode = 1                                                                                                              
     h264dynParams.enableGDR = 0                                                                                                                     
     h264dynParams.GDRduration = 0                                                                                                                   
     h264dynParams.GDRinterval = 0                                                                                                                   
     h264dynParams.LongTermRefreshInterval = 0                                                                                                       
     h264dynParams. UseLongTermFrame = 0                                                                                                             
     h264dynParams.SetLongTermFrame = 0                                                                                                              
     h264dynParams.CVBRsensitivity = 0                                                                                                               
     h264dynParams.CVBRminbitrate = 0                                                                                                                
     h264dynParams.LBRmaxpicsize = 0                                                                                                                 
     h264dynParams.LBRminpicsize = 0                                                                                                                 
     h264dynParams. maxHighCmpxIntCVBR = 0                                                                                                           
     h264dynParams.LBRskipcontrol = 327684                                                                                                           
    h264dynParams.VUI_Buffer->aspectRatioInfoPresentFlag = 0                                                                                         
    h264dynParams.VUI_Buffer->overscanInfoPresentFlag = 0                                                                                            
    h264dynParams.VUI_Buffer->overscanAppropriateFlag = 0                                                                                            
    h264dynParams.VUI_Buffer->videoSignalTypePresentFlag = 1                                                                                         
    h264dynParams.VUI_Buffer->videoFormat = 2                                                                                                        
    h264dynParams.VUI_Buffer->pixelRange = 1                                                                                                         
    h264dynParams.VUI_Buffer->colourDescriptionPresentFlag = 0                                                                                       
    h264dynParams.VUI_Buffer->colourPrimaries = 2                                                                                                    
    h264dynParams.VUI_Buffer->transferCharacteristics = 2                                                                                            
    h264dynParams.VUI_Buffer->matrixCoefficients = 2                                                                                                 
    h264dynParams.VUI_Buffer->timingInfoPresentFlag = 1                                                                                              
    h264dynParams.VUI_Buffer->numUnitsInTicks = 2                                                                                                    
    h264dynParams.VUI_Buffer->timeScale = 60                                                                                                         
    h264dynParams.VUI_Buffer->fixedFrameRateFlag = 0                                                                                                 
    h264dynParams.VUI_Buffer->nalHrdParameterspresentFlag = 1                                                                                        
    h264dynParams.VUI_Buffer->picStructPresentFlag = 0                                                                                               
    h264dynParams.VUI_Buffer->bitstreamRestrictionFlag = 1                                                                                           
    create1CODEC_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 =               0x1498                                                                          
    CODEC_DEBUG_ENABLE: tH264EncState-memTab[2].size =               0x1498                                                                          
    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 =             0x6f900                                                                         
    CODEC_DEBUG_ENABLE: LIST_SLICE_SIZES-memTab[6].size =            0x0320                                                                          
    CODEC_DEBUG_ENABLE: uiMaxCodeSize-memTab[7].size =               0xcd94                                                                          
    CODEC_DEBUG_ENABLE: uiMaxCodeSize-memTab[8].size =               0xcd94                                                                          
    CODEC_DEBUG_ENABLE: KALEIDO_COMMANDS-memTab[9].size =            0x10600                                                                         
    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 =               0x1c80                                                                  
    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: 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 - 40                                                                                            
    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: 0                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a000                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 1                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 1                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a020                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 2                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 4                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a080                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 3                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 5                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a0a0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 4                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 6                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a0c0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 5                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 7                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a0e0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 6                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 8                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a100                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 7                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 9                                                                                               
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a120                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 8                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 10                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a140                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 9                                                                                                          
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 11                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a160                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 10                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 12                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a180                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 11                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 13                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a1a0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 12                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 14                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a1c0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 13                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 15                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a1e0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 14                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 16                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a200                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 15                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 17                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a220                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 16                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 18                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a240                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 17                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 19                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a260                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 18                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 20                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a280                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 19                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 21                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a2a0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 20                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 22                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a2c0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 21                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 23                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a2e0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 22                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 24                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a300                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 23                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 25                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a320                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 24                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 28                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a380                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 25                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 29                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a3a0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 26                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 30                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a3c0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 27                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 31                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a3e0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 28                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 32                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a400                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 29                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 33                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a420                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 30                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 34                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a440                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 31                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 35                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a460                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 32                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 36                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a480                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 33                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 37                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a4a0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 34                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 38                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a4c0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 35                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 39                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a4e0                                                                                     
                                                                                                                                                     
    CODEC_DEBUG_ENABLE: Resource Number - 36                                                                                                         
    CODEC_DEBUG_ENABLE: Assigned Edma Channel Index: 40                                                                                              
    CODEC_DEBUG_ENABLE: Assigned Number of TCs: 1                                                                                                    
    CODEC_DEBUG_ENABLE: Assigned Param Space Address: 0x4044a500                                                                                     
    CODEC_DEBUG_ENABLE: IRES Call to Open EDMA Channel Successfully Completed                                                                        
    CODEC_DEBUG_ENABLE: Inside IMCOP Resource allocation                                                                                             
    CODEC_DEBUG_ENABLE: Resource Number - 38                                                                                                         
    CODEC_DEBUG_ENABLE: HDVICP resoruce alloted                                                                                                      
                                                                                                                                                     
     hEncode = 1910936CODEC_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 Check Target Framerate                                                                                                 
    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                                                    
    CODEC_DEBUG_ENABLE: Inside IRES Call to get Number of Resources -> H264VENC_TI_numResourceDescriptors                                            
    CODEC_DEBUG_ENABLE: Number of Resources Required - 40                                                                                            
    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                                                                
    Failed to create video encoder: h264enc                                                                                                          
    End of application.  

    thanxx

    kailash                  

  • Hi

    h264venc_ti_arm926_debug.a will have debug prints, and h264venc_ti_arm926.a release version. For production we have to h264venc_ti_arm926.a. to debug the issues h264venc_ti_arm926_debug.a will help.

    renaming of h264venc_ti_arm926_debug.a to h264venc_ti_arm926.a you are linking debug lib to your app. so it prints the logs.

    In log it says TargetFrameRate is wrong.

    CODEC_DEBUG_ENABLE: Control Call With SETPARAM Command                                                                                           
    CODEC_DEBUG_ENABLE: Error Check Target Framerate          

    Please have a look into log, which will tell which param is going wrong(search for error or fail string in log)

  • hi

    sir

    got it

    the code is working fine intraframe intervel is given

    for default value its not working

    i think the error is coming coz ref and target frame rate is not maching

    small displacement in code i ve to do

    frm initialization side it is okay

    thanku sir

    kailash

  • hi

    sir

    got it

    the code is working fine intraframe intervel is given

    for default value its not working

    i think the error is coming coz ref and target frame rate is not maching

    small displacement in code i ve to do

    frm initialization side it is okay

    thanku sir

    a little doubt persist why frames are coming

    IDR IIIIIIII

    not initializing the parameters for this

    kailash

  • Hi,

    Please share the generated stream and try to run in standalone test app.