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.

DM365 H264 Codec Lite mode

We are using the DM365 processor with the 2.0.0.2_production version of the H.264 codec. We have recently upgraded our kernel from the Montavista supplied 2.6.18-pro500 to the KHillman Git 2.6.32 kernel. With the 2.6.18 kernel the lite mode (encQuality = 2) worked correctly, but under the 2.6.32 kernel the VIDENC1_create function fails. Enabling tracing for the DVSDK shows that the failure occurs in ALG_create function, but we are unable to determine what is causing the failure.

We are using the following base parameters:

      size = sizeof(IH264VENC_Params);
      encodingPreset = XDM_USER_DEFINED;
      rateControlPreset = IVIDEO_NONE;
      maxHeight = height;
      maxWidth = width;
      maxFrameRate = 30000;
      maxBitRate = 4000000;
      dataEndianness = XDM_BYTE;
      maxInterFrameInterval = XDM_DEFAULT;
      inputContentType = IVIDEO_PROGRESSIVE;
      inputChromaFormat = XDM_YUV_420SP;
      reconChromaFormat = XDM_YUV_420SP;

and the following H.264 extended parameters:       

     profileIdc = 100;
     levelIdc = IH264VENC_LEVEL_21;
     aspectRatioX = 1;
     aspectRatioY = 1;
     pixelRange = 1;
     meAlgo = 0;
     timeScale = 150;
     numUnitsInTicks = 1;
     enableVUIparams = 0;
     entropyMode = 1;
     transform8x8FlagIntraFrame = 0;
     transform8x8FlagInterFrame = 0;
     seqScalingFlag = 1;
     disableHDVICPeveryFrame = 0;
     encQuality = 2;    /* Fast, low quality */

