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.

RDK capture

Hi.

We use RDK2.8, 8168, ourself board.

 I use capture-display.The front-end  feeds 1080P60 frames to VIP, if I set pCaptureInstPrm->standard = SYSTEM_STD_1080P_30, it can normally display. I printf the fps, it is 30. So can I dynamic change the capture FPS? How can I change?

  • I didnt understand the issue. Are you saying even though you are capturing 60 fps it is displaying only 30 fps ? Can you share the log of Vsys_printDetailedStatistics(). The SwMs output has to be configured for 60 fps and we can check if frame drop is happening due to this from the logs

  • Hi, Badri.

    I only use captureLink and displayLink.

    We not use 5158. Just use FPGA for sending 1080P frames. But I want to test whether the capture can dynamicly change the FPS.

    So I set pCaptureInstPrm->standard           = SYSTEM_STD_1080P_30; I want to konw whether the captureLink can send 1080P60 frames to display.

    I use CMD CAPTURE_LINK_CMD_PRINT_ADV_STATISTICS to printf the FPS after capture,display starting.

    Thanks.

  • Can  you share the log of CAPTURE_LINK_CMD_PRINT_ADV_STATISTICS. Also share the usecase file where you connect capture link with display link.Capture link can output 60 fps. 

  • Hi, Badri. Thanks very much.

     [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 |     630     630       0     63    63     0 1920 / 1920 1080 / 1080       1          0 0/0 (0/0)
     [m3vpss ]  
     [m3vpss ]  VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  
     [m3vpss ]  *** Capture List Manager Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  List Post Count        : 1314 
     [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 = 991, 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 = 0x00000000
     [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00020000
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  31908: CAPTURE: Fields = 628 (fps = 59, CPU Load = 0)
     [m3vpss ]  31908: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  31908: SYSTEM  : FREE SPACE : System Heap      = 7168 B, Mbx = 10239 msgs) 
     [m3vpss ]  31908: SYSTEM  : FREE SPACE : SR0 Heap         = 12076032 B (11 MB) 
     [m3vpss ]  31908: SYSTEM  : FREE SPACE : Frame Buffer     = 186094464 B (177 MB) 
     [m3vpss ]  31909: SYSTEM  : FREE SPACE : Bitstream Buffer = 219676544 B (209 MB) 
     [m3vpss ]  31909: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  31909: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON 

    I konw the capture can output 60fps. I want to konw if the resource is 1080P60, the capture can change it to 1080P30?

  • Ok now I understand your question.Capture link does not support reduction of frame rate. You will have to add a link like scaler link between capture and display to be able to support frame rate conversion

  • OK. Thanks very much.

    But if I set pCaptureInstPrm->standard    = SYSTEM_STD_1080P_30; why it can normally display just like 1080P60.

  • The standard is only used for setting capture link output buffer resolution. It does not control fps. VIP will capture frames at the camera fps

  • Hi, Badri.
    I have another problem.

    Now I have set the VIP1 as VOUT1.  I want to test whether the setting is right.

    So I connect captureLink to dispaly[2].  but 
     [m3vpss ]  17645: Assertion @ Line: 840 in links_m3vpss/display/displayLink_drv.c: status == FVID2_SOK : failed !!!

  • Display[2] is SDTV which support only D1 input. Can  you attach your usecase file where you connect the links and the dataflow you want to achieve. That would be easier to debug

  • Hi, Badri.

    The problem is OK now. I should use display[1].

    Thanks very much.