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.

VIDENC1_process() failed with error (40965 ext: 0x0)

Hello everybody,

after running for a few minutes the call of VIDENC1_process() failes and returns the error code 40965 (0xa005). Could you please tell me, what this code means or where I can read more about this error code.

Thank you very much!

Frank Reither

 

  • Hello Chris,

    thank you very much for your answer. I have already seen this page and had the impression that this only explains the extended error code. In my case this error code seems to be 0x00. But the return value of the function VIDENC1_process is not zero, it's 40965 (or in hex 0xa005). What does this mean or where can I find a list of all the return codes?

    Thanks and Best Regards

    Frank

  • That's not a documented return value.  You probably have to dig into the codec-specific documentation and/or contact the codec vendor.

    Not sure what processor you're on, but if the codec is running remotely (e.g. OMAP3, DM6446, etc), it might be enlightening to turn on CE_DEBUG and see if you can track down whether the codec is returning it (which is what I suspect) or whether the framework is introducing it somewhere between your app and the codec.

    Chris

  • Hi Frank,

    the error code you are refering is related to Maxbirate.

    your maxBitRate must be greater than 0 and lesthan or equal to 50000000.

    please verify the same in your setting.

    Also which version of H264 you are using ?

  • Hello Chris, hello Sujit,

    I'm working with Davinci DM365 in combination in AD9880 and I'm using DVSDK_3_10_00_12 with Linux 2.6.32

    Enabling CE_DEBUG shows that everything is working fine for about 2,5 minutes. Then suddenly the size of the encoded buffer shrinks down to 20 bytes. Some cycles later VIDENC1_process returns this error code. I found a header file, where this error code is mentioned. In the header file imp2venc.h, located in dvsdk_3_10_00_12\dm365_codecs_01_00_06\packages\ti\sdo\codecs\mpeg2enc I found this error code 0xa005. In this file it is interpreted as "unsupported frame height".

    In the snippet of the debug output, you can see some cycles with this strange 20 bytes and the error code. After this snippet the allocated memory is removed and the program terminated.

    I guess now, is that somewhere in the low level driver an interrupt is missing and no further frame data is generated. So it's up to me now to dig into the depth. What's your opinion? I'll come back to you as soon as I have found something. I will also check the bitrate Sujit mentioned.

    Thank you so far

    Frank

    <snip>

    @0,201,395us: [+4 T:0x425a7460 S:0x425a6c1c] OG - Global_init> This program was built with the following packages:
    @0,201,819us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package gnu.targets.arm.rtsv5T (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdctools_3_16_01_27/packages/gnu/targets/arm/rtsv5T/) [1, 0, 0, 0]
    @0,202,013us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.linuxutils.vicp (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/vicp/) [1, 0, 0]
    @0,202,192us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.linuxutils.edma (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/edma/) [1, 0, 0]
    @0,202,446us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.linuxutils.cmem (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/linuxutils_2_25_01_06/packages/ti/sdo/linuxutils/cmem/) [2, 2, 0]
    @0,202,624us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/) [1, 0, 0]
    @0,202,790us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.global (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/global/) [1, 0, 0]
    @0,202,954us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.memutils (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/memutils/) [1, 0, 0]
    @0,203,115us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.xdais (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdais_6_25_01_08/packages/ti/xdais/) [1, 2.0, 1]
    @0,203,277us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires.addrspace (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/addrspace/) [1, 0, 0]
    @0,203,436us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.utils.trace (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/utils/trace/) [1, 0, 0]
    @0,203,596us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.utils (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/utils/) [1, 0, 2]
    @0,203,756us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires.hdvicp (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/hdvicp/) [1, 0, 1]
    @0,203,917us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.hdvicpsync (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/hdvicpsync/) [1, 0, 0]
    @0,204,078us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.codecs.mpeg2enc (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/dm365_codecs_01_00_06/packages/ti/sdo/codecs/mpeg2enc/) [1, 0, 0]
    @0,204,331us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires.nullresource (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/nullresource/) [1, 0, 0]
    @0,204,520us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.rman (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/rman/) [2, 0, 0]
    @0,204,696us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.edma3 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/edma3/) [3, 0, 0]
    @0,204,861us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires.edma3chan (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/edma3chan/) [1, 0, 0]
    @0,205,027us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires.grouputils (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/grouputils/) [1, 0, 0]
    @0,205,196us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.ires.vicp (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/ires/vicp/) [1, 0, 1]
    @0,205,363us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.vicpsync (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/vicpsync/) [1, 0, 0]
    @0,205,526us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.global (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/global/) [1, 0, 0]
    @0,205,690us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.xdais.dm (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdais_6_25_01_08/packages/ti/xdais/dm/) [1, 0, 5]
    @0,205,855us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.utils.xdm (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/utils/xdm/) [1, 0, 2]
    @0,206,019us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.node (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/node/) [1, 0, 0]
    @0,206,189us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.dman3 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/dman3/) [1, 0, 4]
    @0,206,356us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.fc.acpy3 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/framework_components_2_25_01_05/packages/ti/sdo/fc/acpy3/) [1, 0, 4]
    @0,206,522us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package gnu.targets (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdctools_3_16_01_27/packages/gnu/targets/) [1, 0, 1]
    @0,206,770us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package gnu.targets.arm (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdctools_3_16_01_27/packages/gnu/targets/arm/) [1, 0, 0, 0]
    @0,206,957us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.catalog.arm (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdctools_3_16_01_27/packages/ti/catalog/arm/) [1, 0, 1, 0]
    @0,207,125us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.catalog (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdctools_3_16_01_27/packages/ti/catalog/) [1, 0, 0]
    @0,207,290us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.platforms.evmDM365 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/xdctools_3_16_01_27/packages/ti/platforms/evmDM365/) [1, 0, 0]
    @0,207,454us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.osal (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/osal/) [2, 0, 2]
    @0,207,698us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.osal.linux (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/osal/linux/) [2, 0, 1]
    @0,207,893us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.ipc (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/) [2, 0, 1]
    @0,208,062us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.ipc.linux (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/ipc/linux/) [2, 0, 1]
    @0,208,236us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.alg (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/alg/) [1, 0, 1]
    @0,208,401us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/) [1, 0, 6]
    @0,208,564us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.speech (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/speech/) [1, 0, 2]
    @0,208,727us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.speech1 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/speech1/) [1, 0, 1]
    @0,208,884us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.audio (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/audio/) [1, 0, 2]
    @0,209,043us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.audio1 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/audio1/) [1, 0, 1]
    @0,209,211us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.video (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/video/) [1, 0, 3]
    @0,209,376us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.video1 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/video1/) [1, 0, 2]
    @0,209,538us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.video2 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/video2/) [1, 0, 2]
    @0,209,701us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.image (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/image/) [1, 0, 3]
    @0,209,862us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.ce.image1 (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/codec_engine_2_25_01_06/packages/ti/sdo/ce/image1/) [1, 0, 1]
    @0,218,485us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.dmai (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/dmai_2_10_00_06/packages/ti/sdo/dmai/) [1, 0, 0]
    @0,218,755us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package ti.sdo.codecs.mpeg2enc.ce (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/dm365_codecs_01_00_06/packages/ti/sdo/codecs/mpeg2enc/ce/) [1, 0, 0]
    @0,218,948us: [+4 T:0x425a7460 S:0x425a6c1c] OG -     package emtrion_config (/home/hico/emdist-2.3/davinci_dm365/pkgs/dvsdk/dvsdk_3_10_00_12/dvsdk_demos_3_10_00_10/dm365/emtrion/emtrion_config/) []

     <snip> allocating memory and then for 2,5 minutes correct frames...

    <snip>

    @149,851,002us: [+0 T:0x44a16460 S:0x44a15a54] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Enter (handle=0x72940, inBufs=0x44a15b28, outBufs=0x44a15b1c, inArgs=0x44a15c9c, outArgs=0x44a15c24)
    @149,851,321us: [+5 T:0x44a16460 S:0x44a15a34] CV - VISA_enter(visa=0x72940): algHandle = 0x72978
    @149,851,526us: [+0 T:0x44a16460 S:0x44a15a24] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x72978)
    @149,851,710us: [+0 T:0x44a16460 S:0x44a159ec] ti.sdo.ce.osal.SemMP - Entered SemMP_pend> sem[0x71f90] timeout[0xffffffff]
    @149,851,915us: [+0 T:0x44a16460 S:0x44a159ec] ti.sdo.ce.osal.SemMP - Leaving SemMP_pend> sem[0x71f90] status[0]
    @149,852,123us: [+0 T:0x44a16460 S:0x44a15a34] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit
    @149,852,920us: [+5 T:0x44a16460 S:0x44a15a3c] CV - VISA_exit(visa=0x72940): algHandle = 0x72978
    @149,853,152us: [+0 T:0x44a16460 S:0x44a15a2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x72978)
    @149,853,371us: [+0 T:0x44a16460 S:0x44a15a0c] ti.sdo.ce.osal.SemMP - Entered SemMP_post> sem[0x71f90]
    @149,853,584us: [+0 T:0x44a16460 S:0x44a15a0c] ti.sdo.ce.osal.SemMP - Leaving SemMP_post> sem[0x71f90]
    @149,853,771us: [+0 T:0x44a16460 S:0x44a15a3c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit
    @149,853,943us: [+0 T:0x44a16460 S:0x44a15a54] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Exit (handle=0x72940, retVal=0x0)
    @149,854,117us: [+2 T:0x44a16460 S:0x44a15aa4] ti.sdo.dmai - [Venc1] VIDENC1_process() ret 0 inId 2 outID 3 generated 20 bytes
    --> frameWidth: 720 - frameHeight: 576 - framePitch: 720
    @149,917,561us: [+0 T:0x44a16460 S:0x44a15a54] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Enter (handle=0x72940, inBufs=0x44a15b28, outBufs=0x44a15b1c, inArgs=0x44a15c9c, outArgs=0x44a15c24)
    @149,917,799us: [+5 T:0x44a16460 S:0x44a15a34] CV - VISA_enter(visa=0x72940): algHandle = 0x72978
    @149,917,994us: [+0 T:0x44a16460 S:0x44a15a24] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x72978)
    @149,918,176us: [+0 T:0x44a16460 S:0x44a159ec] ti.sdo.ce.osal.SemMP - Entered SemMP_pend> sem[0x71f90] timeout[0xffffffff]
    @149,918,381us: [+0 T:0x44a16460 S:0x44a159ec] ti.sdo.ce.osal.SemMP - Leaving SemMP_pend> sem[0x71f90] status[0]
    @149,918,592us: [+0 T:0x44a16460 S:0x44a15a34] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit
    @149,919,398us: [+5 T:0x44a16460 S:0x44a15a3c] CV - VISA_exit(visa=0x72940): algHandle = 0x72978
    @149,919,634us: [+0 T:0x44a16460 S:0x44a15a2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x72978)
    @149,919,856us: [+0 T:0x44a16460 S:0x44a15a0c] ti.sdo.ce.osal.SemMP - Entered SemMP_post> sem[0x71f90]
    @149,920,198us: [+0 T:0x44a16460 S:0x44a15a0c] ti.sdo.ce.osal.SemMP - Leaving SemMP_post> sem[0x71f90]
    @149,920,427us: [+0 T:0x44a16460 S:0x44a15a3c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit
    @149,920,612us: [+0 T:0x44a16460 S:0x44a15a54] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Exit (handle=0x72940, retVal=0x0)
    @149,920,794us: [+2 T:0x44a16460 S:0x44a15aa4] ti.sdo.dmai - [Venc1] VIDENC1_process() ret 0 inId 0 outID 1 generated 20 bytes
    --> frameWidth: 720 - frameHeight: 576 - framePitch: 720
    @149,950,904us: [+0 T:0x44a16460 S:0x44a15a54] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Enter (handle=0x72940, inBufs=0x44a15b28, outBufs=0x44a15b1c, inArgs=0x44a15c9c, outArgs=0x44a15c24)
    @149,951,142us: [+5 T:0x44a16460 S:0x44a15a34] CV - VISA_enter(visa=0x72940): algHandle = 0x72978
    @149,951,329us: [+0 T:0x44a16460 S:0x44a15a24] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Enter(alg=0x72978)
    @149,951,512us: [+0 T:0x44a16460 S:0x44a159ec] ti.sdo.ce.osal.SemMP - Entered SemMP_pend> sem[0x71f90] timeout[0xffffffff]
    @149,951,715us: [+0 T:0x44a16460 S:0x44a159ec] ti.sdo.ce.osal.SemMP - Leaving SemMP_pend> sem[0x71f90] status[0]
    @149,951,929us: [+0 T:0x44a16460 S:0x44a15a34] ti.sdo.ce.alg.Algorithm - Algorithm_activate> Exit
    @149,952,138us: [+5 T:0x44a16460 S:0x44a15a3c] CV - VISA_exit(visa=0x72940): algHandle = 0x72978
    @149,952,319us: [+0 T:0x44a16460 S:0x44a15a2c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Enter(alg=0x72978)
    @149,952,521us: [+0 T:0x44a16460 S:0x44a15a0c] ti.sdo.ce.osal.SemMP - Entered SemMP_post> sem[0x71f90]
    @149,952,809us: [+0 T:0x44a16460 S:0x44a15a0c] ti.sdo.ce.osal.SemMP - Leaving SemMP_post> sem[0x71f90]
    @149,953,013us: [+0 T:0x44a16460 S:0x44a15a3c] ti.sdo.ce.alg.Algorithm - Algorithm_deactivate> Exit
    @149,953,188us: [+0 T:0x44a16460 S:0x44a15a54] ti.sdo.ce.video1.VIDENC1 - VIDENC1_process> Exit (handle=0x72940, retVal=0xa005)
    @149,953,368us: [+2 T:0x44a16460 S:0x44a15aa4] ti.sdo.dmai - [Venc1] VIDENC1_process() ret 40965 inId 1 outID 1 generated 20 bytes
    @149,953,546us: [+7 T:0x44a16460 S:0x44a15aa4] ti.sdo.dmai - [Venc1] VIDENC1_process() failed with error (40965 ext: 0x0)
    Error from thread 3
    video thread flushed
    @149,985,297us: [+2 T:0x44a16460 S:0x44a15b64] ti.sdo.dmai - [Buffer] Free Buffer of size 622080 at 0x44df0000 (0x86780000 phys)
    @149,985,620us: [+0 T:0x44a16460 S:0x44a15b44] OM - Memory_free> Enter(0x44df0000, 0x97e00)
    @149,985,837us: [+0 T:0x44a16460 S:0x44a15b0c] OM - Memory_contigFree> Enter(addr=1155465216, size=622080)
    @149,987,521us: [+1 T:0x44a16460 S:0x44a15ae4] OM - Memory__removeContigBuf> Enter(virtAddr=0x44df0000, size=622080)
    @149,987,792us: [+1 T:0x44a16460 S:0x44a15ae4] OM - Memory__removeContigBuf> removing cb->phys=0x86780000, cb->size=0x97e00, cb->virt=0x44df0000
    @149,987,990us: [+0 T:0x44a16460 S:0x44a15aec] OM - Memory_free> Enter(0x72ab8, 0x10)

    <snip>

  • Hi Frank-san,

     

    Did you fix this problem? If so, how did you fix it. I guess some newer revision of 3.10.00.xx fix this problem.

    Why am I asking this is I faced same problem with error code 40965 using dvsdk 2.10.01.18. I think I have to rebuild with 3.10.00.xx but if I do so it takes some time to tuning up so I hesitate to build.

     

    Takeshi Yuasa

  • Hi Takeshi-san,

     

    to be honest, I never really fixed this problem but I added a workaround which seems to work quite good. I simply count the encoded frames and after 3000 frames I delete the encoder object and create a new one....

    At the moment we are moving from 3.10.00.12 to 3.10.00.19 but the work is not completed. I hope that this issue will be fixed with this move. I can understand your hesitation because the migration to the new version is not that easy. Especially the memory management with cmem.ko has changed somehow because now only 100 memory chunks seem to be allowed now and in the older version there was no limitation....

    Sorry, that I cannot help that much.

    Good luck

    Frank Reither