If we change the encQuality parameter from 2 to 1 (standard quality) then it works correctly on the 2.6.32 kernel. However, we need the lite mode setting to achieve fast capture rates for our application.

 

  • Hi,

    I can think of one possible potential problem. The so called "lite" mode (encQuality = 2) needs around 11-12 EDMA channels more as compared to legacy encQuality. I have not used 2.6.32 linux kernel release of LSP 3.x so i dont know on the number of channels used up in kernel. Please look at your application and reduce the number of EDMA channels that are not needed in the system from kernel perspective (for example MMC/SD1, I2C etc.)

    Regards,

    Anshuman

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

  • Thanks for that, however I do not think the EDMA channels are the problem. I have added a proc file for printing information about the EDMA channels. At boot, our kernel is not using any EDMA channels. If I set encQuality to 1 and halt our application immediately after VIDENC1_create is called, then about 64 EDMA channels appear to be in use. When encQuality is set to 2 no EDMA channels are in use either before or after VIDENC1_create is called.

    Below is the output of our application with encQuality set to 2 and CE_DEBUG=2:

      [camera_test.c:325] Running test 10.7 [Encode a movie using threaded capture]
    @0,928,687us: [+4 T:0x4001fa90] OG - Global_init> This program was built with the following packages:
    @0,931,198us: [+4 T:0x4001fa90] OG -     package gnu.targets.codesourcery.rtsv5T (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/gnu/targets/codesourcery/rtsv5T/) [1, 0, 0, 0]
    @0,931,578us: [+4 T:0x4001fa90] OG -     package ti.sdo.utils.trace (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/utils/trace/) [1, 0, 0]
    @0,931,791us: [+4 T:0x4001fa90] OG -     package ti.sdo.linuxutils.cmem (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/cmem/) [2, 2, 0]
    @0,931,985us: [+4 T:0x4001fa90] OG -     package ti.sdo.linuxutils.vicp (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/vicp/) [1, 0, 0]
    @0,932,174us: [+4 T:0x4001fa90] OG -     package ti.sdo.linuxutils.edma (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/edma/) [1, 0, 0]
    @0,932,457us: [+4 T:0x4001fa90] OG -     package ti.xdais.dm.examples.g711 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/examples/ti/xdais/dm/examples/g711/) [1, 0, 0]
    @0,932,671us: [+4 T:0x4001fa90] OG -     package ittiam.codecs.aac_dec (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ittiam/codecs/aac_dec/) []
    @0,932,862us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.global (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/global/) [1, 0, 0]
    @0,933,052us: [+4 T:0x4001fa90] OG -     package ti.xdais.dm (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdais_6_25_01_08/packages/ti/xdais/dm/) [1, 0, 5]
    @0,933,235us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.utils.xdm (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/utils/xdm/) [1, 0, 2]
    @0,933,422us: [+4 T:0x4001fa90] OG -     package ti.xdais (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdais_6_25_01_08/packages/ti/xdais/) [1, 2.0, 1]
    @0,933,600us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.node (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/node/) [1, 0, 0]
    @0,933,784us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.global (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/global/) [1, 0, 0]
    @0,933,970us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.utils.gtinfra (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/utils/gtinfra/) [1, 0, 0]
    @0,934,157us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.utils.api (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/utils/api/) [1, 0, 0]
    @0,934,344us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.memutils (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/memutils/) [1, 0, 0]
    @0,934,530us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/) [1, 0, 0]
    @0,934,713us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.addrspace (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/addrspace/) [1, 0, 0]
    @0,934,902us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.utils (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/utils/) [1, 0, 2]
    @0,935,085us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.hdvicp (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/hdvicp/) [1, 0, 1]
    @0,935,274us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.hdvicpsync (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/hdvicpsync/) [1, 0, 0]
    @0,935,462us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.memtcm (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/memtcm/) [1, 0, 0]
    @1,361,705us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg2enc (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg2enc/) [1, 0, 0]
    @1,361,958us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg2dec (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg2dec/) [1, 0, 0]
    @1,362,158us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4enc_hdvicp (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4enc_hdvicp/) [1, 0, 0]
    @1,362,357us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4dec_hdvicp (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4dec_hdvicp/) [1, 0, 0]
    @1,362,547us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.vc1dec (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/vc1dec/) [1, 0, 0]
    @1,362,733us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.h264dec (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/h264dec/) [1, 0, 0]
    @1,362,977us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.h264enc (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/h264enc/) [1, 0, 0]
    @1,363,180us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.dman3 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/dman3/) [1, 0, 4]
    @1,363,368us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.acpy3 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/acpy3/) [1, 0, 4]
    @1,363,554us: [+4 T:0x4001fa90] OG -     package gnu.targets (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/gnu/targets/) [1, 0, 1]
    @1,363,841us: [+4 T:0x4001fa90] OG -     package gnu.targets.codesourcery (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/gnu/targets/codesourcery/) [1, 0, 0, 0]
    @1,364,050us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.nullresource (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/nullresource/) [1, 0, 0]
    @1,364,300us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.rman (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/rman/) [2, 0, 0]
    @1,364,501us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.edma3 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/edma3/) [3, 0, 0]
    @1,364,691us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.edma3chan (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/edma3chan/) [1, 0, 0]
    @1,364,879us: [+4 T:0x4001fa90] OG -     package ti.catalog.arm (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/ti/catalog/arm/) [1, 0, 1, 0]
    @1,365,062us: [+4 T:0x4001fa90] OG -     package ti.catalog (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/ti/catalog/) [1, 0, 0]
    @1,365,248us: [+4 T:0x4001fa90] OG -     package ti.platforms.evmDM365 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/xdctools_3_16_01_27/packages/ti/platforms/evmDM365/) [1, 0, 0]
    @1,365,435us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.osal (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/osal/) [2, 0, 2]
    @1,365,657us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.osal.linux (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/osal/linux/) [2, 0, 1]
    @1,699,006us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.ipc (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/) [2, 0, 1]
    @1,699,253us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.ipc.linux (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/linux/) [2, 0, 1]
    @1,699,456us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.alg (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/alg/) [1, 0, 1]
    @1,699,645us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.grouputils (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/grouputils/) [1, 0, 0]
    @1,699,832us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.ires.vicp (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/vicp/) [1, 0, 1]
    @1,700,190us: [+4 T:0x4001fa90] OG -     package ti.sdo.fc.vicpsync (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/framework_components_2_25_01_05/packages/ti/sdo/fc/vicpsync/) [1, 0, 0]
    @1,700,436us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/) [1, 0, 6]
    @1,700,637us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.video1 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/video1/) [1, 0, 2]
    @1,700,831us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg2enc.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg2enc/ce/) [1, 0, 0]
    @1,701,021us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.video2 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/video2/) [1, 0, 2]
    @1,701,209us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg2dec.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg2dec/ce/) [1, 0, 0]
    @1,701,396us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4enc_hdvicp.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4enc_hdvicp/ce/) [1, 0, 0]
    @1,701,641us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4dec_hdvicp.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4dec_hdvicp/ce/) [1, 0, 0]
    @1,701,849us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4enc (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4enc/) [1, 0, 0]
    @1,702,038us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4enc.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4enc/ce/) [1, 0, 0]
    @1,702,236us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4dec (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4dec/) [1, 0, 0]
    @1,702,431us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.mpeg4dec.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/mpeg4dec/ce/) [1, 0, 0]
    @1,702,620us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.vc1dec.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/vc1dec/ce/) [1, 0, 0]
    @1,702,804us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.image1 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/image1/) [1, 0, 1]
    @1,703,034us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.jpegenc (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/jpegenc/) [1, 0, 0]
    @2,035,957us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.jpegenc.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/jpegenc/ce/) [1, 0, 0]
    @2,036,214us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.jpegdec (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/jpegdec/) [1, 0, 0]
    @2,036,421us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.jpegdec.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/jpegdec/ce/) [1, 0, 0]
    @2,036,621us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.h264dec.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/h264dec/ce/) [1, 0, 0]
    @2,036,815us: [+4 T:0x4001fa90] OG -     package ti.sdo.codecs.h264enc.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ti/sdo/codecs/h264enc/ce/) [1, 0, 0]
    @2,037,006us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.speech1 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/speech1/) [1, 0, 1]
    @2,037,255us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.examples.codecs.g711 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/examples/ti/sdo/ce/examples/codecs/g711/) [1, 0, 0]
    @2,037,465us: [+4 T:0x4001fa90] OG -     package ti.sdo.ce.audio1 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/codec_engine_2_25_01_06/packages/ti/sdo/ce/audio1/) [1, 0, 1]
    @2,037,659us: [+4 T:0x4001fa90] OG -     package ittiam.extensions.audio1 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ittiam/extensions/audio1/) []
    @2,037,847us: [+4 T:0x4001fa90] OG -     package ittiam.codecs.aac_dec.ce (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dm365_codecs_03_10_00_05/packages/ittiam/codecs/aac_dec/ce/) []
    @2,038,040us: [+4 T:0x4001fa90] OG -     package dvtb_dm365 (/tmp/dvsdk_build_16/arago-install/dvsdk_3_10_00_16/dvtb_4_20_04_4/packages/ti/sdo/dvtb/dm365/dvtb_dm365/) []
    @2,039,266us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - LockMP_create> key: 0x524d414e count: 2839336 attrs: 0x2b7f64
    @2,040,255us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_create> lock[0xbca370]
    @2,040,611us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,041,054us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,041,350us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,041,600us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,085,194us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,085,515us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,136,968us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,137,334us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,137,640us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,137,886us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,138,102us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - LockMP_create> key: 0x50434958 count: 2839336 attrs: 0xbc9c40
    @2,138,514us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_create> lock[0xbca398]
    @2,138,744us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca398]
    @2,138,970us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca398]
    @2,139,561us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca398]
    @2,139,905us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca398]
    @2,140,600us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca398]
    @2,140,891us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca398]
    @2,141,428us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca398]
    @2,141,719us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca398]
    @2,141,990us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,142,223us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,142,433us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,142,698us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,142,918us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - LockMP_create> key: 0x4956444a count: 8481600 attrs: 0x2b5328
    @2,143,288us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_create> lock[0xbca3c0]
    @2,143,516us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca3c0]
    @2,143,804us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca3c0]
    @2,475,880us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca3c0]
    @2,476,181us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca3c0]
    @2,476,425us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,476,651us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,476,906us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,477,134us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,477,395us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,477,629us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,477,836us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,478,051us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,478,320us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - LockMP_create> key: 0x4d43544f count: 12360812 attrs: 0x2b5328
    @2,478,703us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_create> lock[0xbca3e8]
    @2,478,937us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca3e8]
    @2,479,158us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca3e8]
    @2,479,701us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca3e8]
    @2,479,987us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca3e8]
    @2,480,736us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca3e8]
    @2,481,097us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca3e8]
    @2,481,567us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca3e8]
    @2,481,847us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca3e8]
    @2,482,071us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,482,297us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,482,570us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @2,482,797us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @2,483,108us: [+0 T:0x4001fa90] ti.sdo.ce.osal.Sem - Sem_create> count: 1
    @2,483,463us: [+0 T:0x4001fa90] ti.sdo.ce.osal.Sem - Leaving Sem_create> sem[0xbca410]
    @2,483,741us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @2,483,991us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @2,484,238us: [+0 T:0x4001fa90] ti.sdo.ce.alg - ALG_init> Enter
    @2,484,600us: [+0 T:0x4001fa90] ti.sdo.ce.alg - ALG_init> Exit
    @2,485,017us: [+6 T:0x4001fa90] CE - Engine_init> CE debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, 2=good, 3=max)
    @2,485,379us: [+0 T:0x4001fa90] CS - Server_init()
    @2,485,566us: [+0 T:0x4001fa90] CS - Server_init> Global_useLinkArbiter = 0
    @2,485,872us: [+0 T:0x4001fa90] CE - Engine_open> Enter('encodedecode', 0x0, 0xbee4b9a8)
    @2,486,132us: [+0 T:0x4001fa90] CE - Engine_open> return(12363120)
      [buffer_memory.c:101] Circular buffer of 4096000 bytes (2000 entries)
    @2,487,341us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(4096000) = 0x40392000.
    @2,487,647us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40392000) = 0x87356000.
      [video_encoder.c:157] H264 Encoding
    @2,491,337us: [+0 T:0x4001fa90] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> Enter (engine=0xbca570, name='h264enc1', params=0xbca5b8)
    @2,491,702us: [+0 T:0x4001fa90] CV - VISA_create(0xbca570, 'h264enc1', 0xbca5b8, 0x520, 'ti.sdo.ce.video1.IVIDENC1')
    @2,491,943us: [+0 T:0x4001fa90] CV - VISA_create2(0xbca570, 'h264enc1', 0xbca5b8, 0x74, 0x520, 'ti.sdo.ce.video1.IVIDENC1')
    @2,492,379us: [+0 T:0x4001fa90] ti.sdo.ce.alg.Algorithm - Algorithm_create> Enter (fxns=0x2b8f0c, idma3Fxns=0x0, iresFxns=0x2b8f98, params=0xbca5b8, attrs=0xbee4b8ec)
    @2,825,216us: [+0 T:0x4001fa90] ti.sdo.ce.alg - ALG_create> Enter (scratchId=1, fxns=0x2b8f0c, parentAlg=0x0, params=0xbca5b8)
    @2,876,088us: [+2 T:0x4001fa90] ti.sdo.ce.alg - ALG_create> algNumAlloc 12 memory recs
    @2,877,230us: [+2 T:0x4001fa90] ti.sdo.ce.alg - ALG_create> algAlloc returned numRecs=12
    @2,877,466us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[0]: size=0x5b0, align=0x80, space=0x11, attrs=0x1
    @2,877,718us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[1]: size=0x1760, align=0x80, space=0x11, attrs=0x1
    @2,877,924us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[2]: size=0x1760, align=0x80, space=0x11, attrs=0x1
    @2,878,113us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[3]: size=0x5000, align=0x80, space=0x11, attrs=0x0
    @2,878,291us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[4]: size=0x800, align=0x80, space=0x11, attrs=0x1
    @2,878,475us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[5]: size=0x141180, align=0x80, space=0x11, attrs=0x1
    @2,878,654us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[6]: size=0x380, align=0x80, space=0x11, attrs=0x0
    @2,878,839us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[7]: size=0xbf38, align=0x80, space=0x11, attrs=0x1
    @2,879,019us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[8]: size=0xeb80, align=0x80, space=0x11, attrs=0x1
    @2,879,205us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[9]: size=0x4000, align=0x80, space=0x11, attrs=0x1
    @2,879,385us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[10]: size=0x10000, align=0x80, space=0x11, attrs=0x1
    @2,879,566us: [+4 T:0x4001fa90] ti.sdo.ce.alg - ALG_create>  Memory requested memTab[11]: size=0x180, align=0x80, space=0x11, attrs=0x1
    @2,879,924us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(1456) = 0x409ea000.
    @2,880,360us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x409ea000) = 0x87ffc000.
    @2,880,803us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(5984) = 0x409eb000.
    @2,881,071us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x409eb000) = 0x87ff6000.
    @2,881,543us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(5984) = 0x409ed000.
    @2,881,812us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x409ed000) = 0x87ff8000.
    @2,882,340us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(20480) = 0x409ef000.
    @2,882,648us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x409ef000) = 0x87d0e000.
    @2,883,245us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(2048) = 0x40a03000.
    @2,883,514us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40a03000) = 0x87ffd000.
    @2,884,039us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(1315200) = 0x40a04000.
    @2,884,352us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40a04000) = 0x871d6000.
    @2,895,711us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(896) = 0x40b7e000.
    @2,896,005us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40b7e000) = 0x87ffe000.
    @2,896,465us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(48952) = 0x40b7f000.
    @2,896,774us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40b7f000) = 0x87d22000.
    @2,897,630us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(60288) = 0x40b93000.
    @2,897,940us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40b93000) = 0x87d36000.
    @2,898,915us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(16384) = 0x40ba7000.
    @2,899,187us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40ba7000) = 0x87fef000.
    @2,899,769us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(65536) = 0x40bab000.
    @2,900,224us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40bab000) = 0x879ae000.
    @2,901,229us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_alloc(384) = 0x40bbf000.
    @2,901,502us: [+4 T:0x4001fa90] OM - Memory_contigAlloc> CMEM_getPhys(0x40bbf000) = 0x87fff000.
    @2,901,957us: [+7 T:0x4001fa90] ti.sdo.ce.alg - ALG_create> algInit call failed 40990
    @3,255,295us: [+0 T:0x4001fa90] ti.sdo.ce.alg - ALG_create> Exit (algHandle=NULL)
    @3,255,558us: [+7 T:0x4001fa90] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algorithm creation FAILED; make sure that 1) alg params are correct/supported, 2) there is enough internal and external algorithm memory available
    @3,255,847us: [+0 T:0x4001fa90] ti.sdo.ce.alg.Algorithm - Algorithm_delete> Enter(alg=0xbca7e8)
    @3,256,040us: [+0 T:0x4001fa90] ti.sdo.ce.alg.Algorithm - Algorithm_delete> Exit
    @3,256,214us: [+0 T:0x4001fa90] ti.sdo.ce.alg.Algorithm - Algorithm_create> return (0x0)
    @3,256,385us: [+2 T:0x4001fa90] CV - VISA_create2> FAILED to create local codec.
    @3,256,547us: [+0 T:0x4001fa90] CV - VISA_delete(0xbca7b0)
    @3,256,704us: [+5 T:0x4001fa90] CV - VISA_delete> deleting codec (localQueue=0xffff, remoteQueue=0xffff)
    @3,256,890us: [+0 T:0x4001fa90] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> return (0x0)
    [video_encoder.c:201] Cannot open 'h264enc1'
    Failed to initialise video encoder
    Cannot initialise the capture engine
    FAIL (ec=-14:Bad address)
    @3,258,510us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca370]
    @3,258,810us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca370]
    @3,259,023us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca398]
    @3,259,246us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca398]
    @3,259,991us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca398]
    @3,260,480us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca398]
    @3,260,700us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca398]
    @3,260,926us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca398]
    @3,261,500us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca398]
    @3,261,784us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca398]
    @3,261,989us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_delete> lock[0xbca398]
    @3,262,315us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_delete>
    @3,262,695us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca3c0]
    @3,262,955us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca3c0]
    @3,263,460us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca3c0]
    @3,263,737us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca3c0]
    @3,263,986us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_delete> lock[0xbca3c0]
    @3,264,325us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_delete>
    @3,264,703us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca3e8]
    @3,265,020us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca3e8]
    @3,265,595us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca3e8]
    @3,265,882us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca3e8]
    @3,266,091us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_acquire> lock[0xbca3e8]
    @3,266,303us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_acquire> lock[0xbca3e8]
    @3,266,848us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca3e8]
    @3,267,134us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca3e8]
    @3,267,340us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_delete> lock[0xbca3e8]
    @3,267,661us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_delete>
    @3,267,877us: [+0 T:0x4001fa90] ti.sdo.ce.osal.Sem - Entered Sem_delete> sem[0xbca410]
    @3,268,243us: [+0 T:0x4001fa90] ti.sdo.ce.osal.Sem - Leaving Sem_delete>
    @3,268,453us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_release>lock[0xbca370]
    @3,268,683us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_release>lock[0xbca370]
    @3,601,475us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Entered LockMP_delete> lock[0xbca370]
    @3,601,865us: [+0 T:0x4001fa90] ti.sdo.ce.osal.LockMP - Leaving LockMP_delete>


  • Hi,

    Please provide logs with CE_DEBUG=3 and also add the following line in your .cfg file, if it does not exist already. This will enable all FC related debug messages. Please do not paste the log on the post and instead attach it as a file, because it is difficult to browse through the logs on this post.

    xdc.useModule("ti.sdo.fc.global.Settings").profile = "debug_trace";

    BTW, the fact that you mentioned that with encQuality set to 0 or 1 you see almost 64 channels being used up after VIDENC1_create() tells me that your system is taking up lot of EDMA channels. Codec with encQuality = 0 or 1 takes only 37 EDMA channels, but the encQuality = 2 configuration takes 46 EDMA channels.

    Meanwhile, i am looking at the error code that your log shows (40990) and trying to figure out from the codec, what this might mean.

    Regards,

    Anshuman

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

     

  • Error code of 40990 corresponds to IH264VENC_ERR_ENCQUALITY which means that encQuality other than 0 and 2 is being set. This encQuality = 1 got depriciated recently due to performanfce reasons. But seems that you are getting this error code with encQuality = 2 which is strange.

    Can you please confirm if you are using ver 2.00.00.09 of codec ?

    regards

    Yashwant

  • I have now resolved this problem. I was accidentally using an older version of the codec. I have upgraded to the 2.0.0.9 H.264 video encoder and it is now working correctly. Thank you.

    One point mentioned above was to enable the debugging trace by adding the following to the config file:

    xdc.useModule("ti.sdo.fc.global.Settings").profile = "debug_trace";

    We are using the C API for the DVSDK directly, and not using the configuration files. What is the equivalent of this config command when using the C API?

     


  • Ryan,

    Good to know that your problem is resolved. I assume you are still using Codec engine and there would be corresponding codec engine config file (like encode.cfg for encode demo of DVSDK).

    Also, you logs also show that you are using framework components, so you need to add the line mentioned in previous post for enabling all the traces and debug logs for RMAN, FC, IRES, EDMA etc.

    Regards,

    Anshuman

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

  • Hello Anshuman !

    I meet the same problem with the h264 enc. There is a alg_vidEnc error (which is called in IPNC application which we port onto 2.6.32).

    the problem is a bit different, but if the codec is the source of the error, i would like to know :

    1- is the version of codecs for dm365 is uptodate with the ones noted in the release notes ? If yes my

    overall package is the dm365_codecs_01_00_06 included in dvsdk_3_10_00_12

    my h264enc includes a file named : H264ENC.version.01.00.00.18.wizardversion.0.5.2

    the problem is that if i enter ;/doc i nthe h264enc, there is a release notes file h264_encoder_dm365_releasenotes.pdf which is of version 01.00.00 of june 2009. with a build ID of 01.00.00.18

    Do you confirm there is a discrepancy between doc and files ?

     

    2- to be able to fix this problem, could you tell me which vesion of codec package to use, and a link to the files, and also to a 'howto' incorporate the new codec into the dvsdk ?

    Thank you in advance.

    regards

     

  • Hi,

    reda38 said:

    the problem is that if i enter ;/doc i nthe h264enc, there is a release notes file h264_encoder_dm365_releasenotes.pdf which is of version 01.00.00 of june 2009. with a build ID of 01.00.00.18

    Do you confirm there is a discrepancy between doc and files ?

     

    No, there is no discrepancy in the release notes/docs and the files. The release major version is 1.00 only and the builds are incremented. So 1.00.00.18 is build 18 for the codec ver 1.00

    reda38 said:
    2- to be able to fix this problem, could you tell me which vesion of codec package to use, and a link to the files, and also to a 'howto' incorporate the new codec into the dvsdk ?

     

    The latest codec and all the details related to it are mentioned in the link below. You are using a really old version of codec. I would recommend using the latest codec. Also, there is a DVSDK version 4.0 which uses kernel from open source (i guess 2.6.32 or later) and also the latest codec. It can help you overcome any issues.

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

    There is one more useful link that tells you how to use the latest codecs with DVSDK 2.1.x

    http://processors.wiki.ti.com/index.php/Migration/Integration_Guide_for_DM36x_H.264_version_2.x_codecs

    Regards,

    Anshuman

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