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.

vdec channel create bug

hi all. i create 16 ch 1920*1080 vdec channel in my app that will has following error,but i test in the rdk demo ,that will be ok,so why?

tks

4:HEAPID:3        USED:9363456
 [m3video]  43689: DECODE: Creating CH2 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456
 [m3video]  43736: DECODE: Creating CH3 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456
 [m3video]  43784: DECODE: Creating CH4 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456
 [m3video]  43831: DECODE: Creating CH5 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456
 [m3video]  43879: DECODE: Creating CH6 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456
 [m3video]  43927: DECODE: Creating CH7 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456
 [m3video]  43976: DECODE: Creating CH8 of 1920 x 1080 [PROGRESSIVE] [TILED      ],target bitrate = 2000 Kbps ...
 [m3vpss ]  44023: Assertion @ Line: 1592 in utils/src/tile_alg_binpack.c: tilerAddr != UTILS_TILER_INVALID_ADDR : failed !!!
 [m3video] DECLINK_H264:HEAPID:0        USED:2368
 [m3video] DECLINK_H264:HEAPID:3        USED:9363456

  • You are configuring decoder output buffers as tiled memory. If you want to open more than 8 channels of 1080P you should use non-tiled memory for decoder output buffers. The amount of tiled memory is limited by H/W

  • thank you for your answer .i don't understant the tiled memory. and i want to know how to configure the decoder output buffers

  • Set decPrm.chCreateParams[i].tilerEnable = FALSE

  • yes .that value i use the default value .so it is FALSE .but i don't call the function SystemTiler_disableAllocator()

    because i call that function that will has following error:

     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video] ENCLINK_H264:HEAPID:3        USED:7176192
     [m3video]  8727: ENCODE: All CH Create ... DONE !!!
     [m3video] ENCLINK:HEAPID:0     USED:25840
     [m3video] ENCLINK:HEAPID:2     USED:12441600
     [m3video] ENCLINK:HEAPID:3     USED:14352384
     [m3video]  8729: ENCODE: Create ... DONE !!!
     [m3video]  8729: IPC_BITS_OUT   : Create in progress !!!
     [m3video]  8731: IPC_BITS_OUT   : Create Done !!!
     [m3video]  8739: IPC_BITS_IN   : Create in progress !!!
     [m3video]  8739: SYSTEM: Opening ListMP [HOST_IPC_OUT_25] ...
     [m3video]  8739: SYSTEM: Opening ListMP [HOST_IPC_IN_25] ...
     [m3video]  8740: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3video]  8742: IPC_BITS_IN   : Create Done !!!
     [m3video]  8742: DECODE: Create in progress ... !!!
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  8787: SYSTEM  : FREE SPACE : System Heap      = 6249648 B, Mbx = 10239 msgs)
     [m3video]  8787: SYSTEM  : FREE SPACE : SR0 Heap         = 8713728 B (8 MB)
     [m3video]  8787: SYSTEM  : FREE SPACE : Frame Buffer     = 130179968 B (124 MB)
     [m3video]  8787: SYSTEM  : FREE SPACE : Bitstream Buffer = 175488896 B (167 MB)
     [m3video]  8788: SYSTEM  : FREE SPACE : Tiler Buffer     = 224 B (0 MB)  - TILER OFF
     [m3video]  8788: Assertion @ Line: 181 in utils/src/utils_tiler.c: (UInt32)(pFrame->addr[0][0]) != SYSTEM_TILER_INVALID_ADDR : failed !!!

  • i want to know this function SystemTiler_disableAllocator() relative to what other params.in the RDK demo usecase

    vdec_vdis that source code has no errror when the app run

       tilerEnable  = FALSE;

        if (tilerEnable == FALSE)
        {
            /* Disable tiler allocator for this usecase
             * for that tiler memory can be reused for
             * non-tiled allocation
             */
            SystemTiler_disableAllocator();
        }
        else
        {
            SystemTiler_BucketGeometry_t bucketRes;

            bucketRes.bucketWidth  = SYSTEM_TILER_ALLOCATOR_BUCKET_WIDTH_DEFAULT;
            bucketRes.bucketHeight = SYSTEM_TILER_ALLOCATOR_BUCKET_HEIGHT_DEFAULT;
            bucketRes.minResolution = SYSTEM_TILER_RESOLUTION_CIF;
            bucketRes.setSingleBucketGeometry = FALSE;
            SystemTiler_setBucketGeometry(&bucketRes);
        }

  • i am sorry .i have somewhere that tilerEnable not change.now i change that to FALSE .then i will has the following errors

     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video] ENCLINK_H264:HEAPID:3        USED:7176192
     [m3video]  9191: ENCODE: All CH Create ... DONE !!!
     [m3video] ENCLINK:HEAPID:0     USED:25840
     [m3video] ENCLINK:HEAPID:2     USED:12441600
     [m3video] ENCLINK:HEAPID:3     USED:14352384
     [m3video]  9192: ENCODE: Create ... DONE !!!
     [m3video]  9193: IPC_BITS_OUT   : Create in progress !!!
     [m3video]  9195: IPC_BITS_OUT   : Create Done !!!
     [m3video]  9203: IPC_BITS_IN   : Create in progress !!!
     [m3video]  9203: SYSTEM: Opening ListMP [HOST_IPC_OUT_25] ...
     [m3video]  9203: SYSTEM: Opening ListMP [HOST_IPC_IN_25] ...
     [m3video]  9204: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3video]  9206: IPC_BITS_IN   : Create Done !!!
     [m3video]  9206: DECODE: Create in progress ... !!!
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9337: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9468: DECODE: Creating CH1 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9599: DECODE: Creating CH2 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9729: DECODE: Creating CH3 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9861: DECODE: Creating CH4 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:2        USED:8941568
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10000: DECODE: Creating CH5 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:2        USED:8941568
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10142: DECODE: Creating CH6 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:2        USED:8941568
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10283: DECODE: Creating CH7 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] ENCDECUTIL: ERROR! DECODER Creation: Insufficient Memory; Required = 27437056, Free Memory Available = 23041792
     [m3video]  
     [m3video]  
     [m3video] 10284:ERR::linkID:10000022::channelID:8::errorCode:-4::FileName:links_m3video/iva_dec/decLink_h264.c::linuNum:872::errorCondition:(status == UTILS_ENCDEC_S_SUCCESS)
     [m3video] DECLINK_H264:HEAPID:0        USED:1896
     [m3video]  10284: Assertion @ Line: 1492 in links_m3video/iva_dec/decLink_common.c: status == DEC_LINK_S_SUCCESS : failed !!!

  • after i call the function SystemTiler_disableAllocator,i can init the max channel is 14,then it will be Insufficient Memory,so why?and how to extend the memory?

     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video] ENCLINK_H264:HEAPID:3        USED:7176192
     [m3video]  9216: ENCODE: All CH Create ... DONE !!!
     [m3video] ENCLINK:HEAPID:0     USED:25840
     [m3video] ENCLINK:HEAPID:2     USED:12441600
     [m3video] ENCLINK:HEAPID:3     USED:14352384
     [m3video]  9217: ENCODE: Create ... DONE !!!
     [m3video]  9218: IPC_BITS_OUT   : Create in progress !!!
     [m3video]  9219: IPC_BITS_OUT   : Create Done !!!
     [m3video]  9229: IPC_BITS_IN   : Create in progress !!!
     [m3video]  9230: SYSTEM: Opening ListMP [HOST_IPC_OUT_25] ...
     [m3video]  9230: SYSTEM: Opening ListMP [HOST_IPC_IN_25] ...
     [m3video]  9231: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3video]  9233: IPC_BITS_IN   : Create Done !!!
     [m3video]  9233: DECODE: Create in progress ... !!!
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9362: DECODE: Creating CH0 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9490: DECODE: Creating CH1 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9619: DECODE: Creating CH2 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9747: DECODE: Creating CH3 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:9363456
     [m3video]  9875: DECODE: Creating CH4 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10007: DECODE: Creating CH5 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10138: DECODE: Creating CH6 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10270: DECODE: Creating CH7 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10402: DECODE: Creating CH8 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:421888
     [m3video]  10533: DECODE: Creating CH9 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video] DECLINK_H264:HEAPID:3        USED:299008
     [m3video]  10666: DECODE: Creating CH10 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video]  10802: DECODE: Creating CH11 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video]  10939: DECODE: Creating CH12 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] DECLINK_H264:HEAPID:0        USED:2368
     [m3video]  11076: DECODE: Creating CH13 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video] ENCDECUTIL: ERROR! DECODER Creation: Insufficient Memory; Required = 27437056, Free Memory Available = 20785920
     [m3video]  
     [m3video]  
     [m3video] 11077:ERR::linkID:10000022::channelID:14::errorCode:-4::FileName:links_m3video/iva_dec/decLink_h264.c::linuNum:872::errorCondition:(status == UTILS_ENCDEC_S_SUCCESS)
     [m3video] DECLINK_H264:HEAPID:0        USED:1896
     [m3video]  11078: Assertion @ Line: 1492 in links_m3video/iva_dec/decLink_common.c: status == DEC_LINK_S_SUCCESS : failed !!!

  • You can use 2G build if your board support 2G DDR. How many 1080P decode channels do you want to open ? 816x can decode only 6 channels of 1080P30 in realtime.

  • ok,i know .thanks for your help