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.

question about latency

Hi, all:
  I am developing a video system using 8168 & dvr rdk 3.0.
  My use case is PAL -> dei -> encodec(264) -> ethernet(tcp) -> windows playing(using VLC) .
  The latency is about 800ms, would you tell me how I can reduce the latency?
  In my use case, I want the latency below 100ms, is it possible? If not, how much latency
can be achieved?
  Thanks in advance!

  • Hello,

    You could check this thread:
    e2e.ti.com/.../1010658

    You could search in the e2e for more similar issue.

    BR
    Margarita
  • Hi, Margarita:

      Thanks for quick reponse.

      I read the post you refer to (a lot other posts related). Unfortunately I can get little from those.

      My case is a littel different from his, I don't use McFW but link API,

    I managed to print the statistic about the link I use, the following is 

    the log:

     [m3vpss ]  
     [m3vpss ]  *** Capture Driver Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  VIP Parser Reset Count : 0
     [m3vpss ]  
     [m3vpss ]      |   Total    Even     Odd  Total  Even   Odd  Min /  Max  Min /  Max Dropped Fid Repeat Frame Error Y/C
     [m3vpss ]  CH  |  Fields  Fields  Fields    FPS   FPS   FPS       Width      Height  Fields      Count (Desc Error Y/C)
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------
     [m3vpss ]  000 |    4258    2131    2127     50    25    25  720 /  720  288 /  288       1          3 0/0 (0/0)
     [m3vpss ]  200 |    4258    2131    2127     50    25    25  720 /  720  288 /  288       1          4 0/0 (0/0)
     [m3vpss ]  
     [m3vpss ]  VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  
     [m3vpss ]  *** Capture List Manager Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  List Post Count        : 21295 
     [m3vpss ]  List Stall Count       : 0 
     [m3vpss ]  List Post Time (ms)    : Max = 0, Min = 0, Avg = 0, Total = 0 
     [m3vpss ]  INTC Timeout Count     : (0, 0) (Min timeout value = 990, 1000) 
     [m3vpss ]  Descriptor miss found count : 0 
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  VIP and VPDMA registers, 
     [m3vpss ]  VIP0 : FIQ_STATUS  : 0x4810551c = 0x00004400
     [m3vpss ]  VIP1 : FIQ_STATUS  : 0x48105a1c = 0x00004400
     [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00000000
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  103407: CAPTURE: Fields = 8514 (fps = 99, CPU Load = 0)
     [m3vpss ]  103407: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  103408: SYSTEM  : FREE SPACE : System Heap      = 6104 B, Mbx = 10240 msgs) 
     [m3vpss ]  103408: SYSTEM  : FREE SPACE : SR0 Heap         = 11003648 B (10 MB) 
     [m3vpss ]  103408: SYSTEM  : FREE SPACE : Frame Buffer     = 207460224 B (197 MB) 
     [m3vpss ]  103408: SYSTEM  : FREE SPACE : Bitstream Buffer = 349942656 B (333 MB) 
     [m3vpss ]  103408: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  103408: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  
     [m3vpss ]  *** [DEI2    ] DEI Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time           : 10 secs
     [m3vpss ]  Total Fields Processed : 4353 
     [m3vpss ]  Total Fields FPS       : 500 FPS
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User Out[0] User Out[1] User Out[2] User Out[3] User Out[4] Latency   
     [m3vpss ]  Num | FPS     FPS       FPS        FPS    FPS    FPS    FPS    FPS       FPS         FPS         FPS         FPS         FPS       Skip FPS    Skip FPS    Skip FPS    Skip FPS    Skip FPS   Min / Max 
     [m3vpss ]  -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |      52        26         26      0     26      0      0      0          26           0           0           0           0           0           0           0           0           0   2 /   2
     [m3vpss ]    1 |      52        26         26      0     26      0      0      0          26           0           0           0           0           0           0           0           0           0   2 /   2
     [m3vpss ]  
     [m3video]      109409: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :4 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :4 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :4 %
     [m3video]               totalAcq2acqDelay :95 %
     [m3video]               totalElapsedTime in msec :   91107
     [m3video]               numAccessCnt:   17580
     [m3video]              IVA-FPS :     193
     [m3video]              Average time spent per frame in microsec:     207
     [m3video]      109410: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :4 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :4 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :4 %
     [m3video]               totalAcq2acqDelay :95 %
     [m3video]               totalElapsedTime in msec :   91075
     [m3video]               numAccessCnt:   17580
     [m3video]              IVA-FPS :     193
     [m3video]              Average time spent per frame in microsec:     207
     [m3video]      109411: 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           : 10 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 |      26       0        0  26   5 /   9
     [m3video]    1 |      26       0        0  26   5 /   9
     [m3video]  
     [m3video] Multi Channel Encode 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 : 0
     [m3video] IVAHD_2 Max achieved Batch Size : 0
     [m3video]  
     [m3video] Multi Channel Encode Batch break Stats 
     [m3video] Total Number of Batches created: 263 
     [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: 100 %
     [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: 263 
     [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: 100 %
     [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 %
     [m3vpss ]  
     [m3vpss ]  111416: LOAD: CPU: 4.9% HWI: 0.5%, SWI:1.0% 
     [m3vpss ]  
     [m3vpss ]  111416: LOAD: TSK: IPC_OUT_M30         : 0.3% 
     [m3vpss ]  111416: LOAD: TSK: CAPTURE             : 0.5% 
     [m3vpss ]  111416: LOAD: TSK: DEI2                : 1.0% 
     [m3vpss ]  111416: LOAD: TSK: MISC                : 1.6% 
     [m3vpss ]  
     [m3video]  
     [m3video]  111917: LOAD: CPU: 4.1% HWI: 0.7%, SWI:0.5% 
     [m3video]  
     [m3video]  111917: LOAD: TSK: IPC_IN_M30          : 0.2% 
     [m3video]  111917: LOAD: TSK: IPC_BITS_OUT0       : 0.5% 
     [m3video]  111917: LOAD: TSK: ENC0                : 0.9% 
     [m3video]  111918: LOAD: TSK: ENC_PROCESS_TSK_0   : 0.5% 
     [m3video]  111918: LOAD: TSK: ENC_PROCESS_TSK_1   : 0.5% 
     [m3video]  111918: LOAD: TSK: MISC                : 0.3% 
     [m3video] 

      any ideas?

     

     

  • Hello,

    I am not aware with DVRRDK but you could check this thread:

    e2e.ti.com/.../426680

    BR
    Margarita