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.

DM 8168 decode 12 ch 問題?



 

                       h.264---->(讀12 個h.264檔案)                                            
                           |                                                  
                         dec----->(dec 12 個ch)                                                   
                           |
                         que
                           |
                       merge
                           |                                              
                       swMs                                                  
                           |
                         dis----->(顯示12 個ch 畫面)    

我從1 ch慢慢往上增加, 結果到12 個ch時跑" chains_encDecLoopBack.c"

就會出現錯誤( ASSERT (ipcBitsOutLink_tsk.c|IpcBitsOutLink_putFullBufs|955)),

詳細內容如下: 請各位大大幫忙看看

host] CHAINS:Enable file write :(y -- yes/n -- no):

 [host]

CHAINS:Using default file store path:/ti816x


 [host]

CHAINS:Selected File store path:/ti816x

 [host] CHAINS:Enable file read :(y -- yes/n -- no):

 [host] CHAINS_IPCBITS_SEND:Chains_ipcBitsSendFxn:Entered...

 [host] CHAINS_IPCBITS_RECV:Chains_ipcBitsRecvFxn:Entered...Display 0: Layout: CHAINS_LAYOUT_12ch


 [host]  3053: IPC_BITS_OUT   : Create in progress !!!
###Bit buff of size from the SR # 1 : 19906560


 [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:0,Size:0x12FC000

 [host] IPCBITSOUTLINK:Translated Addr Virt:0x2be29080 To Phy:0x88000080

 [host]  3054: IPC_BITS_OUT   : Create Done !!!
 [m3video]  13502: IPC_BITS_IN   : Create in progress !!!
 [m3video]  13502: SYSTEM: Opening ListMP [HOST_IPC_OUT_24] ...
 [m3video]  13503: SYSTEM: Opening ListMP [HOST_IPC_IN_24] ...
 [m3video]  13503: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
 [m3video]  13505: IPC_BITS_IN   : Create Done !!!
 [m3video]  13506: DECODE: Create in progress ... !!!
 [m3video] DECLINK_H264:HEAPID:0USED:4264
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13553: DECODE: Creating CH0 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13599: DECODE: Creating CH1 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13645: DECODE: Creating CH2 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13691: DECODE: Creating CH3 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13737: DECODE: Creating CH4 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13783: DECODE: Creating CH5 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13828: DECODE: Creating CH6 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13874: DECODE: Creating CH7 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13920: DECODE: Creating CH8 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  13966: DECODE: Creating CH9 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  14012: DECODE: Creating CH10 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video] DECLINK_H264:HEAPID:0USED:2368
 [m3video] DECLINK_H264:HEAPID:3USED:4444160
 [m3video]  14058: DECODE: Creating CH11 of 720 x 480 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
 [m3video]  14059: DECODE: All CH Create ... DONE !!!
 [m3vpss ]  14063: IPC_IN_M3   : Create in progress !!!
 [m3vpss ]  14063: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_0] ...
 [m3video] DECLINK:HEAPID:0USED:30432
 [m3vpss ]  14064: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_0] ...
 [m3video] DECLINK:HEAPID:3USED:118358016
 [m3vpss ]  14064: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
 [m3video]  14062: DECODE: Create ... DONE !!!
 [m3vpss ]  14066: IPC_IN_M3   : Create Done !!!
 [m3video]  14062: IPC_OUT_M3   : Create in progress !!!
 [m3video]  14063: IPC_OUT_M3   : Create Done !!!
 [m3vpss ]  14069: DUP   : Create Done !!!
 [m3vpss ]  14070: MERGE   : Create Done !!!
 [m3vpss ]  14070: SWMS: Create in progress !!!
 [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 58 (58)
 [m3vpss ] SWMS: instance 0, sc id 1, start win 0 end win 17
 [m3vpss ]  14246: SWMS    : VipScReq is FALSE!!!
 [m3vpss ]  14391: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
 [m3vpss ]  14391: SWMS0    : Loading Horizontal Co-effs (UPSCALE)x ...
 [m3vpss ]  14391: SWMS    : Co-effs Loading ... DONE !!!
 [m3vpss ]  14391: SWMS    : VipScReq is FALSE!!!
 [m3vpss ] AVSYNC:WARNING!! Application wrongly configureddisplayID[-1]. Reseting to correct displayID[0]
 [m3vpss ]  14395: SWMS    : ******* Configuring clock 15 secs...
 [m3vpss ]  14395: SWMS0    : Loading Vertical Co-effs (12/16)x ...
 [m3vpss ]  14395: SWMS0    : Loading Horizontal Co-effs (11/16)x ...
 [m3vpss ]  14395: SWMS    : Co-effs Loading ... DONE !!!
 [m3vpss ]  14395: SWMS0    : Loading Vertical Co-effs (12/16)x ...
 [m3vpss ]  14395: SWMS0    : Loading Horizontal Co-effs (11/16)x ...
 [m3vpss ]  14395: SWMS    : Co-effs Loading ... DONE !!!
 [m3vpss ] 
 [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
 [m3vpss ] 
 [m3vpss ]  Output FPS: 60
 [m3vpss ] 
 [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Low Cost | SWMS | Data  | Blank |
 [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | ON / OFF | Inst | Format| Frame |
 [m3vpss ]  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [m3vpss ]    0 |   0 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |    0,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    1 |   1 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |  480,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    2 |   2 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |  960,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    3 |   3 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   | 1440,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    4 |   4 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |    0,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    5 |   5 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |  480,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    6 |   6 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |  960,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    7 |   7 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   | 1440,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    8 |   8 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |    0,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    9 |   9 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |  480,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]   10 |  10 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   |  960,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]   11 |  11 |    0,    0 |   720 x    480 |   896 /   896 | NON-TILED   | 1440,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ] 
 [m3vpss ] SWMS:HEAPID:0USED:424
 [m3vpss ] SWMS:HEAPID:1USED:31392
 [m3vpss ] SWMS:HEAPID:4USED:67921920
 [m3vpss ]  14400: SWMS: Create Done !!!
 [m3vpss ]  14401: DISPLAY: Create in progress !!!
 [m3vpss ]  14401: DISPLAY: Create Done !!!
 [m3vpss ]  14402: DISPLAY: Start in progress !!!


 ====================

 Chains Run-time Menu

 ====================

 

 0: Stop Chain

 

 a: CHAINS_LAYOUT_2x2_

 

 b: CHAINS_LAYOUT_2x2_PLUS_1CH

 

 c: CHAINS_LAYOUT_1x1_PLUS_2CH

 

 s: Switch Display Layout  (Sequential change of layout)

 c: Switch Display Channel (Sequential: Increments by 1)

 p: Print Capture Statistics

 b: Modify Encoder Bit Rate

 f: Modify Encoder Frame Rate

 r: Modify Intra Frame Interval(GOP)

 t: Toggle force IDR frame

 g: Print Encoder Dynamic Parameters

 i: Print IVA-HD Statistics

 m: Print SwMs Statistics

 a: Audio Capture / Playback

 

 Enter Choice:

 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0
 [m3vpss ]  14434: DISPLAY: Start Done !!!
 [m3vpss ]  14434: DISPLAY: HDDAC(BP0) : 62 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) !!!
 [m3vpss ]  14434: SWMS: Start in Progress !!!
 [m3vpss ]  14434: SWMS: Start Done !!!
 [m3vpss ]  14435: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1, HDDAC(BP0) 1, DVO2(BP1) 1, SDDAC(SEC1) 1
 [m3vpss ]  14435: SYSTEM  : FREE SPACE : System Heap      = 6192 B, Mbx = 10239 msgs)
 [m3vpss ]  14435: SYSTEM  : FREE SPACE : SR0 Heap         = 11003648 B (10 MB)
 [m3vpss ]  14435: SYSTEM  : FREE SPACE : Frame Buffer     = 54514560 B (51 MB)
 [m3vpss ]  14435: SYSTEM  : FREE SPACE : Bitstream Buffer = 332939136 B (317 MB)
 [m3vpss ]  14435: SYSTEM  : FREE SPACE : Tiler 8-bit      = 89128960 B (85 MB)  - TILER ON
 [m3vpss ]  14436: SYSTEM  : FREE SPACE : Tiler 16-bit     = 44040192 B (42 MB)  - TILER ON


 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0


 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0


 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0


 [host] CHAINS_IPCBITS_SEND:Chains_ipcBitsSendFxn:INFO: periodic print..

 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0
 [c6xdsp ]  18126: Assertion @ Line: 19 in links_common/system/system_linkApi_local.c: linkId < SYSTEM_LINK_ID_MAX : failed !!!
 [m3vpss ]  18402: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
 [m3vpss ]  SWMS: *** UPDATING RT Params ***
 [m3vpss ]  18409: SWMS    : ******* Configuring clock 15 secs...
 [m3vpss ]  18410: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
 [m3vpss ]  18410: SWMS0    : Loading Horizontal Co-effs (UPSCALE)x ...
 [m3vpss ]  18410: SWMS    : Co-effs Loading ... DONE !!!
 [m3vpss ]  18410: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
 [m3vpss ]  18410: SWMS0    : Loading Horizontal Co-effs (UPSCALE)x ...
 [m3vpss ]  18410: SWMS    : Co-effs Loading ... DONE !!!
 [m3vpss ] 
 [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
 [m3vpss ] 
 [m3vpss ]  Output FPS: 60
 [m3vpss ] 
 [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Low Cost | SWMS | Data  | Blank |
 [m3vpss ]  Num | Num | Start X, Y | Width x Height | Pitch Y / C   | Memory Type | Start X, Y |  Width x Height | Pitch Y / C   | Memory Type | ON / OFF | Inst | Format| Frame |
 [m3vpss ]  ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
 [m3vpss ]    0 |   0 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |    0,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    1 |   1 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |  480,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    2 |   2 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |  960,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    3 |   3 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   | 1440,    0 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    4 |   4 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |    0,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    5 |   5 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |  480,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    6 |   6 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |  960,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    7 |   7 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   | 1440,  360 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    8 |   8 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |    0,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]    9 |   9 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |  480,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]   10 |  10 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   |  960,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ]   11 |  11 |    0,    0 |   512 x    288 |   896 /   896 | NON-TILED   | 1440,  720 |   480 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
 [m3vpss ] 


 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0


 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0


 [host] $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ : 0
 ASSERT (ipcBitsOutLink_tsk.c|IpcBitsOutLink_putFullBufs|955)

  • DVR RDK的版本是多少?有用RDK默认的VDEC + VDIS demo么?

  • chain demo在RDK中已经不维护了。

    请使用mcfw demo

  • DVR RDK 3.0

    chains_encDecLoopBack 在附件內.

    我有測試了一下,好像問題點在於chains_ipcBits.c 內 emptyBufList.numBufs,  我也不太清楚



    static Void Chains_ipcBitsQueEmptyBitBufs(UInt32 ipcBitsInLinkId,
    Chains_IpcBitsCtrlThrObj *thrObj,
    Chains_IpcBitsCtrlFileObj *fObj)
    {
    //printf("\r\n this is ipcBitsQueEmptyBitBufs,");
    Bitstream_BufList emptyBufList;
    Bitstream_Buf *pBuf;
    IpcBitsOutLinkHLOS_BitstreamBufReqInfo reqInfo;
    Int i , j;
    Int status;
    UInt32 bitBufSize;

    static float ch_num = 0;
    static float abs_time;
    static float cur_time;
    static UInt32 first = 1;
    static float total_buf_num = 0;
    float wait_time;
    float total_time , Msecond = 1000.0;

    bitBufSize = CHAINS_IPCBITS_GET_BITBUF_SIZE(CHAINS_IPCBITS_DEFAULT_WIDTH,
    CHAINS_IPCBITS_DEFAULT_HEIGHT);
    emptyBufList.numBufs = 0;
    reqInfo.numBufs = VIDBITSTREAM_MAX_BITSTREAM_BUFS;
    reqInfo.reqType = IPC_BITSOUTHLOS_BITBUFREQTYPE_BUFSIZE; //steven20120823 it's important to set "FALSE"(new member for ver. 3.0)
    for (i = 0; i < VIDBITSTREAM_MAX_BITSTREAM_BUFS; i++)
    {
    reqInfo.u[i].minBufSize = bitBufSize;
    }

    while(emptyBufList.numBufs==0)
    {
    status = IpcBitsOutLink_getEmptyVideoBitStreamBufs(ipcBitsInLinkId, &emptyBufList, &reqInfo);
    OSA_assert(status == 0 );
    }
    //OSA_printf("%s : %d INST %d emptyBufList.numBufs = %d",__func__, OSA_getCurTimeInMsec(), thrObj->inst, emptyBufList.numBufs);

    if(first)
    {
    first = 0;
    abs_time = OSA_getCurTimeInMsec();
    }
    else
    {

    total_time = total_buf_num * Msecond/(30*DEC_CH) + abs_time;
    // total_time = total_buf_num *1000/(45) + abs_time;
    cur_time = OSA_getCurTimeInMsec();
    wait_time = total_time - (cur_time - abs_time);
    if( (wait_time > 0)&&((cur_time - abs_time) > 0) )
    OSA_waitMsecs(wait_time);
    }
    total_buf_num += emptyBufList.numBufs;

    OSA_printf("INST emptyBufList.numBufs = %d", emptyBufList.numBufs);


    for (i = 0; i < emptyBufList.numBufs i++) //emptyBufList.numBufs
    {
    pBuf = emptyBufList.bufs[i];
    OSA_assert(pBuf->bufSize >= bitBufSize );

    if(fObj->enableFRead)
    {

    //Ed: add for allocate buf averagely
    if ( DEC_CH > 1)
    pBuf->channelNum = BufUsedflag; //FOR resource buf allocate
    else
    pBuf->channelNum = 0; //if only one channel , this should be set to 0
    BufUsed[BufUsedflag]++;

    Chains_ipcBitsReadBitsToBuf(pBuf, thrObj, fObj->fileDirPath , ipcBitsInLinkId);
    for (j = 0 ; j < DEC_CH ; j++)
    {
    if (BufUsed[Min_Pos] > BufUsed[j])
    Min_Pos = j;
    }
    BufUsedflag = Min_Pos;

    }
    else

    {
    status = OSA_quePut(&thrObj->bufQFreeBufs,(Int32)pBuf,OSA_TIMEOUT_NONE);
    OSA_assert(status == 0);
    }
    }

    }



  • chain demo在RDK中已经不维护了。

    请使用mcfw demo