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.

The dvrrdk_03.00.00.00 VDec+VDis demo has error ?

Hi all

      I have several h264 file. TheVDec+VDis demo of  dvrrdk_02.80.00.10 can decode them correctly, but the VDec+VDis demo  of dvrrdk_03.00.00.00  can't decode them.  There are no error message , after decode the first several NALs, the demo stall.   How to fix the problem?

 

     Eric

  • Can you share the log of "i" when you see the stall. Also pls share the .264 file so that we can try it here if possible.

  • Hi Badri Narayanan

           

     Enter Choice: i
     
     
     [m3vpss ] 
     [m3vpss ]  *** [SWMS0] Mosaic Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time: 48 secs
     [m3vpss ] 
     [m3vpss ]  Output Request FPS   : 34 fps (1648 frames)
     [m3vpss ]  Output Actual  FPS   : 34 fps (1648 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 29 ms
     [m3vpss ]  Scaling Internal min : 25 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 |     34     33    0    0    0          0        0 (  0/255)         0          0      0 255 / 83567
     [m3vpss ]    1 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    2 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    3 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    4 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    5 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    6 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [m3vpss ]    7 |      0      0    0    0    0          0        0 (  0/255)         0          0      0 255 /   0
     [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    812 |  2048 /  2048 | NON-TILED   |    0,    0 |   736 x    500 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
     [m3vpss ]    1 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   |  736,    0 |   736 x    500 |  3840 /      0 | NON-TILED   |      OFF |    0 |  422I  |   ON  |
     [m3vpss ]    2 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   |    0,  500 |   736 x    500 |  3840 /      0 | NON-TILED   |      OFF |    0 |  422I  |   ON  |
     [m3vpss ]    3 | 255 |    0,    0 |   352 x    264 |   704 /   704 | NON-TILED   |  736,  500 |   736 x    500 |  3840 /      0 | NON-TILED   |      OFF |    0 |  422I  |   ON  |
     [m3vpss ]    4 | 255 |    0,    0 |   352 x  32 |  1408 /  1408 | NON-TILED   | 1472,    0 |   368 x    250 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |   ON  |
     [m3vpss ]    5 | 255 |    0,    0 |   352 x    132 |  1408 /  1408 | NON-TILED   | 1472,  250 |   368 x    250 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |   ON  |
     [m3vpss ]    6 | 255 |    0,    0 |   352 x    132 |  1408 /  1408 | NON-TILED   | 1472,  500 |   368 x    250 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |   ON  |
     [m3vpss ]    7 | 255 |    0,    0 |   352 x    132 |  1408 /  1408 | NON-TILED   | 1472,  750 |   368 x    250 |  3840 /      0 | NON-TILED   |      ON  |    0 |  422I  |   ON  |
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  *** [SWMS1] Mosaic Statistics ***
     [m3vpss ] 
     [m3vpss ]  Elasped Time: 48 secs
     [m3vpss ] 
     [m3vpss ]  Output Request FPS   : 34 fps (1648 frames)
     [m3vpss ]  Output Actual  FPS   : 34 fps (1648 frames)
     [m3vpss ]  Output Drop    FPS   : 0 fps (0 frames)
     [m3vpss ]  Output Reject  FPS   : 0 fps (0 frames)
     [m3vpss ]  Scaling Internal     : 29 ms
     [m3vpss ]  Scaling Internal min : 29 ms
     [m3vpss ]  Scaling Internal max : 30 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 |     34     33    0    0    0          0        0 (  0/255)         0          0      0 255 / 83571
     [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    812 |  2048 /  2048 | NON-TILED   |    0,    0 |  1920 x   1080 |  3840 /      0 | NON-TILED   |      OFF |    0 |  420SP |   OFF |
     [m3vpss ] 
     [m3vpss ] 
     [m3vpss ]  83585: DISPLAY: HDDAC(BP0) : 68 fps, Latency (Min / Max) = ( 14 / 44 ), Callback Interval (Min / Max) = ( 14 / 15 ) !!!
     [m3vpss ]  83585: DISPLAY: UNDERFLOW COUNT: HDMI(BP0) 3302, HDDAC(BP0) 3304, DVO2(BP1) 3304, SDDAC(SEC1) 3304
     [m3vpss ]  83585: SYSTEM  : FREE SPACE : System Heap      = 5792 B, Mbx = 10239 msgs)
     [m3vpss ]  83585: SYSTEM  : FREE SPACE : SR0 Heap         = 11003648 B (10 MB)
     [m3vpss ]  83585: SYSTEM  : FREE SPACE : Frame Buffer     = 155736960 B (148 MB)
     [m3vpss ]  83586: SYSTEM  : FREE SPACE : Bitstream Buffer = 205662080 B (196 MB)
     [m3vpss ]  83586: SYSTEM  : FREE SPACE : Tiler Buffer     = 256 B (0 MB)  - TILER OFF
     [m3vpss ]  83586: DISPLAY: DVO2(BP1)  : 68 fps, Latency (Min / Max) = ( 14 / 30 ), Callback Interval (Min / Max) = ( 14 / 15 ) !!!
     [m3video]      87113: 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 :23 %
     [m3video]               totalAcq2acqDelay :76 %
     [m3video]               totalElapsedTime in msec :     619
     [m3video]               numAccessCnt:     252
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:     564
     [m3video]      87114: 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]      87114: 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]  *** DECODE Statistics ***
     [m3video] 
     [m3video]  Elasped Time           : 51 secs
     [m3video] 
     [m3video] 
     [m3video]  CH  | In Recv In User  Out
     [m3video]  Num | FPS     Skip FPS FPS
     [m3video]  -----------------------------------
     [m3video]    0 |       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] IVAHD_1 Average Batch Size : 0
     [m3video] IVAHD_1 Max achieved Batch Size : 0
     [m3video] IVAHD_2 Average Batch Size : 0
     [m3video] IVAHD_2 Max achieved Batch Size : 0
     [m3video] 
     [m3video] Multi Channel Decode Batch break Stats
     [m3video] Total Number of Batches created: 17
     [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: 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] 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] 
     [m3vpss ] 
     [m3vpss ]  *** [MP_SCLR0 ] Statistics ***
     [m3vpss ] 
     [m3vpss ]  Total Frames Received  : 21
     [m3vpss ]  Total Frames Forwarded : 21
     [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 ]  88881: LOAD: CPU: 4.0% HWI: 1.5%, SWI:0.6%
     [m3vpss ] 
     [m3vpss ]  88882: LOAD: TSK: DISPLAY0            : 0.3%
     [m3vpss ]  88882: LOAD: TSK: DISPLAY1            : 0.2%
     [m3vpss ]  88882: LOAD: TSK: SWMS0               : 0.5%
     [m3vpss ]  88882: LOAD: TSK: SWMS1               : 0.3%
     [m3vpss ]  88882: LOAD: TSK: MISC                : 0.6%
     [m3vpss ] 
     [m3video] 
     [m3video]  89323: LOAD: CPU: 1.6% HWI: 0.2%, SWI:0.4%
     [m3video] 
     [m3video]  89324: LOAD: TSK: IPC_BITS_IN0        : 0.1%
     [m3video]  89324: LOAD: TSK: DEC0                : 0.6%
     [m3video]  89324: LOAD: TSK: MISC                : 0.3%
     [m3video] 
     [c6xdsp ] 
     [c6xdsp ]  100698: LOAD: CPU: 0.1% HWI: 0.0%, SWI:0.0%
     [c6xdsp ] 
     [c6xdsp ]  100699: LOAD: TSK: MISC                : 0.1%
     [c6xdsp ] 

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

  • As you mentioned decoding has stopped. Can you also share the log of "b" cmd and the h264 stream if possible.

  •  Enter Choice: b

     VDEC:Buffer Statistics
     ChId | InBufCnt | OutBufCnt
         0|         6|         5

     

      when i update the h264 stream file , get error messge: "That file type is not allowed" 

  • Is it printing only one line ? It should print lots of info . You can rename the .264 to .mp3 extension then it will allow

  •  

  • Pls try with below settings in the ini file:

    path      = /data/8585.1920x1080_01.h264
    width     = 1920
    height    = 1080
    enable    = 1
    codec     = h264
    numbuf    = 10
    displaydelay    = 4 

    This stream has 4 reference frames ,so display delay and numbuf should be set approproately. Application has to set these decLink params based on stream properties correctly. I have checked that it works fine with this setting

  • How to got the approproate value of the numbuf and displaydelay?    I have 12 h264 stream file ,just 1 file can decode correctly.  

     

     In my project, will use the decoder to decode stream from eth0,   in this case , how to set a approproate value of this two variables?  

  • At your application level can you determine the stream property to learn the number of reference frames ? The vdecCrePrm->numBufPerCh is a decode channel create time    parameter and so app can set this with any values raging from 3 to 15   depending on the stream type.The number of decode output buffers shall be greater than the number of reference buffers. This is because it’s the output buffers which are eventually used as reference buffers. For this particular stream are you running out of memory if you set the correct value for display delay and numbuf ? You can try with numbuf of 6 and check if it works.

  • When set the numbuf    = 10 && displaydelay    = 6 , the other files can deocde too.

    In my case, I don't know the number of reference frames.  Because the ip camera that the h264 stream come from is control by other people, the parameters of ip camera is not fixed.

    the dvr02.80.00.00 's demo with numbuf=0 && displaydelay=0 can work correct, why dvr03.00.00.00 can't?

     

     

  • The number of reference frames is configurable. My understanding is the IP camera advertise stream properties such as codec used and number of reference frames before sending the stream ?

    In 2.80 if numbuf = 0, decLink assumes 6 buffers by default. In RDK to reduce memory consumption, the default was changed to 5. I beleive this was the reason for the stream working. It is by chance that the default number of buffers was sufficient to decode the stream. The right way is to configure the parameter so that all streams will work,

  •  I will discuss this issue with the engineers responsible for ip camera.  Thank you for help!!!