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.

capture and frame out

Other Parts Discussed in Thread: TVP5158

Hello everyone,

I added one chain in my usecase:

    capture -> nsf -> ipc-out -> ipc-in-a8

but did not see any frame out.  Could anyone give me some hints?

    CaptureLink_CreateParams_Init(&capturePrm);
    capturePrm.numVipInst               = 1;
    capturePrm.outQueParams[0].nextLink = gMultiCh_VdecVdisObj.nsfVpssId;
    capturePrm.tilerEnable              = FALSE;
    capturePrm.numBufsPerCh             = NUM_CAPTURE_BUFFERS;
    capturePrm.maxBlindAreasPerCh       = 4;

    for(vipInstId=0; vipInstId<capturePrm.numVipInst; vipInstId++)
    {
        pCaptureInstPrm                     = &capturePrm.vipInst[vipInstId];
        pCaptureInstPrm->vipInstId          = SYSTEM_CAPTURE_INST_VIP0_PORTA+vipInstId;
        pCaptureInstPrm->videoDecoderId     = SYSTEM_DEVICE_VID_DEC_TVP5158_DRV;
        pCaptureInstPrm->inDataFormat       = SYSTEM_DF_YUV422P;
        pCaptureInstPrm->standard           = SYSTEM_STD_MUX_4CH_D1;
        pCaptureInstPrm->numOutput          = 1;

        pCaptureOutPrm                      = &pCaptureInstPrm->outParams[0];
        pCaptureOutPrm->dataFormat          = SYSTEM_DF_YUV422I_YUYV;
        pCaptureOutPrm->scEnable            = FALSE;
        pCaptureOutPrm->scOutWidth          = 0;
        pCaptureOutPrm->scOutHeight         = 0;
        pCaptureOutPrm->outQueId            = 0;
    }

    for(i = 0; i < NUM_CAPTURE_DEVICES; i++)
    {
        vidDecVideoModeArgs[i].vipInstId        = SYSTEM_CAPTURE_INST_VIP0_PORTA+i;
        vidDecVideoModeArgs[i].deviceId         = DEVICE_VID_DEC_TVP5158_DRV;
        vidDecVideoModeArgs[i].numChInDevice    = 4;

        vidDecVideoModeArgs[i].modeParams.videoIfMode        = DEVICE_CAPT_VIDEO_IF_MODE_8BIT;
        vidDecVideoModeArgs[i].modeParams.videoDataFormat    = SYSTEM_DF_YUV422P;
        vidDecVideoModeArgs[i].modeParams.standard           = SYSTEM_STD_MUX_4CH_D1;
        vidDecVideoModeArgs[i].modeParams.videoCaptureMode   =
                    DEVICE_CAPT_VIDEO_CAPTURE_MODE_MULTI_CH_PIXEL_MUX_EMBEDDED_SYNC;
        vidDecVideoModeArgs[i].modeParams.videoSystem        =
                                      DEVICE_VIDEO_DECODER_VIDEO_SYSTEM_AUTO_DETECT;
        vidDecVideoModeArgs[i].modeParams.videoCropEnable    = FALSE;
        vidDecVideoModeArgs[i].modeParams.videoAutoDetectTimeout = -1;
    }

    Vcap_configVideoDecoder(vidDecVideoModeArgs, NUM_CAPTURE_DEVICES);

    nsfVpssPrm.bypassNsf                 = TRUE;
    nsfVpssPrm.tilerEnable               = FALSE;
    nsfVpssPrm.inQueParams.prevLinkId    = gMultiCh_VdecVdisObj.captureId;
    nsfVpssPrm.inQueParams.prevLinkQueId = 0;
    nsfVpssPrm.numOutQue                 = 1;
    nsfVpssPrm.outQueParams[0].nextLink  = gMultiCh_VdecVdisObj.ipcFramesOutVpssToHostId;

    ipcFramesOutVpssToHostPrm.baseCreateParams.noNotifyMode = FALSE;
    ipcFramesOutVpssToHostPrm.baseCreateParams.notifyNextLink = TRUE;
    ipcFramesOutVpssToHostPrm.baseCreateParams.notifyPrevLink = TRUE;
    ipcFramesOutVpssToHostPrm.baseCreateParams.inQueParams.prevLinkId = gMultiCh_VdecVdisObj.nsfVpssId;
    ipcFramesOutVpssToHostPrm.baseCreateParams.inQueParams.prevLinkQueId = 0;
    ipcFramesOutVpssToHostPrm.baseCreateParams.numOutQue = 1;
    ipcFramesOutVpssToHostPrm.baseCreateParams.outQueParams[0].nextLink = gMultiCh_VdecVdisObj.ipcFramesInHostFromVpssId;

    ipcFramesInHostFromVpssPrm.baseCreateParams.noNotifyMode = FALSE;
    ipcFramesInHostFromVpssPrm.baseCreateParams.notifyNextLink = FALSE;
    ipcFramesInHostFromVpssPrm.baseCreateParams.notifyPrevLink = TRUE;
    ipcFramesInHostFromVpssPrm.baseCreateParams.inQueParams.prevLinkId = gMultiCh_VdecVdisObj.ipcFramesOutVpssToHostId;
    ipcFramesInHostFromVpssPrm.baseCreateParams.inQueParams.prevLinkQueId = 0;
    ipcFramesInHostFromVpssPrm.baseCreateParams.numOutQue = 1;
    ipcFramesInHostFromVpssPrm.baseCreateParams.outQueParams[0].nextLink = SYSTEM_LINK_ID_INVALID;
    ipcFramesInHostFromVpssPrm.exportOnlyPhyAddr = TRUE;

    ipcFramesInHostFromVpssPrm.cbFxn = &MyDataInNotify;
    ipcFramesInHostFromVpssPrm.cbCtx = &myDataInNotifySem;

  • Are you doing SystemLink_start for all the links. Share the logs of Vsys_printDetailedStatistics and Vsys_printBufferStatistics.If you are using link apis directly refer implementation of these APIs and implement same functionality in your app.

  •  IPCBITSOUTLINK:Buffer Statistics
     Num Alloc Pools:4
     PoolId | TotalBufCnt | FreeBufCnt | BufSize | AppAllocCount
           0|            6|          6| 2073600|            0
           1|            6|          1| 2073600|            0
           2|            6|          6| 2073600|            0
           3|            6|          6| 2073600|            0

     VDEC:Buffer Statistics
     ChId | InBufCnt | OutBufCnt
         0|         0|         0
         1|         4|         4
         2|         0|         0
         3|         0|         0
     [m3vpss ]
     [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
     [m3vpss ] 70997: SWMS: Rcvd from prev = 0, Returned to prev = 469
     [m3vpss ] SWMS Out  Buf Q Status
     [m3vpss ] Empty Q -> count 3, wrPtr 326, rdPtr 323
     [m3vpss ] Full Q -> count 1, wrPtr 323, rdPtr 322
     [m3vpss ]
     [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
     [m3vpss ] 70998: SWMS: Rcvd from prev = 0, Returned to prev = 469
     [m3vpss ] SWMS Out  Buf Q Status
     [m3vpss ] Empty Q -> count 0, wrPtr 167, rdPtr 167
     [m3vpss ] Full Q -> count 1, wrPtr 167, rdPtr 166
     [m3vpss ]
     [m3vpss ]  *** Display Statistics ***
     [m3vpss ] 70999: DISPLAY: Rcvd from prev = 1090, Returned to prev = 1087, BufsInDriver = 5
     [m3vpss ]
     [m3vpss ]  *** Display Statistics ***
     [m3vpss ] 70999: DISPLAY: Rcvd from prev = 550, Returned to prev = 544, BufsInDriver = 8
     [m3video]
     [m3video]  *** Encode Statistics ***
     [m3video]   71500: ENC: Rcvd from prev = 0, Returned to prev = 0
     [m3video]  ENC Out  BitBuf Q Status
     [m3video] Empty Q 0 -> count 24, wrPtr 24, rdPtr 0
     [m3video] Full Q -> count 0, wrPtr 0, rdPtr 0

  • The stats is not for the usecase you shared. Get the stats for the correct links capture,nsf,ipcFramesOut

  • There are no messages about "CAPTURE statistics".  What's wrong?

  • my chains are complicated, "capture->nsf->ipc-out" is a separated part of the full chains.

    It is strange that there is no "capture statistics".

  •  0: SYSTEM: System Common Init in progress !!!
     0: SYSTEM: IPC init in progress !!!
     13: SYSTEM: CPU [DSP] syslink proc ID is [0] !!!
     13: SYSTEM: CPU [VIDEO-M3] syslink proc ID is [1] !!!
     13: SYSTEM: CPU [VPSS-M3] syslink proc ID is [2] !!!
     13: SYSTEM: CPU [HOST] syslink proc ID is [3] !!!
     13: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP_3] ...
     15: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
     17: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
     19: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
     20: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     20: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     21: SYSTEM: Notify register to [DSP] line 0, event 15 ...
     22: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ...
     22: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ...
     23: SYSTEM: IPC init DONE !!!
     24: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
     26: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
     27: SYSTEM: ListElem Shared Addr = 0x42056880
     28: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
     31: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
     32: SYSTEM: ListElem Shared Addr = 0x42074380
     34: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
     36: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
     37: SYSTEM: ListElem Shared Addr = 0x42091e80
     38: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
     40: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
     42: SYSTEM: ListElem Shared Addr = 0x420b7680
     42: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
     44: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
     46: SYSTEM: ListElem Shared Addr = 0x420dce80
     68: SYSTEM: System Common Init Done !!!
    ch[0], h264
    ch[1], h264
    ch[2], h264
    ch[3], h264
     [host] HDMI Ctrl :Initializing
     [host] HDMI Ctrl :Initialized
     [host] HDMI Ctrl :Sink Connected
     [FBDEV]
     [FBDEV] FB: Starting !!!
     [FBDEV] ERROR: FB: Could not open device [/dev/fb0] !!!
     137: MCFW  : CPU Revision [ES2.1] !!!
     137: MCFW  : Detected [UNKNOWN] Board !!!
     137: MCFW  : Base Board Revision [REV A] !!!
     VCAP: DEVICE-0 (0x5c): Chip ID 0x0000, Rev 0x0000, Firmware 0x0000 !!!
     VCAP: DEVICE-0 (0x5c):  NO Video Detected !!!
     TVP5158: 0x5c: NO Patch downloaded, using ROM firmware.
     TVP5158: 0x5c: 0000:0000:0000
     [m3vpss ]  50924: CAPTURE: Create in progress !!!
     [m3vpss ]  50962: CAPTURE: VIP0 PortA capture mode is [ 8-bit, Pixel-mux Embedded Sync] !!!
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 58 (58)
     [m3vpss ]  UTILS: DMA: 0 of 4: Allocated PaRAM = 58 (0x49004740)
     [m3vpss ]  UTILS: DMA: 1 of 4: Allocated PaRAM = 64 (0x49004800)
     [m3vpss ]  UTILS: DMA: 2 of 4: Allocated PaRAM = 65 (0x49004820)
     [m3vpss ]  UTILS: DMA: 3 of 4: Allocated PaRAM = 66 (0x49004840)
     [m3vpss ] CAPTURE::HEAPID:0    USED:328
     [m3vpss ] CAPTURE::HEAPID:4    USED:14321664
     [m3vpss ]  51030: CAPTURE: Create Done !!!
     [m3vpss ]  51031: NSF: Create in progress !!!

     [host] IpcFramesInLink_tskMain:Entered
     [host]  429: IPC_FRAMES_IN   : Create in progress !!!

     [host]  429: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_19] ...
     431: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_19] ...

     [host]  435: IPC_FRAMES_IN   : Create Done !!!

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

     [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:0,Size:0xBDD800
     [host] IPCBITSOUTLINK:Translated Addr Virt:0x42650080 To Phy:0x88000080###Bit buff of size from the SR # 1 : 12441600

     [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:1,Size:0xBDD800
     [host] IPCBITSOUTLINK:Translated Addr Virt:0x4322d880 To Phy:0x88bdd880###Bit buff of size from the SR # 1 : 12441600

     [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:2,Size:0xBDD800
     [host] IPCBITSOUTLINK:Translated Addr Virt:0x43e0b080 To Phy:0x897bb080###Bit buff of size from the SR # 1 : 12441600

     [host] IPC_BITSOUT:BitBuffer Alloc.PoolID:3,Size:0xBDD800
     [host] IPCBITSOUTLINK:Translated Addr Virt:0x449e8880 To Phy:0x8a398880
     [host]  437: IPC_BITS_OUT   : Create Done !!!
     [m3video]  51086: IPC_BITS_IN   : Create in progress !!!
     [m3video]  51087: SYSTEM: Opening ListMP [HOST_IPC_OUT_24] ...
     [m3vpss ] NSF::HEAPID:0        USED:128
     [m3video]  51087: SYSTEM: Opening ListMP [HOST_IPC_IN_24] ...
     [m3vpss ] NSF::HEAPID:1        USED:9152
     [m3video]  51088: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3vpss ] NSF::HEAPID:4        USED:6488064
     [m3video]  51091: IPC_BITS_IN   : Create Done !!!
     [m3vpss ]  51075: NSF: Create Done !!!
     [m3video]  51091: DECODE: Create in progress ... !!!
     [m3vpss ]  51075: IPC_FRAMES_OUT   : Create in progress !!!
     [m3vpss ]  51078: IPC_FRAMES_OUT   : Create Done !!!
     [m3video] DECLINK_H264:HEAPID:0        USED:4264
     [m3video] DECLINK_H264:HEAPID:3        USED:8937472
     [m3video]  51334: 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:8937472
     [m3video]  51530: 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:8937472
     [m3video]  51727: 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:421888
     [m3video]  51929: DECODE: Creating CH3 of 1920 x 1080 [PROGRESSIVE] [NON-TILED  ],target bitrate = 2000 Kbps ...
     [m3video]  51931: DECODE: All CH Create ... DONE !!!

     [host] IpcFramesInLink_tskMain:Entered
     [host]  1288: IPC_FRAMES_IN   : Create in progress !!!

     [host]  1288: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_19] ...
     1290: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_19] ...

     [host]  1294: IPC_FRAMES_IN   : Create Done !!!

     [host]  1294: IPC_FRAMES_OUT   : Create in progress !!!

     [host]  1296: IPC_FRAMES_OUT   : Create Done !!!
     [m3vpss ]  51945: IPC_FRAMES_IN   : Create in progress !!!
     [m3video] DECLINK:HEAPID:0     USED:11408
     [m3vpss ]  51945: SYSTEM: Opening ListMP [HOST_IPC_OUT_19] ...
     [m3video] DECLINK:HEAPID:3     USED:92262400
     [m3vpss ]  51946: SYSTEM: Opening ListMP [HOST_IPC_IN_19] ...
     [m3video]  51934: DECODE: Create ... DONE !!!
     [m3vpss ]  51948: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3video]  51934: IPC_FRAMES_OUT   : Create in progress !!!
     [m3vpss ] IPC_FRAMES_IN:HEAPID:0       USED:304
     [m3video]  51937: IPC_FRAMES_OUT   : Create Done !!!
     [m3vpss ]  51951: IPC_FRAMES_IN   : Create Done !!!
     [m3vpss ]  51951: MP_SCLR: Create in progress !!!
     [m3vpss ]  51955: MP_SCLR: Create Done !!!
     [m3vpss ]  51961: DUP   : Create Done !!!
     [m3vpss ]  51961: SWMS: Create in progress !!!
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 59 (59)
     [m3vpss ]  UTILS: DMA: 0 of 1: Allocated PaRAM = 59 (0x49004760)
     [m3vpss ] SWMS: instance 0, sc id 6, start win 0 end win 17
     [m3vpss ]  52159: SWMS    : VipScReq is TRUE!!!
     [m3vpss ]  52166: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
     [m3vpss ]  52166: SWMS0    : Loading Horizontal Co-effs (UPSCALE)x ...
     [m3vpss ]  52166: SWMS    : Co-effs Loading ... DONE !!!
     [m3vpss ]  52166: SWMS    : OutFrames List -> 2 !!!!!!!
     [m3vpss ]  52167: SWMS    : ******* Configuring clock 15 secs...
     [m3vpss ]  52167: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
     [m3vpss ]  52167: SWMS0    : Loading Horizontal Co-effs (7/16)x ...
     [m3vpss ]  52168: 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 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]
     [m3vpss ] SWMS:HEAPID:0        USED:224
     [m3vpss ] SWMS:HEAPID:1        USED:24256
     [m3vpss ]  52171: SWMS: Create Done !!!
     [m3vpss ]  52171: SWMS: Create in progress !!!
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 60 (60)
     [m3vpss ]  UTILS: DMA: 0 of 1: Allocated PaRAM = 60 (0x49004780)
     [m3vpss ] SWMS: instance 0, sc id 7, start win 0 end win 17
     [m3vpss ]  52219: SWMS    : VipScReq is TRUE!!!
     [m3vpss ]  52225: SWMS1    : Loading Vertical Co-effs (UPSCALE)x ...
     [m3vpss ]  52225: SWMS1    : Loading Horizontal Co-effs (UPSCALE)x ...
     [m3vpss ]  52226: SWMS    : Co-effs Loading ... DONE !!!
     [m3vpss ]  52226: SWMS    : OutFrames List -> 2 !!!!!!!
     [m3vpss ]  52227: SWMS    : ******* Configuring clock 15 secs...
     [m3vpss ]  52227: SWMS1    : Loading Vertical Co-effs (7/16)x ...
     [m3vpss ]  52227: SWMS1    : Loading Horizontal Co-effs (UPSCALE)x ...
     [m3vpss ]  52227: SWMS    : Co-effs Loading ... DONE !!!
     [m3vpss ]
     [m3vpss ]  *** [SWMS1] 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 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,    0 |   352 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  352,    0 |   368 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  240 |   352 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  352,  240 |   368 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]

     [host]  1585: IPC_FRAMES_OUT   : Create in progress !!!

     [host]  1587: IPC_FRAMES_OUT   : Create Done !!!
     [m3video]  52236: IPC_FRAMES_IN   : Create in progress !!!
     [m3video]  52237: SYSTEM: Opening ListMP [HOST_IPC_OUT_20] ...
     [m3vpss ] SWMS:HEAPID:0        USED:224
     [m3video]  52237: SYSTEM: Opening ListMP [HOST_IPC_IN_20] ...
     [m3vpss ] SWMS:HEAPID:1        USED:20224
     [m3vpss ]  52230: SWMS: Create Done !!!
     [m3vpss ]  52231: DISPLAY: Create in progress !!!
     [m3vpss ]  52232: DISPLAY: Create Done !!!
     [m3vpss ]  52233: DISPLAY: Create in progress !!!
     [m3vpss ]  52234: DISPLAY: Create Done !!!
     [m3video] IPC_FRAMES_IN:HEAPID:0       USED:304
     [m3video]  52241: IPC_FRAMES_IN   : Create Done !!!
     [m3video]  52242: ENCODE: Create in progress ... !!!
     [m3video]  52404: ENCODE: Creating CH0 of 1920 x 1080, pitch = (2048, 2048) [PROGRESSIVE] [NON-TILED  ], bitrate = 2000 Kbps ...
     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video] ENCLINK_H264:HEAPID:3        USED:28672
     [m3video]  52457: ENCODE: Creating CH1 of 1920 x 1080, pitch = (2048, 2048) [PROGRESSIVE] [NON-TILED  ], bitrate = 2000 Kbps ...
     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video] ENCLINK_H264:HEAPID:3        USED:28672
     [m3video]  52509: ENCODE: Creating CH2 of 1920 x 1080, pitch = (2048, 2048) [PROGRESSIVE] [NON-TILED  ], bitrate = 2000 Kbps ...
     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video]  52564: ENCODE: Creating CH3 of 1920 x 1080, pitch = (2048, 2048) [PROGRESSIVE] [NON-TILED  ], bitrate = 2000 Kbps ...

     [host] IpcBitsInLink_tskMain:Entered
     [host]  1974: IPC_BITS_IN   : Create in progress !!!

     [host]  1974: IPC_BITS_IN   : ListMPOpen start !!!

     [host]  1974: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_24] ...
     1976: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_24] ...

     [host]  1977: IPC_BITS_IN   : ListMPOpen done !!!

     [host]  1979: IPC_BITS_IN   : System_linkGetInfo done !!!

     [host]  1979: IPC_BITS_IN   : Create Done !!!
     [m3vpss ]  52629: DISPLAY: Start in progress !!!
     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video]  52618: ENCODE: All CH Create ... DONE !!!
     [m3video] ENCLINK:HEAPID:0     USED:47688
     [m3video] ENCLINK:HEAPID:2     USED:24883200
     [m3video] ENCLINK:HEAPID:3     USED:57344
     [m3video]  52619: ENCODE: Create ... DONE !!!
     [m3video]  52620: IPC_BITS_OUT   : Create in progress !!!
     [m3video]  52623: IPC_BITS_OUT   : Create Done !!!
     [m3vpss ]  52686: DISPLAY: Start Done !!!
     [m3vpss ]  52686: DISPLAY: HDDAC(BP0) : 35 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) DropCount:0 DispLatency (Min / Max) = ( 10737 / 0 ) !!!
     [m3vpss ]  52686: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 0, HDDAC(BP0) 0, DVO2(BP1) 1, SDDAC(SEC1) 1
     [m3vpss ]  52686: SYSTEM  : FREE SPACE : System Heap      = 243232 B, Mbx = 10238 msgs)
     [m3vpss ]  52687: SYSTEM  : FREE SPACE : SR0 Heap         = 2716928 B (2 MB)
     [m3vpss ]  52687: SYSTEM  : FREE SPACE : Frame Buffer     = 896 B (0 MB)
     [m3vpss ]  52687: SYSTEM  : FREE SPACE : Bitstream Buffer = 8187776 B (7 MB)
     [m3vpss ]  52687: DISPLAY: Start in progress !!!
     [m3vpss ]  52688: SYSTEM  : FREE SPACE : Tiler Buffer     = 30 B (0 MB)  - TILER OFF
     [m3vpss ]  52746: DISPLAY: Start Done !!!
     [m3vpss ]  52747: DISPLAY: SDDAC(SEC1): 16 fps, Latency (Min / Max) = ( 255 / 0 ), Callback Interval (Min / Max) = ( 255 / 0 ) DropCount:0 DispLatency (Min / Max) = ( 10737 / 0 ) !!!
     [m3vpss ]  52747: SWMS: Start in Progress !!!
     [m3vpss ]  52747: SWMS: Start Done !!!
     [m3vpss ]  52747: SWMS: Start in Progress !!!
     [m3vpss ]  52748: SWMS: Start Done !!!
     [m3vpss ]  53725: SWMS    : ******* Configuring clock 15 secs...
     [m3vpss ]  53725: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
     [m3vpss ]  53725: SWMS0    : Loading Horizontal Co-effs (7/16)x ...
     [m3vpss ]  53725: 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 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]

     [m3vpss ]  54329: SWMS    : ******* Configuring clock 15 secs...
     [m3vpss ]  54329: SWMS0    : Loading Vertical Co-effs (UPSCALE)x ...
     [m3vpss ]  54329: SWMS0    : Loading Horizontal Co-effs (7/16)x ...
     [m3vpss ]  54330: 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 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]
     [m3vpss ] AVSYNC:AVSYNC_LINK_CMD_SET_FIRST_VIDPTS successConfig:DisplayID[0],ChID[1],FirstPTS[365]

  • As I mentioned you have to invoke the stats for the correct links. Simply calling API will not work because you have not assigned link ids correctly.Invoke the stats correctly like below:

            System_linkControl(SYSTEM_LINK_ID_CAPTURE,
                                CAPTURE_LINK_CMD_PRINT_ADV_STATISTICS,
                                NULL, 0, TRUE);
    
            System_linkControl(SYSTEM_LINK_ID_NSF_0,
                                    NSF_LINK_CMD_PRINT_STATISTICS,
                                    NULL, 0, TRUE);
            System_linkControl(SYSTEM_VPSS_LINK_ID_IPC_FRAMES_OUT_0,
                                IPCFRAMESOUTRTOS_LINK_CMD_PRINT_STATISTICS,
                                NULL, 0, TRUE);
            System_linkControl(SYSTEM_LINK_ID_CAPTURE,
                                CAPTURE_LINK_CMD_PRINT_BUFFER_STATISTICS,
                                NULL, 0, TRUE);
            System_linkControl(SYSTEM_LINK_ID_NSF_0,
                                    NSF_LINK_CMD_PRINT_BUFFER_STATISTICS,
                                    NULL, 0, TRUE);
    							

  • Badri Narayanan said:

    As I mentioned you have to invoke the stats for the correct links. Simply calling API will not work because you have not assigned link ids correctly.Invoke the stats correctly like below:

            System_linkControl(SYSTEM_LINK_ID_CAPTURE,
                                CAPTURE_LINK_CMD_PRINT_ADV_STATISTICS,
                                NULL, 0, TRUE);
    
            System_linkControl(SYSTEM_LINK_ID_NSF_0,
                                    NSF_LINK_CMD_PRINT_STATISTICS,
                                    NULL, 0, TRUE);
            System_linkControl(SYSTEM_VPSS_LINK_ID_IPC_FRAMES_OUT_0,
                                IPCFRAMESOUTRTOS_LINK_CMD_PRINT_STATISTICS,
                                NULL, 0, TRUE);
            System_linkControl(SYSTEM_LINK_ID_CAPTURE,
                                CAPTURE_LINK_CMD_PRINT_BUFFER_STATISTICS,
                                NULL, 0, TRUE);
            System_linkControl(SYSTEM_LINK_ID_NSF_0,
                                    NSF_LINK_CMD_PRINT_BUFFER_STATISTICS,
                                    NULL, 0, TRUE);
    							

    I added those System_linkControl() after calling System_linkCreate(), and got similar results:

     IPCBITSOUTLINK:Buffer Statistics
     Num Alloc Pools:4
     PoolId | TotalBufCnt | FreeBufCnt | BufSize | AppAllocCount
           0|            6|          6| 2073600|            0
           1|            6|          6| 2073600|            0
           2|            6|          6| 2073600|            0
           3|            6|          6| 2073600|            0

     VDEC:Buffer Statistics
     ChId | InBufCnt | OutBufCnt
         0|         0|         0
         1|         0|         3
         2|         0|         0
         3|         0|         0
     [m3vpss ]
     [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
     [m3vpss ] 980504: SWMS: Rcvd from prev = 0, Returned to prev = 49
     [m3vpss ] SWMS Out  Buf Q Status
     [m3vpss ] Empty Q -> count 3, wrPtr 253, rdPtr 250
     [m3vpss ] Full Q -> count 1, wrPtr 250, rdPtr 249
     [m3vpss ]
     [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
     [m3vpss ] 980504: SWMS: Rcvd from prev = 0, Returned to prev = 49
     [m3vpss ] SWMS Out  Buf Q Status
     [m3vpss ] Empty Q -> count 0, wrPtr 131, rdPtr 131
     [m3vpss ] Full Q -> count 1, wrPtr 131, rdPtr 130
     [m3vpss ]
     [m3vpss ]  *** Display Statistics ***
     [m3vpss ] 980505: DISPLAY: Rcvd from prev = 249, Returned to prev = 246, BufsInDriver = 5
     [m3vpss ]
     [m3vpss ]  *** Display Statistics ***
     [m3vpss ] 980505: DISPLAY: Rcvd from prev = 130, Returned to prev = 124, BufsInDriver = 8
     [m3video]
     [m3video]  *** Encode Statistics ***
     [m3video]   981007: ENC: Rcvd from prev = 0, Returned to prev = 0
     [m3video]  ENC Out  BitBuf Q Status
     [m3video] Empty Q 0 -> count 24, wrPtr 24, rdPtr 0
     [m3video] Full Q -> count 0, wrPtr 0, rdPtr 0
     [m3vpss ]
     [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
     [m3vpss ]
     [m3vpss ]  Elasped Time: 6 secs
     [m3vpss ]
     [m3vpss ]  Output Request FPS   : 62 fps (373 frames)
     [m3vpss ]  Output Actual  FPS   : 62 fps (373 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 16 ms
     [m3vpss ]  Scaling Internal min : 16 ms
     [m3vpss ]  Scaling Internal max : 17 ms
     [m3vpss ]
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency   OutBufCopy InBufCopy
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max FPS        FPS
     [m3vpss ]  ---------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |      0     62    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         61         0
     [m3vpss ]    1 |     43     54    1    0    7          0        0 (  0/255)         0          0      0 65535 / -971242         54         0
     [m3vpss ]    2 |      0     62    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         61         0
     [m3vpss ]    3 |      0     62    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         61         0
     [m3vpss ]
     [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 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    1 |   1 |    0,    0 |  1280 x    360 |  4096 /  4096 | NON-TILED   |  960,    0 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  960,  540 |   960 x    540 |  3840 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]
     [m3vpss ]
     [m3vpss ]
     [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
     [m3vpss ]
     [m3vpss ]  Elasped Time: 7 secs
     [m3vpss ]
     [m3vpss ]  Output Request FPS   : 68 fps (480 frames)
     [m3vpss ]  Output Actual  FPS   : 31 fps (221 frames)
     [m3vpss ]  Output Drop    FPS   : 37 fps (259 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 14 ms
     [m3vpss ]  Scaling Internal min : 12 ms
     [m3vpss ]  Scaling Internal max : 18 ms
     [m3vpss ]
     [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency   OutBufCopy InBufCopy
     [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max FPS        FPS
     [m3vpss ]  ---------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |      0     31    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         31         0
     [m3vpss ]    1 |     18     26    2    0    4          0        0 (  0/255)         0          0      0 65535 / -971246         26         0
     [m3vpss ]    2 |      0     31    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         31         0
     [m3vpss ]    3 |      0     31    0    0    0          0        0 (  0/255)         0          0      0 65535 /   0         31         0
     [m3vpss ]
     [m3vpss ]
     [m3vpss ]  *** [SWMS1] 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 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,    0 |   352 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    1 |   1 |    0,    0 |  1280 x    360 |  4096 /  4096 | NON-TILED   |  352,    0 |   368 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |   OFF |
     [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  240 |   352 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  352,  240 |   368 x    240 |  1472 /      0 | NON-TILED   |       ON |    0 |  420SP |    ON |
     [m3vpss ]
     [m3vpss ]
     [m3vpss ]  983520: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 66 / 100 ), Callback Interval (Min / Max) = ( 16 / 17 ) DropCount:0 DispLatency (Min / Max) = ( 43 / 83 ) !!!
     [m3vpss ]  983520: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 437, HDDAC(BP0) 0, DVO2(BP1) 437, SDDAC(SEC1) 434
     [m3vpss ]  983521: SYSTEM  : FREE SPACE : System Heap      = 243232 B, Mbx = 10239 msgs)
     [m3vpss ]  983521: SYSTEM  : FREE SPACE : SR0 Heap         = 2716928 B (2 MB)
     [m3vpss ]  983521: SYSTEM  : FREE SPACE : Frame Buffer     = 896 B (0 MB)
     [m3vpss ]  983521: SYSTEM  : FREE SPACE : Bitstream Buffer = 8187776 B (7 MB)
     [m3vpss ]  983521: SYSTEM  : FREE SPACE : Tiler Buffer     = 30 B (0 MB)  - TILER OFF
     [m3vpss ]  983522: DISPLAY: SDDAC(SEC1): 29 fps, Latency (Min / Max) = ( 70 / 233 ), Callback Interval (Min / Max) = ( 33 / 34 ) DropCount:0 DispLatency (Min / Max) = ( 66 / 200 ) !!!
     [m3video]      987523: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :23 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :23 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :24 %
     [m3video]               totalAcq2acqDelay :75 %
     [m3video]               totalElapsedTime in msec :    1409
     [m3video]               numAccessCnt:      55
     [m3video]              IVA-FPS :      55
     [m3video]              Average time spent per frame in microsec:    5892
     [m3video]      987525: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      987525: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]
     [m3video]  *** ENCODE Statistics ***
     [m3video]
     [m3video]  Elasped Time           : 987 secs
     [m3video]
     [m3video]
     [m3video]  CH  | In Recv In Skip In User  Out Latency
     [m3video]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3video]  --------------------------------------------
     [m3video]    0 |       0       0        0   0   0 /   0
     [m3video]    1 |       0       0        0   0   0 /   0
     [m3video]    2 |       0       0        0   0   0 /   0
     [m3video]    3 |       0       0        0   0   0 /   0
     [m3video]
     [m3video] Multi Channel Encode Average Submit Batch Size
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 0
     [m3video] IVAHD_0 Max achieved Batch Size : 0
     [m3video]
     [m3video] Multi Channel Encode Batch break Stats
     [m3video] Total Number of Batches created: 0
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video]
     [m3video]  *** DECODE Statistics ***
     [m3video]
     [m3video]  Elasped Time           : 8 secs
     [m3video]
     [m3video]
     [m3video]  CH  | In Recv In User  Out
     [m3video]  Num | FPS     Skip FPS FPS
     [m3video]  -----------------------------------
     [m3video]    0 |       0        0   0
     [m3video]    1 |       7        0   6
     [m3video]    2 |       0        0   0
     [m3video]    3 |       0        0   0
     [m3video]
     [m3video] Multi Channel Decode Average Submit Batch Size
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 1
     [m3video] IVAHD_0 Max achieved Batch Size : 1
     [m3video]
     [m3video] Multi Channel Decode Batch break Stats
     [m3video] Total Number of Batches created: 54
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 100 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video]
     [m3vpss ]
     [m3vpss ]  *** [MP_SCLR0 ] Statistics ***
     [m3vpss ]
     [m3vpss ]  Total Frames Received  : 51
     [m3vpss ]  Total Frames Forwarded : 51
     [m3vpss ]
     [m3vpss ]
     [m3vpss ]  CH  | In Recv In Reject Processed  Latency(DRV) Processed  Rejected
     [m3vpss ]  Num | FPS     FPS       FPS        Min / Max    Frames     Frames
     [m3vpss ]  -------------------------------------------------------------------
     [m3vpss ]
     [m3vpss ]  989532: LOAD: CPU: 8.4% HWI: 2.5%, SWI:1.4%
     [m3vpss ]
     [m3vpss ]  989533: LOAD: TSK: DISPLAY0            : 0.9%
     [m3vpss ]  989533: LOAD: TSK: DISPLAY2            : 0.3%
     [m3vpss ]  989533: LOAD: TSK: SWMS0               : 1.8%
     [m3vpss ]  989533: LOAD: TSK: SWMS1               : 1.0%
     [m3vpss ]  989533: LOAD: TSK: MISC                : 0.5%
     [m3vpss ]
     [m3video]
     [m3video]  990034: LOAD: CPU: 10.0% HWI: 0.7%, SWI:2.2%
     [m3video]
     [m3video]  990035: LOAD: TSK: ENC0                : 4.0%
     [m3video]  990035: LOAD: TSK: DEC0                : 2.4%
     [m3video]  990035: LOAD: TSK: DEC_PROCESS_TSK_0   : 0.1%
     [m3video]  990035: LOAD: TSK: MISC                : 0.6%
     [m3video]
     [c6xdsp ]
     [c6xdsp ]  987991: LOAD: CPU: 0.2% HWI: 0.0%, SWI:0.0%
     [c6xdsp ]
     [c6xdsp ]  987991: LOAD: TSK: MISC                : 0.2%
     [c6xdsp ]

     

  • Unless you get the stats mentioned it is not possible to do any analysis.

    You are supposed to create all links, start all links and then invoke the links statictis 3 times with 1 min interval and share the logs.

    If you don't see any stats print put Vps_printf in links and check if the stats cmd is received and if so why the stats are not printed. Make sure you are using correct link ids.

  • Thanks for your suggestions!  I was also puzzled for these.

    I have checked link ids and modified code for calling apis that you suggested, but it still has no progress.  I would miss something.  Please help us!

    I threw related code on the dropbox:

    multich_vdec_vdis.c: https://db.tt/t8fwljYe
    demo_vdec_vdis.c: https://db.tt/1v7RaHbT