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.

error in RDK2.8

Hi,we use DM8168.

I use the usecase of capture-venc.

If I set the Links according to the order: capture init, capture create,  venc init, ven create, vcap_start, venc_start; the program is OK.

If I set the Links according to the order: capture init, capture create, vcap_start, venc init, ven create,  venc_start; the program is error.

[m3video]  24010: Assertion @ Line: 101 in links_common/ipcInM3/ipcInM3Link_tsk.c: pObj->prd.clkHandle != NULL : failed !!!      

the capture start just only includes  capture and nsf start. The only difference of two orders is thate the location of capture start is not same.

Why the ipc is error?                                       

 

  • You should first create all links and _only_ then should you start the links. If you start a link without creating the nextLink it will fail because the next link is in unitialized state and will not be able to handle any received frame

  • Hi, Badri.

     

    I use the usecase cap_venc_dec_dis, it can normally display and write file.

    But if I get rid of decode and display, the programe can run normal but can not write file.

    I can not directly get rid of decode and display?

      

    ChId | InBufCnt | OutBufCnt
     [m3vpss ] 
     [m3vpss ]  *** CAPTURE Statistics ***
     [m3vpss ] 31355: CAPTURE: Queued to driver = 22, Dequeued from driver = 22
     [m3video] ENCLINK_H264:HEAPID:0        USED:13808
     [m3video] ENCLINK_H264:HEAPID:3        USED:9535488
     [m3vpss ] CAPTURE [0] Buf Q Status
     [m3video]  31343: ENCODE: All CH Create ... DONE !!!
     [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
     [m3vpss ] Full Q -> count 15, wrPtr 22, rdPtr 7
     [m3video] ENCLINK:HEAPID:0     USED:13928
     [m3video] ENCLINK:HEAPID:2     USED:16588800
     [m3video] ENCLINK:HEAPID:3     USED:9535488
     [m3video]  31345: ENCODE: Create ... DONE !!!
     [m3video]  Channel:0 inputframerate:30 targetfps:30
     [m3video]  31346: IPC_BITS_OUT   : Create in progress !!!
     [m3video]  31347: IPC_BITS_OUT   : Create Done !!!
     [m3video]  Channel:0 inputframerate:30 targetfps:30
     [m3vpss ] 
     [m3vpss ]  *** [NSF0] NSF Statistics ***
     [m3vpss ] 31519: NSF: Rcvd from prev = 22, Returned to prev = 22
     [m3vpss ] NSF Out [0] Buf Q Status
     [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
     [m3vpss ] Full Q -> count 1, wrPtr 22, rdPtr 21
     [m3video] 
     [m3video]  *** Encode Statistics ***
     [m3video]   32020: ENC: Rcvd from prev = 52, Returned to prev = 47
     [m3video]  ENC Out  BitBuf Q Status
     [m3video] Empty Q 0 -> count 0, wrPtr 8, rdPtr 8
     [m3video] Full Q -> count 0, wrPtr 8, rdPtr 8
  • If you don't want decode and display use the SD encode usecase. If you modify the cap_venc_dec_dis you should make the correct changes in usecase file and in demo code and there is lot of chance of making mistakes.

  • Hi, Badri.

    It's OK now, Thanks very much.