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.

DVRRDK_01.09.00.16 can not reach the 30fps at video decode + video display demo

Dear all,

Our application is for NVR. So, I use the DM8168EVM to test the 6 channels H264 1080P files at video decode + video display demo on latest DVRRDK_01_09_00_16. Unfortunately, the frame rate only can get the 25fps not 30fps. Can TI provide any patch to reach this goal? The detail information is as following. Thanks in advance.

=============
 Run-Time Menu
 =============

 1: Capture Settings
 2: Encode  Settings
 3: Decode  Settings
 4: Display Settings
 5: Audio   Settings

 i: Print detailed system information

 e: Stop Demo

 Enter Choice: i
 [m3vpss ]  
 [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
 [m3vpss ]  
 [m3vpss ]  Elasped Time: 54 secs
 [m3vpss ]  
 [m3vpss ]  Output Request FPS   : 31 fps (1702 frames)
 [m3vpss ]  Output Actual  FPS   : 31 fps (1702 frames)
 [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
 [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
 [m3vpss ]  Scaling Internal     : 32 ms
 [m3vpss ]  Scaling Internal min : 31 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 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83436
 [m3vpss ]    1 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83203
 [m3vpss ]    2 |     25      6    0   25   25          0        0 (  0/255)         0          0      0 255 / 83142
 [m3vpss ]    3 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83170
 [m3vpss ]    4 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83354
 [m3vpss ]    5 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83569
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  *** [SWMS0] Mosaic Parameters ***
 [m3vpss ]  
 [m3vpss ]  Output FPS: 30
 [m3vpss ]  
 [m3vpss ]  Win | Ch  | Input      | Input          | Input         | Input       | Output     |  Output         | Output        | Output      | Low Cost | SWMS | Data  |
 [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|
 [m3vpss ]  --------------------------------------------------------------------------------------------------------------------------------------------------------------
 [m3vpss ]    0 |   0 |    0,   24 |  1920 x   1112 |  2048 /  2048 | NON-TILED   |    0,    0 |  1280 x    720 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |
 [m3vpss ]    1 |   1 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   | 1280,    0 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    2 |   2 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   | 1280,  360 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    3 |   3 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   |    0,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    4 |   4 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   |  640,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    5 |   5 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   | 1280,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
 [m3vpss ]  
 [m3vpss ]  Elasped Time: 54 secs
 [m3vpss ]  
 [m3vpss ]  Output Request FPS   : 31 fps (1702 frames)
 [m3vpss ]  Output Actual  FPS   : 31 fps (1702 frames)
 [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
 [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
 [m3vpss ]  Scaling Internal     : 32 ms
 [m3vpss ]  Scaling Internal min : 30 ms
 [m3vpss ]  Scaling Internal max : 36 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 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83425
 [m3vpss ]    1 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83254
 [m3vpss ]    2 |     25      6    0   25   25          0        0 (  0/255)         0          0      0 255 / 83188
 [m3vpss ]    3 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83163
 [m3vpss ]    4 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83373
 [m3vpss ]    5 |     24      6    0   24   24          0        0 (  0/255)         0          0      0 255 / 83585
 [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  |
 [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|
 [m3vpss ]  --------------------------------------------------------------------------------------------------------------------------------------------------------------
 [m3vpss ]    0 |   0 |    0,   24 |  1920 x   1112 |  2048 /  2048 | NON-TILED   |    0,    0 |  1280 x    720 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |
 [m3vpss ]    1 |   1 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   | 1280,    0 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    2 |   2 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   | 1280,  360 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    3 |   3 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   |    0,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    4 |   4 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   |  640,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]    5 |   5 |    0,   12 |  1920 x    556 |  4096 /  4096 | NON-TILED   | 1280,  720 |   640 x    360 |  3840 /      0 | NON-TILED   |      ON  |    0 |  420SP |
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  157283: DISPLAY: HDDAC(BP0) : 60 fps, Latency (Min / Max) = ( 31 / 53 ), Callback Interval (Min / Max) = ( 15 / 18 ) !!!
 [m3vpss ]  157284: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 3329, HDDAC(BP0) 3329, DVO2(BP1) 3329, SDDAC(SEC1) 3330
 [m3vpss ]  157284: SYSTEM  : Heap Free Space (System = 20184 bytes, SR0 = 14614912 bytes, FrmBuf = 318815104 bytes,
 [m3vpss ]          BitBuf = 18673536 bytes, Mbx = 10236 msgs)
 [m3vpss ]  157288: DISPLAY: DVO2(BP1)  : 55 fps, Latency (Min / Max) = ( 31 / 71 ), Callback Interval (Min / Max) = ( 0 / 43 ) !!!
 [m3video]     159462: HDVICP-ID:0
 [m3video]         totalAcquire2wait in msec: 6505390
 [m3video]         totalWait2Isr in msec:   70880
 [m3video]         totalIsr2Done in msec:     112
 [m3video]         totalWait2Done in msec:   70992
 [m3video]         totalDone2Release in msec:       0
 [m3video]         totalAcquire2Release in msec:   71936
 [m3video]         totalAcq2acqDelay in msec:   20124
 [m3video]         totalElapsedTime in msec:   92058
 [m3video]         numAccessCnt:    4593
 [m3video]         IVA-FPS :      49
 [m3video]     159463: HDVICP-ID:1
 [m3video]         totalAcquire2wait in msec: 6510081
 [m3video]         totalWait2Isr in msec:   82807
 [m3video]         totalIsr2Done in msec:     143
 [m3video]         totalWait2Done in msec:   82950
 [m3video]         totalDone2Release in msec:       0
 [m3video]         totalAcquire2Release in msec:   84785
 [m3video]         totalAcq2acqDelay in msec:    7279
 [m3video]         totalElapsedTime in msec:   92064
 [m3video]         numAccessCnt:    4596
 [m3video]         IVA-FPS :      49
 [m3video]     159466: HDVICP-ID:2
 [m3video]         totalAcquire2wait in msec: 6498816
 [m3video]         totalWait2Isr in msec:   77181
 [m3video]         totalIsr2Done in msec:     203
 [m3video]         totalWait2Done in msec:   77384
 [m3video]         totalDone2Release in msec:       0
 [m3video]         totalAcquire2Release in msec:   79345
 [m3video]         totalAcq2acqDelay in msec:   12731
 [m3video]         totalElapsedTime in msec:   92076
 [m3video]         numAccessCnt:    4588
 [m3video]         IVA-FPS :      49
 [m3video]  
 [m3video]  *** DECODE Statistics ***
 [m3video]  
 [m3video]  Elasped Time           : 54 secs
 [m3video]  
 [m3video]  
 [m3video]  CH  | In Recv In User  Out
 [m3video]  Num | FPS     Skip FPS FPS
 [m3video]  -----------------------------------
 [m3video]    0 |      24        0  24
 [m3video]    1 |      24        0  24
 [m3video]    2 |      24        0  24
 [m3video]    3 |      24        0  24
 [m3video]    4 |      24        0  24
 [m3video]    5 |      24        0  24
 [m3video]  
 [m3vpss ]  
 [m3vpss ]  161446: LOAD: CPU: 27% HWI: 6%, SWI:1%
 [m3vpss ]  
 [m3vpss ]  161447: LOAD: TSK: IPC_IN_M30: 3%
 [m3vpss ]  161447: LOAD: TSK: DISPLAY0: 1%
 [m3vpss ]  161447: LOAD: TSK: DISPLAY1: 1%
 [m3vpss ]  161448: LOAD: TSK: DUP0: 2%
 [m3vpss ]  161448: LOAD: TSK: SWMS0: 4%
 [m3vpss ]  161448: LOAD: TSK: SWMS1: 4%
 [m3vpss ]  
 [m3video]  
 [m3video]  161948: LOAD: CPU: 25% HWI: 2%, SWI:2%
 [m3video]  
 [m3video]  161948: LOAD: TSK: IPC_OUT_M30: 3%
 [m3video]  161948: LOAD: TSK: IPC_BITS_IN0: 2%
 [m3video]  161950: LOAD: TSK: DEC0   : 6%
 [m3video]  161950: LOAD: TSK: DEC_PROCESS_TSK_0 : 1%
 [m3video]  161951: LOAD: TSK: DEC_PROCESS_TSK_1 : 2%
 [m3video]  161951: LOAD: TSK: DEC_PROCESS_TSK_2 : 3%
 [m3video]  
 [c6xdsp ]  
 [c6xdsp ]  164368: LOAD: CPU: 1% HWI: 0%, SWI:0%
 [c6xdsp ]  
 [c6xdsp ] 

B.R.

OC

  • Dear all,

    I restore the source code to the original one and just modify the multich_vdec_vdis.c like below. Then I can get the 30FPS.

    //////////////////////////////////////////////////////////////////////////////////////////

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

    //////////////////////////////////////////////////////////////////////////////////////////

    But the frame rate has serious fluctuation, I want to ask how add the buffer to control the frame rate that will keep the 30fps on the each channels. It want to let the video look smoothly. Can TI provide a patch file to let me know that?

    Thanks in advance.

    B.R.

    OC

  • Hi,

    Looks like you are able to get the 30fps with the right configuration of the two SC instances in SWMs. Can you please share the same statistics log after your changes?

    Regards,

    Anshuman