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.

Wer cannot get the 180 fps full HD on DM8168 as claimed

Hi,

I use the program, vdec_vdis, included in mcfw_api_demos (TI DVR RDK v3.0.0.0) to test the decoding performance of full HD. The test source is 1080p with the bitrate12Mb included in the TI's EZSDK. The test outcomes are:

1. For 3 channels of 1080P, the outcome is 60, 50, 50 fps for each channel.

2. For 6 channels of 1080P, the outcome is 30, 25, 25, 30, 25, 25 fps for each channel. 

The total frame rate for both test cases are 160fps overall. Is there anything I miss or I need to configure to get the  180 fps full HD as claimed?

  • Can you share the Vsys_printDetailedStatistics() logs. Also pls check enabling tiler improves performance.

    Tiler should be enabled in

    /dvr_rdk/mcfw/src_linux/mcfw_api/usecases/multich_vdec_vdis.c

    Set

    tilerEnable = TRUE

  • Hi,

    When I set the tilerEnable=True, the program was hanging in there. The following are the Vsys_printDetailedStatistics() logs()

    [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 29 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Actual  FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 32 ms
    [m3vpss ]  Scaling Internal max : 34 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     31     13    3    0   18          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]    1 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]    2 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]    3 |     31     13    3    0   17          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]    4 |     31     15    1    0   15          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]    5 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 29
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1280 x    720 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,    0 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  360 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    4 |   4 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  640,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    5 |   5 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 29 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Actual  FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 32 ms
    [m3vpss ]  Scaling Internal max : 35 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     31     13    3    0   18          0        0 (  0/255)         0          0      0 255 / 262881430
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 30
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1920 x   1080 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  262881456: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 16 / 37 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3vpss ]  262881456: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1800, HDDAC(BP0) 1517, DVO2(BP1) 1517, SDDAC(SEC1) 1801
    [m3vpss ]  262881457: SYSTEM  : FREE SPACE : System Heap      = 5840 B, Mbx = 10239 msgs)
    [m3vpss ]  262881457: SYSTEM  : FREE SPACE : SR0 Heap         = 11745024 B (11 MB)
    [m3vpss ]  262881457: SYSTEM  : FREE SPACE : Frame Buffer     = 19966848 B (19 MB)
    [m3vpss ]  262881457: SYSTEM  : FREE SPACE : Bitstream Buffer = 277671808 B (264 MB)
    [m3vpss ]  262881457: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF
    [m3vpss ]  262881458: DISPLAY: DVO2(BP1)  : 59 fps, Latency (Min / Max) = ( 15 / 17 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3video]      262885458: HDVICP-ID:0
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :77 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :77 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :78 %
    [m3video]               totalAcq2acqDelay :21 %
    [m3video]               totalElapsedTime in msec :   89711
    [m3video]               numAccessCnt:   54144
    [m3video]              IVA-FPS :     608
    [m3video]              Average time spent per frame in microsec:    1275
    [m3video]      262885459: HDVICP-ID:1
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :77 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :77 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :78 %
    [m3video]               totalAcq2acqDelay :21 %
    [m3video]               totalElapsedTime in msec :   89757
    [m3video]               numAccessCnt:   44940
    [m3video]              IVA-FPS :     504
    [m3video]              Average time spent per frame in microsec:    1537
    [m3video]      262885460: HDVICP-ID:2
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :77 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :77 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :78 %
    [m3video]               totalAcq2acqDelay :21 %
    [m3video]               totalElapsedTime in msec :   89755
    [m3video]               numAccessCnt:   45252
    [m3video]              IVA-FPS :     508
    [m3video]              Average time spent per frame in microsec:    1526
    [m3video]
    [m3video]  *** DECODE Statistics ***
    [m3video]
    [m3video]  Elasped Time           : 29 secs
    [m3video]
    [m3video]
    [m3video]  CH  | In Recv In User  Out
    [m3video]  Num | FPS     Skip FPS FPS
    [m3video]  -----------------------------------
    [m3video]    0 |      21        0  21
    [m3video]    1 |      17        0  17
    [m3video]    2 |      17        0  17
    [m3video]    3 |      21        0  21
    [m3video]    4 |      17        0  17
    [m3video]    5 |      17        0  17
    [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] IVAHD_1 Average Batch Size : 1
    [m3video] IVAHD_1 Max achieved Batch Size : 1
    [m3video] IVAHD_2 Average Batch Size : 1
    [m3video] IVAHD_2 Max achieved Batch Size : 1
    [m3video]
    [m3video] Multi Channel Decode Batch break Stats
    [m3video] Total Number of Batches created: 1240
    [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] Total Number of Batches created: 1016
    [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] Total Number of Batches created: 1025
    [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  : 12028
    [m3vpss ]  Total Frames Forwarded : 12028
    [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 ]  262887465: LOAD: CPU: 13.4% HWI: 4.0%, SWI:1.9%
    [m3vpss ]
    [m3vpss ]  262887465: LOAD: TSK: IPC_IN_M30          : 0.8%
    [m3vpss ]  262887465: LOAD: TSK: DISPLAY0            : 0.5%
    [m3vpss ]  262887465: LOAD: TSK: DISPLAY1            : 0.4%
    [m3vpss ]  262887465: LOAD: TSK: DUP0                : 0.7%
    [m3vpss ]  262887466: LOAD: TSK: SWMS0               : 2.1%
    [m3vpss ]  262887466: LOAD: TSK: SWMS1               : 1.7%
    [m3vpss ]  262887466: LOAD: TSK: MP_SCLR_FWD_Q0      : 0.7%
    [m3vpss ]  262887466: LOAD: TSK: MISC                : 0.6%
    [m3vpss ]
    [m3video]
    [m3video]  262887967: LOAD: CPU: 11.4% HWI: 1.2%, SWI:1.4%
    [m3video]
    [m3video]  262887967: LOAD: TSK: IPC_OUT_M30         : 1.5%
    [m3video]  262887967: LOAD: TSK: IPC_BITS_IN0        : 0.5%
    [m3video]  262887967: LOAD: TSK: DEC0                : 3.0%
    [m3video]  262887967: LOAD: TSK: DEC_PROCESS_TSK_0   : 1.0%
    [m3video]  262887967: LOAD: TSK: DEC_PROCESS_TSK_1   : 1.1%
    [m3video]  262887967: LOAD: TSK: DEC_PROCESS_TSK_2   : 1.1%
    [m3video]  262887967: LOAD: TSK: MISC                : 0.6%
     
     
     
     
     
     
    [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 29 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Actual  FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 32 ms
    [m3vpss ]  Scaling Internal max : 34 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     31     12    4    0   18          0        0 (  0/255)         0          0      0 255 / 263121302
    [m3vpss ]    1 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263121430
    [m3vpss ]    2 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263121430
    [m3vpss ]    3 |     31     12    4    0   18          0        0 (  0/255)         0          0      0 255 / 263121430
    [m3vpss ]    4 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263121430
    [m3vpss ]    5 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263121430
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 29
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1280 x    720 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,    0 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  360 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    4 |   4 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  640,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    5 |   5 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 29 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Actual  FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 32 ms
    [m3vpss ]  Scaling Internal max : 35 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     31     12    4    0   18          0        0 (  0/255)         0          0      0 255 / 263121302
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 30
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1920 x   1080 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  263121455: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 16 / 37 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3vpss ]  263121455: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1800, HDDAC(BP0) 1522, DVO2(BP1) 1522, SDDAC(SEC1) 1801
    [m3vpss ]  263121455: SYSTEM  : FREE SPACE : System Heap      = 5840 B, Mbx = 10239 msgs)
    [m3vpss ]  263121455: SYSTEM  : FREE SPACE : SR0 Heap         = 11745024 B (11 MB)
    [m3vpss ]  263121455: SYSTEM  : FREE SPACE : Frame Buffer     = 19966848 B (19 MB)
    [m3vpss ]  263121455: SYSTEM  : FREE SPACE : Bitstream Buffer = 277671808 B (264 MB)
    [m3vpss ]  263121456: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF
    [m3vpss ]  263121456: DISPLAY: DVO2(BP1)  : 59 fps, Latency (Min / Max) = ( 15 / 22 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3video]      263125456: HDVICP-ID:0
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :70 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :70 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :71 %
    [m3video]               totalAcq2acqDelay :28 %
    [m3video]               totalElapsedTime in msec :  329719
    [m3video]               numAccessCnt:  178836
    [m3video]              IVA-FPS :     543
    [m3video]              Average time spent per frame in microsec:    1290
    [m3video]      263125457: HDVICP-ID:1
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :70 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :70 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :71 %
    [m3video]               totalAcq2acqDelay :28 %
    [m3video]               totalElapsedTime in msec :  329746
    [m3video]               numAccessCnt:  144972
    [m3video]              IVA-FPS :     440
    [m3video]              Average time spent per frame in microsec:    1591
    [m3video]      263125458: HDVICP-ID:2
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :70 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :70 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :71 %
    [m3video]               totalAcq2acqDelay :28 %
    [m3video]               totalElapsedTime in msec :  329755
    [m3video]               numAccessCnt:  146064
    [m3video]              IVA-FPS :     443
    [m3video]              Average time spent per frame in microsec:    1579
    [m3video]
    [m3video]  *** DECODE Statistics ***
    [m3video]
    [m3video]  Elasped Time           : 29 secs
    [m3video]
    [m3video]
    [m3video]  CH  | In Recv In User  Out
    [m3video]  Num | FPS     Skip FPS FPS
    [m3video]  -----------------------------------
    [m3video]    0 |      23        0  23
    [m3video]    1 |      17        0  17
    [m3video]    2 |      17        0  17
    [m3video]    3 |      23        0  23
    [m3video]    4 |      17        0  17
    [m3video]    5 |      17        0  17
    [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] IVAHD_1 Average Batch Size : 1
    [m3video] IVAHD_1 Max achieved Batch Size : 1
    [m3video] IVAHD_2 Average Batch Size : 1
    [m3video] IVAHD_2 Max achieved Batch Size : 1
    [m3video]
    [m3video] Multi Channel Decode Batch break Stats
    [m3video] Total Number of Batches created: 1350
    [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] Total Number of Batches created: 1011
    [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] Total Number of Batches created: 1020
    [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  : 39156
    [m3vpss ]  Total Frames Forwarded : 39156
    [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 ]  263127484: LOAD: CPU: 12.9% HWI: 3.8%, SWI:1.8%
    [m3vpss ]
    [m3vpss ]  263127484: LOAD: TSK: IPC_IN_M30          : 0.8%
    [m3vpss ]  263127484: LOAD: TSK: DISPLAY0            : 0.5%
    [m3vpss ]  263127484: LOAD: TSK: DISPLAY1            : 0.3%
    [m3vpss ]  263127484: LOAD: TSK: DUP0                : 0.7%
    [m3vpss ]  263127484: LOAD: TSK: SWMS0               : 2.1%
    [m3vpss ]  263127484: LOAD: TSK: SWMS1               : 1.7%
    [m3vpss ]  263127484: LOAD: TSK: MP_SCLR_FWD_Q0      : 0.6%
    [m3vpss ]  263127485: LOAD: TSK: MISC                : 0.6%
    [m3vpss ]
    [m3video]
    [m3video]  263127985: LOAD: CPU: 11.1% HWI: 1.2%, SWI:1.4%
    [m3video]
    [m3video]  263127985: LOAD: TSK: IPC_OUT_M30         : 1.4%
    [m3video]  263127986: LOAD: TSK: IPC_BITS_IN0        : 0.5%
    [m3video]  263127986: LOAD: TSK: DEC0                : 2.9%
    [m3video]  263127986: LOAD: TSK: DEC_PROCESS_TSK_0   : 1.1%
    [m3video]  263127986: LOAD: TSK: DEC_PROCESS_TSK_1   : 1.1%
    [m3video]  263127986: LOAD: TSK: DEC_PROCESS_TSK_2   : 1.1%
    [m3video]  263127986: LOAD: TSK: MISC                : 0.4%
     
     
     
     
     
    [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 29 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Actual  FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 32 ms
    [m3vpss ]  Scaling Internal max : 34 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     31     12    5    0   18          0        0 (  0/255)         0          0      0 255 / 263419597
    [m3vpss ]    1 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263421430
    [m3vpss ]    2 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263421430
    [m3vpss ]    3 |     31     13    5    0   17          0        0 (  0/255)         0          0      0 255 / 263421430
    [m3vpss ]    4 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263421430
    [m3vpss ]    5 |     31     15    2    0   15          0        0 (  0/255)         0          0      0 255 / 263421422
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 29
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1280 x    720 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,    0 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  360 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    4 |   4 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  640,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    5 |   5 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 29 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Actual  FPS   : 31 fps (900 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 32 ms
    [m3vpss ]  Scaling Internal max : 35 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     31     12    5    0   18          0        0 (  0/255)         0          0      0 255 / 263419598
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 30
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1920 x   1080 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  263421459: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 16 / 36 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3vpss ]  263421459: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1799, HDDAC(BP0) 1517, DVO2(BP1) 1517, SDDAC(SEC1) 1801
    [m3vpss ]  263421460: SYSTEM  : FREE SPACE : System Heap      = 5840 B, Mbx = 10239 msgs)
    [m3vpss ]  263421460: SYSTEM  : FREE SPACE : SR0 Heap         = 11745024 B (11 MB)
    [m3vpss ]  263421460: SYSTEM  : FREE SPACE : Frame Buffer     = 19966848 B (19 MB)
    [m3vpss ]  263421460: SYSTEM  : FREE SPACE : Bitstream Buffer = 277671808 B (264 MB)
    [m3vpss ]  263421460: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF
    [m3vpss ]  263421461: DISPLAY: DVO2(BP1)  : 59 fps, Latency (Min / Max) = ( 15 / 17 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3video]      263425461: HDVICP-ID:0
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :68 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :68 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :69 %
    [m3video]               totalAcq2acqDelay :30 %
    [m3video]               totalElapsedTime in msec :  629717
    [m3video]               numAccessCnt:  333660
    [m3video]              IVA-FPS :     530
    [m3video]              Average time spent per frame in microsec:    1283
    [m3video]      263425462: HDVICP-ID:1
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :68 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :68 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :69 %
    [m3video]               totalAcq2acqDelay :30 %
    [m3video]               totalElapsedTime in msec :  629770
    [m3video]               numAccessCnt:  272508
    [m3video]              IVA-FPS :     433
    [m3video]              Average time spent per frame in microsec:    1571
    [m3video]      263425463: HDVICP-ID:2
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :68 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :68 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :69 %
    [m3video]               totalAcq2acqDelay :30 %
    [m3video]               totalElapsedTime in msec :  629764
    [m3video]               numAccessCnt:  274416
    [m3video]              IVA-FPS :     436
    [m3video]              Average time spent per frame in microsec:    1559
    [m3video]
    [m3video]  *** DECODE Statistics ***
    [m3video]
    [m3video]  Elasped Time           : 29 secs
    [m3video]
    [m3video]
    [m3video]  CH  | In Recv In User  Out
    [m3video]  Num | FPS     Skip FPS FPS
    [m3video]  -----------------------------------
    [m3video]    0 |      23        0  23
    [m3video]    1 |      18        0  18
    [m3video]    2 |      18        0  18
    [m3video]    3 |      23        0  23
    [m3video]    4 |      18        0  18
    [m3video]    5 |      18        0  18
    [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] IVAHD_1 Average Batch Size : 1
    [m3video] IVAHD_1 Max achieved Batch Size : 1
    [m3video] IVAHD_2 Average Batch Size : 1
    [m3video] IVAHD_2 Max achieved Batch Size : 1
    [m3video]
    [m3video] Multi Channel Decode Batch break Stats
    [m3video] Total Number of Batches created: 1354
    [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] Total Number of Batches created: 1052
    [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] Total Number of Batches created: 1056
    [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  : 73382
    [m3vpss ]  Total Frames Forwarded : 73382
    [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 ]  263427468: LOAD: CPU: 12.9% HWI: 3.8%, SWI:1.8%
    [m3vpss ]
    [m3vpss ]  263427468: LOAD: TSK: IPC_IN_M30          : 0.8%
    [m3vpss ]  263427468: LOAD: TSK: DISPLAY0            : 0.5%
    [m3vpss ]  263427468: LOAD: TSK: DISPLAY1            : 0.3%
    [m3vpss ]  263427468: LOAD: TSK: DUP0                : 0.7%
    [m3vpss ]  263427468: LOAD: TSK: SWMS0               : 2.1%
    [m3vpss ]  263427468: LOAD: TSK: SWMS1               : 1.7%
    [m3vpss ]  263427469: LOAD: TSK: MP_SCLR_FWD_Q0      : 0.6%
    [m3vpss ]  263427469: LOAD: TSK: MISC                : 0.6%
    [m3vpss ]
    [m3video]
    [m3video]  263427969: LOAD: CPU: 11.2% HWI: 1.2%, SWI:1.4%
    [m3video]
    [m3video]  263427969: LOAD: TSK: IPC_OUT_M30         : 1.4%
    [m3video]  263427970: LOAD: TSK: IPC_BITS_IN0        : 0.5%
    [m3video]  263427970: LOAD: TSK: DEC0                : 2.9%
    [m3video]  263427970: LOAD: TSK: DEC_PROCESS_TSK_0   : 1.1%
    [m3video]  263427970: LOAD: TSK: DEC_PROCESS_TSK_1   : 1.1%
    [m3video]  263427970: LOAD: TSK: DEC_PROCESS_TSK_2   : 1.1%
    [m3video]  263427970: LOAD: TSK: MISC                : 0.5%
    [m3video]



  • The totalAcq2acqDelay :30 % .This indicates data is not being fed to mcfw in timely fashion. This may be due to delay in file read time of 1080P stream. Is your file on network or local storage ? Also can you try changing

    /dvr_rdk/demos/mcfw_api_demos/mcfw_demo/demo_vdec_vdis_bits_rd.c

    VdecVdis_bitsRdSendFxn()

    {

        OSA_waitMsecs(MCFW_IPCBITS_SENDFXN_PERIOD_MS);

        to

        OSA_waitMsecs(8);

    }

    and check if there is any performance improvement

     

  • Hi,

    We have already set  

    #define VDEC_VDIS_FRAME_DURATION_MS ( 8 )

    OSA_waitMsecs(6);  

    in 6 channels of 1080P30 performance test. The testing file is on local storage NFS developing environment. I think the delay in my print out you mentioned is caused by the terminal print out. Apparently, the original frame rate  for each channel is 30, 25, 25, 30, 25, 25 fps. After enable the print out, the frame rate down to 20, 16, 16, 20, 16,16fps per each channel. Is there other thing we could check?

  • There is very less chance that terminal print is causing delay. It looks like you are not feeding data fast enough . Are you setting the frame timestamp fed to the mcfw by any chance. Try with local storage (SATA) and check if there is any improvement.Pls share the elementary .h264 stream if possible and we will try it on our local setup to confirm it is not performance issue.

  • Hi,

    We have done the test again and we fount that indeed Vsys_printDetailedStatistics() delayed the decode and display. Hopefully, since we make the call every 30 seconds and for the every first time, the print out is accurate without the delay. I repost the print out again as follows. We also share the .h264 test file here https://docs.google.com/open?id=0B0699GGnR-MpNWFDaTBPVzJtdjQ.

    1 ch: 71.5
    2 ch: 69, 70.5
    3 ch: 60, 50, 50
    4 ch: 32, 49, 49, 32
    5 ch: 31, 25, 48, 31, 25
    6 ch: 30, 25, 25, 30, 25, 25
     
    [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 31 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 30 fps (943 frames)
    [m3vpss ]  Output Actual  FPS   : 30 fps (943 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 22 ms
    [m3vpss ]  Scaling Internal max : 154 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     30      4    6    0   25          0        0 (  0/255)         0          0      0 255 / 64049482
    [m3vpss ]    1 |     30      7    5    0   22          0        0 (  0/255)         0          0      0 255 / 64049354
    [m3vpss ]    2 |     30      8    6    0   22          0        0 (  0/255)         0          0      0 255 / 64049482
    [m3vpss ]    3 |     30      5    7    0   25          0        0 (  0/255)         0          0      0 255 / 64049474
    [m3vpss ]    4 |     30      7    5    0   22          0        0 (  0/255)         0          0      0 255 / 64049354
    [m3vpss ]    5 |     30      8    6    0   21          0        0 (  0/255)         0          0      0 255 / 64049482
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 29
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1280 x    720 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]    1 |   1 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,    0 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    2 |   2 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  360 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    3 |   3 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |    0,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    4 |   4 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   |  640,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]    5 |   5 |    0,    0 |  1920 x    540 |  4096 /  4096 | NON-TILED   | 1280,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
    [m3vpss ]
    [m3vpss ]  Elasped Time: 31 secs
    [m3vpss ]
    [m3vpss ]  Output Request FPS   : 30 fps (943 frames)
    [m3vpss ]  Output Actual  FPS   : 30 fps (943 frames)
    [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
    [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
    [m3vpss ]  Scaling Internal     : 33 ms
    [m3vpss ]  Scaling Internal min : 23 ms
    [m3vpss ]  Scaling Internal max : 143 ms
    [m3vpss ]
    [m3vpss ]  Win | Window Repeat Drop Recv Que  FID Invlid Acc Event          Invalid   Que Reject Reject Latency
    [m3vpss ]  Num | FPS    FPS    FPS  FPS  FPS  FPS        Count (Max/Min)    CH Frames Frames     Frames Min / Max
    [m3vpss ]  ------------------------------------------------------------------------------------------------------
    [m3vpss ]    0 |     30      4    6    0   25          0        0 (  0/255)         0          0      0 255 / 64049482
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  *** [SWMS1] Mosaic Parameters ***
    [m3vpss ]
    [m3vpss ]  Output FPS: 30
    [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   1080 |  2048 /  2048 | NON-TILED   |    0,    0 |  1920 x   1080 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
    [m3vpss ]
    [m3vpss ]
    [m3vpss ]  64049501: DISPLAY: HDDAC(BP0) : 59 fps, Latency (Min / Max) = ( 16 / 166 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3vpss ]  64049501: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 1906, HDDAC(BP0) 1908, DVO2(BP1) 1908, SDDAC(SEC1) 1908
    [m3vpss ]  64049501: SYSTEM  : FREE SPACE : System Heap      = 5840 B, Mbx = 10239 msgs)
    [m3vpss ]  64049501: SYSTEM  : FREE SPACE : SR0 Heap         = 11780224 B (11 MB)
    [m3vpss ]  64049501: SYSTEM  : FREE SPACE : Frame Buffer     = 19966848 B (19 MB)
    [m3vpss ]  64049501: SYSTEM  : FREE SPACE : Bitstream Buffer = 277671808 B (264 MB)
    [m3vpss ]  64049502: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF
    [m3vpss ]  64049502: DISPLAY: DVO2(BP1)  : 59 fps, Latency (Min / Max) = ( 15 / 149 ), Callback Interval (Min / Max) = ( 16 / 17 ) !!!
    [m3video]      64053503: HDVICP-ID:0
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :97 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :97 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :98 %
    [m3video]               totalAcq2acqDelay :1 %
    [m3video]               totalElapsedTime in msec :   29832
    [m3video]               numAccessCnt:   24156
    [m3video]              IVA-FPS :     832
    [m3video]              Average time spent per frame in microsec:    1196
    [m3video]      64053503: HDVICP-ID:1
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :97 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :97 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :98 %
    [m3video]               totalAcq2acqDelay :1 %
    [m3video]               totalElapsedTime in msec :   29866
    [m3video]               numAccessCnt:   20880
    [m3video]              IVA-FPS :     720
    [m3video]              Average time spent per frame in microsec:    1387
    [m3video]      64053504: HDVICP-ID:2
    [m3video] All percentage figures are based off totalElapsedTime
    [m3video]               totalAcquire2wait :0 %
    [m3video]               totalWait2Isr :96 %
    [m3video]               totalIsr2Done :0 %
    [m3video]               totalWait2Done :97 %
    [m3video]               totalDone2Release :0 %
    [m3video]               totalAcquire2Release :98 %
    [m3video]               totalAcq2acqDelay :1 %
    [m3video]               totalElapsedTime in msec :   29865
    [m3video]               numAccessCnt:   20988
    [m3video]              IVA-FPS :     723
    [m3video]              Average time spent per frame in microsec:    1365
    [m3video]
    [m3video]  *** DECODE Statistics ***
    [m3video]
    [m3video]  Elasped Time           : 35 secs
    [m3video]
    [m3video]
    [m3video]  CH  | In Recv In User  Out
    [m3video]  Num | FPS     Skip FPS FPS
    [m3video]  -----------------------------------
    [m3video]    0 |      28        0  28
    [m3video]    1 |      24        0  24
    [m3video]    2 |      25        0  25
    [m3video]    3 |      28        0  28
    [m3video]    4 |      24        0  24
    [m3video]    5 |      24        0  24
    [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] IVAHD_1 Average Batch Size : 1
    [m3video] IVAHD_1 Max achieved Batch Size : 1
    [m3video] IVAHD_2 Average Batch Size : 1
    [m3video] IVAHD_2 Max achieved Batch Size : 1
    [m3video]
    [m3video] Multi Channel Decode Batch break Stats
    [m3video] Total Number of Batches created: 2011
    [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] Total Number of Batches created: 1738
    [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] Total Number of Batches created: 1747
    [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  : 5502
    [m3vpss ]  Total Frames Forwarded : 5502
    [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 ]  64055509: LOAD: CPU: 14.0% HWI: 3.9%, SWI:1.8%
    [m3vpss ]
    [m3vpss ]  64055509: LOAD: TSK: IPC_IN_M30          : 1.0%
    [m3vpss ]  64055509: LOAD: TSK: DISPLAY0            : 0.5%
    [m3vpss ]  64055509: LOAD: TSK: DISPLAY1            : 0.4%
    [m3vpss ]  64055509: LOAD: TSK: DUP0                : 0.9%
    [m3vpss ]  64055509: LOAD: TSK: SWMS0               : 2.3%
    [m3vpss ]  64055510: LOAD: TSK: SWMS1               : 1.9%
    [m3vpss ]  64055510: LOAD: TSK: MP_SCLR_FWD_Q0      : 0.8%
    [m3vpss ]  64055510: LOAD: TSK: MISC                : 0.5%
    [m3vpss ]
    [m3video]
    [m3video]  64056010: LOAD: CPU: 12.6% HWI: 1.2%, SWI:1.4%
    [m3video]
    [m3video]  64056011: LOAD: TSK: IPC_OUT_M30         : 1.6%
    [m3video]  64056011: LOAD: TSK: IPC_BITS_IN0        : 0.5%
    [m3video]  64056011: LOAD: TSK: DEC0                : 3.4%
    [m3video]  64056011: LOAD: TSK: DEC_PROCESS_TSK_0   : 14.0%
    [m3video]  64056011: LOAD: TSK: DEC_PROCESS_TSK_1   : 15.2%
    [m3video]  64056011: LOAD: TSK: DEC_PROCESS_TSK_2   : 13.8%
    [m3video]  64056011: LOAD: TSK: MISC                : -38.-5%


  • We tried the stream in our setup and we are able to get full FPS.Pls try out the below changes and let us know under what condition you get full fps:

    1. Set displayDelay = 2

    2. Set decoder numBufsPerCh = 8

      -- Above two should be set in the ini file if you are using the vdec_vdis mcfw demo.

    3. Disable avsync in

    /dvr_rdk/mcfw/src_linux/mcfw_api/usecases/multich_vdec_vdis.c

    mulich_vdec_vdis_set_avsync_vidque_prm()

    if ((queCfg->chNum >= avsStartChNum)
            &&
            (queCfg->chNum <= avsEndChNum)
            &&
            (gVsysModuleContext.vsysConfig.enableAVsync))
        {
            queCfg->avsyncEnable = FALSE;
        }
        else
        {
            queCfg->avsyncEnable = FALSE;
        }

    4. Set number of scalers as one per three windows:

    /dvr_rdk/mcfw/src_linux/mcfw_api/usecases/multich_vdec_vdis.c

    Void MultiCh_createVdecVdis()

     -- Change

        swMsPrm[0].swMsInstStartWin[0]  = 0;
        swMsPrm[0].swMsInstStartWin[1]  = 4;

    to

        swMsPrm[0].swMsInstStartWin[0]  = 0;
        swMsPrm[0].swMsInstStartWin[1]  = 3;

    5. Try with 1x1 window layout.

    6. Feed data from local storage SATA instead of from NFS.

    Based on which step gives full fps we can debug further on why we dont get full fps on your setup.

    mulich_vdec_vdis_set_avsync_vidque_prm

  • Hi,

    The following are the testing result:

    The original frame rate for 6 channels are 31.7750, 25.6417, 25.8083, 31.9750, 25.6250, 25.8000

    The results applied your recommendation from 1 to 5:

    1. 31.7833 25.6250 25.8750 31.5750 25.3417 25.4833
    2. 31.7417 25.5167 25.6917 31.7500 25.5083 25.7250
    3. 29.8417 25.2750 25.4417 29.8583 25.0500 25.3083
    4. 29.8167 25.2583 25.4500 29.8333 25.1417 25.4333
    5. 29.7833 26.1750 26.4500 34.9250 26.2083 26.4500
    Currently, I don't have SATA with me. I will do the SATA test later.
    Also, I want to give you some more information which might help to find out the problem.
    The board we are testing on is from Z3. We have the clock problem in the previous post, http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/223766/787758.aspx. Now the clock is set to 280 instead of 250. 
    Thanks!
  • Can you share the multich_vdec_vdis.c in your codebase. I want to make changes to enable tiler and get it working. I want to check if issue is with input data feeding rate or due to DDR b/w.Tiler usage will reduce DDR b/w

  • Hi,

    The file is here

    https://docs.google.com/open?id=0B0699GGnR-MpemRUSWhEV1RoMm8

     I noticed that the DDR of the Z3 board is 1300 other than 1600. I am not sure is that the problem or not.

    Thanks!

  • DDR should be set for 796 Mhz.Full performance cannot be reached at lower frequency. Can you pls share the log after correcting the DDR frequency

  • Hi,

    We have found where the problem is. The DDR on the board we got from z3 is 1333 MHz. Therefore the DDR frequency is set to 675. That's why we could not get the full power. 

    Thanks!