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.

DM8107 dropping frames at 1080p60 encoding

Hello.

I'd like to request some help with the following issue, I've been reading posts left and right about very similar problems but still haven't been able to fix it.

I'm trying to encode a 1080p60 stream, however, the encoder seems to be dropping frames.  This is my usecase:

        vip --> dup --> merge --> dei --> nsf --> enc

Looking at the statistics logs (attached at the end) the nsf link seems to be dropping frames.  I assume this is because, further down the chain, the encoder appears to be stuck at 50fps and causes the nsf buffers to fill up... that is, if I'm reading the logs correctly.

This are the clock settings:

ARM clk: 720MHz
DDR clk: 533MHz
L3 clk: 200MHz
IVA clk: 440MHz
ISS clk: 500MHz
DSS clk: 200MHz
DSP clk: 750MHz

I'd appreciate it if someone could help me sort this out.

Thank you.

Statistics logs:

 [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 |    5381    5381       0     60    60     0 1920 / 1920 1080 / 1080      21          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        : 90660
 [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 = 979, 989)
 [m3vpss ]  Descriptor miss found count : 0
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  VIP and VPDMA registers,
 [m3vpss ]  VIP0 : FIQ_STATUS  : 0x4810551c = 0x00000000
 [m3vpss ]  VIP1 : FIQ_STATUS  : 0x48105a1c = 0x00000000
 [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00000000
 [m3vpss ]  VPDMA: PERF_MON34 = 0x4305ffff, PERF_MON35 = 0x4305ffff, PERF_MON38 = 0x4305ffff, PERF_MON39 = 0x4305ffff
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  99188: CAPTURE: Fields = 5360 (fps = 59, CPU Load = 0)
 [m3vpss ]  99188: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
 [m3vpss ]  99188: SYSTEM  : FREE SPACE : System Heap      = 244984 B, Mbx = 10238 msgs)
 [m3vpss ]  99188: SYSTEM  : FREE SPACE : SR0 Heap         = 22738176 B (21 MB)
 [m3vpss ]  99188: SYSTEM  : FREE SPACE : Frame Buffer     = 13198208 B (12 MB)
 [m3vpss ]  99188: SYSTEM  : FREE SPACE : Bitstream Buffer = 157716352 B (150 MB)
 [m3vpss ] TILER_STATS: CNT :8BIT
 [m3vpss ] TILER_STATS: CNT RESOLUTION:    16384 x 8192
 [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 16384 x 8188
 [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  0
 [m3vpss ] TILER_STATS: NUM USED BUCKETS:  1
 [m3vpss ] TILER_STATS: TOTAL FREE AREA:   44793856 (33 %)
 [m3vpss ] TILER_STATS: TOTAL USED AREA:   89358336 (66 %)
 [m3vpss ] TILER_STATS: TOTAL WASTE AREA:  0 (0 %)
 [m3vpss ] TILER_STATS: MAX WIDTH RECT:    16384 x 1596
 [m3vpss ] TILER_STATS: MAX HEIGHT RECT:    16384 x 1596
 [m3vpss ] TILER_STATS: RES ALLOC COUNT [1080P] :  42
 [m3vpss ] TILER_STATS: CNT :16BIT
 [m3vpss ] TILER_STATS: CNT RESOLUTION:    32768 x 4096
 [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 32768 x 4096
 [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  0
 [m3vpss ] TILER_STATS: NUM USED BUCKETS:  1
 [m3vpss ] TILER_STATS: TOTAL FREE AREA:   89399296 (66 %)
 [m3vpss ] TILER_STATS: TOTAL USED AREA:   44818432 (33 %)
 [m3vpss ] TILER_STATS: TOTAL WASTE AREA:  139264 (0 %)
 [m3vpss ] TILER_STATS: MAX WIDTH RECT:    32768 x 1888
 [m3vpss ] TILER_STATS: MAX HEIGHT RECT:    32768 x 1888
 [m3vpss ] TILER_STATS: RES ALLOC COUNT [1080P] :  42
 [m3vpss ]  99191: SYSTEM  : FREE SPACE : Tiler 8-bit      = 44793856 B (42 MB)  - TILER ON
 [m3vpss ]  99191: SYSTEM  : FREE SPACE : Tiler 16-bit     = 89399296 B (85 MB)  - TILER ON
 [m3vpss ]  
 [m3vpss ]  *** [NSF0] NSF Statistics ***
 [m3vpss ]  
 [m3vpss ]  Elasped Time           : 90 secs
 [m3vpss ]  Total Fields Processed : 3386
 [m3vpss ]  Total Fields FPS       : 65 FPS
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  CH  | In Recv In Reject In Process Out User Out Out      
 [m3vpss ]  Num | FPS     FPS       FPS        FPS Skip FPS Skip FPS
 [m3vpss ]  ------------------------------------------------
 [m3vpss ]    0 |      44         7         37  37        0        7
 [m3vpss ]    1 |       0         0          0   0        0        0
 [m3vpss ]    2 |       0         0          0   0        0        0
 [m3vpss ]  
 [m3vpss ]  
 [m3vpss ]  *** [DEI2    ] DEI Statistics ***
 [m3vpss ]  
 [m3vpss ]  Elasped Time           : 90 secs
 [m3vpss ]  Total Fields Processed : 4044
 [m3vpss ]  Total Fields FPS       : 111 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 |      59        14         44     44      0      0      0      0           0          44           0           0           0           0           0           0           0           0  11 /  31
 [m3vpss ]    1 |      59        59          0      0      0      0      0      0           0           0           0           0           0           0           0           0           0           0 255 /   0
 [m3vpss ]    2 |      59        59          0      0      0      0      0      0           0           0           0           0           0           0           0           0           0           0 255 /   0
 [m3vpss ]  
 [m3video]  
 [m3video]  *** (VCOP) OSD Statistics ***
 [m3video]  
 [m3video]  Elasped Time           : 92 secs
 [m3video]  Total Fields Processed : 5506
 [m3video]  Total Fields FPS       : 102 FPS
 [m3video]  Latency AVG/MIN/MAX    : 0/0/2 ms
 [m3video]  
 [m3video]  Detailed Internal Profile Log,
 [m3video]  - OSD ALG Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - GATHER  Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - BLEND   Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - SCATTER Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - EDMA    Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - VCOP    Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - SCAT/GATH CPU time   :          0 msecs (0 % of elasped time)
 [m3video]  - BLEND     CPU time   :          0 msecs (0 % of elasped time)
 [m3video]  
 [m3video]  
 [m3video]  CH  | In Recv In Que In Reject In Process
 [m3video]  Num | FPS     FPS    FPS       FPS        
 [m3video]  ------------------------------------------
 [m3video]    0 |      59     59         0         59
 [m3video]  
 [m3video]  
 [m3video]  *** (VCOP) SCD Statistics ***
 [m3video]  
 [m3video]  Elasped Time           : 101 secs
 [m3video]  Total Fields Processed : 0
 [m3video]  Total Fields FPS       : 0 FPS
 [m3video]  
 [m3video]  Detailed Internal Profile Log,
 [m3video]  - SCD ALG Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - VCOP    Total time   :          0 msecs (0 % of elasped time)
 [m3video]  - SCD ALG   CPU time   :          0 msecs (0 % of elasped time)
 [m3video]  
 [m3video]  
 [m3video]  CH  | In Recv In Skip In Process
 [m3video]  Num | FPS     FPS     FPS        
 [m3video]  ---------------------------------
 [m3video]    0 |       0       0          0
 [m3video]  
 [m3video]     101813: HDVICP-ID:0
 [m3video] All percentage figures are based off totalElapsedTime
 [m3video]          totalAcquire2wait :1 %
 [m3video]          totalWait2Isr :97 %
 [m3video]          totalIsr2Done :0 %
 [m3video]          totalWait2Done :97 %
 [m3video]          totalDone2Release :0 %
 [m3video]          totalAcquire2Release :98 %
 [m3video]          totalAcq2acqDelay :1 %
 [m3video]          totalElapsedTime in msec :   69670
 [m3video]          numAccessCnt:    3508
 [m3video]         IVA-FPS :      50
 [m3video]         Average time spent per frame in microsec:   19264
 [m3video]     101814: 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]     101815: 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           : 69 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 |      50       0        0  50 255 / -1354904534
 [m3video]    1 |       0       0        0   0 255 /   0
 [m3video]    2 |       0       0        0   0 255 /   0
 [m3video]  
 [m3video] *** ENCODER I/O stats ***
 [m3video] CH: 0 In Process: 3518 Out Process: 3512
 [m3video] CH: 1 In Process: 0 Out Process: 0
 [m3video] CH: 2 In Process: 0 Out Process: 0
 [m3video] ENC: Get Frames: 3518 Put Frames: 3507
 [m3video] Idx:    |Addr:        |Get Cnt:    |Put Cnt:    |Processing:    |Channel:    |
 [m3video] 0    |3f6dad24    |294        |293        |0        |0        |
 [m3video] 1    |3f6dad60    |293        |292        |1        |0        |
 [m3video] 2    |3f6dad9c    |294        |293        |0        |0        |
 [m3video] 3    |3f6dadd8    |293        |293        |0        |0        |
 [m3video] 4    |3f6dae14    |293        |292        |1        |0        |
 [m3video] 5    |3f6dae50    |293        |292        |1        |0        |
 [m3video] 6    |3f6dae8c    |293        |292        |1        |0        |
 [m3video] 7    |3f6daec8    |293        |292        |0        |0        |
 [m3video] 8    |3f6daf04    |293        |292        |0        |0        |
 [m3video] 9    |3f6daf40    |293        |292        |1        |0        |
 [m3video] 10    |3f6daf7c    |293        |292        |1        |0        |
 [m3video] 11    |3f6dafb8    |293        |292        |0        |0        |
 [m3video] ReqObj in use by Codec:
 [m3video] Addr        |InCodec    |
 [m3video] 3e162768    |1        |
 [m3video] 3e19b62c    |1        |
 [m3video] 3e19c49c    |1        |
 [m3video] 3e19eb1c    |1        |
 [m3video] 3e1a1c70    |1        |
 [m3video] 3e1a95f4    |1        |
 [m3video]  
 [m3video]  *** Encode Statistics ***
 [m3vpss ]  
 [m3video]   101821: ENC: Rcvd from prev = 3518, Returned to prev = 3507
 [m3vpss ]  102024: LOAD: CPU: 22.3% HWI: 2.7%, SWI:3.5%
 [m3vpss ]  
 [m3video]  ENC Out  BitBuf Q Status
 [m3vpss ]  102024: LOAD: TSK: IPC_OUT_M30         : 0.7%
 [m3video] Empty Q 0 -> count 29, wrPtr 91, rdPtr 62
 [m3video] Full Q -> count 0, wrPtr 51, rdPtr 51
 [m3vpss ]  102024: LOAD: TSK: IPC_OUT_M31         : 1.0%
 [m3vpss ]  102024: LOAD: TSK: IPC_IN_M31          : 0.4%
 [m3video] Multi Channel Encode Average Submit Batch Size
 [m3video] Max Submit Batch Size : 24
 [m3vpss ]  102024: LOAD: TSK: CAPTURE             : 3.1%
 [m3video] IVAHD_0 Average Batch Size : 1
 [m3video] IVAHD_0 Max achieved Batch Size : 1
 [m3vpss ]  102024: LOAD: TSK: NSF0                : 0.7%
 [m3video]  
 [m3video] Multi Channel Encode Batch break Stats
 [m3vpss ]  102025: LOAD: TSK: DEI2                : 1.9%
 [m3video] Total Number of Batches created: 3509
 [m3video] All numbers are based off total number of Batches created
 [m3vpss ]  102025: LOAD: TSK: DUP0                : 0.4%
 [m3video]      Batch breaks due to batch sizeexceeding limit: 100 %
 [m3video]      Batch breaks due to ReqObj Que being empty: 0 %
 [m3vpss ]  102025: LOAD: TSK: MERGE0              : 0.3%
 [m3video]      Batch breaks due to changed resolution class: 0 %
 [m3video]      Batch breaks due to interlace and progressivecontent mix: 0 %
 [m3vpss ]  102026: LOAD: TSK: MISC                : 7.6%
 [m3video]      Batch breaks due to channel repeat: 0 %
 [m3video]      Batch breaks due to different codec: 0 %
 [m3vpss ]  
 [m3video]  
 [m3video]  102527: LOAD: CPU: 16.4% HWI: 2.3%, SWI:2.1%
 [m3video]  
 [m3video]  102527: LOAD: TSK: IPC_OUT_M31         : 1.5%
 [m3video]  102528: LOAD: TSK: IPC_IN_M30          : 0.4%
 [m3video]  102528: LOAD: TSK: IPC_IN_M31          : 0.6%
 [m3video]  102528: LOAD: TSK: IPC_BITS_OUT0       : 1.1%
 [m3video]  102528: LOAD: TSK: VCOP                : 0.6%
 [m3video]  102528: LOAD: TSK: ENC0                : 1.6%
 [m3video]  102528: LOAD: TSK: ALG0                : 3.7%
 [m3video]  102528: LOAD: TSK: ENC_PROCESS_TSK_0   : 1.8%
 [m3video]  102529: LOAD: TSK: MISC                : 0.7%
 [m3video]  
 [m3vpss ]  
 [m3vpss ]  *** CAPTURE Statistics ***
 [m3vpss ] 103130: CAPTURE: Queued to driver = 5612, Dequeued from driver = 5597
 [m3vpss ] CAPTURE [0] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 0, wrPtr 221, rdPtr 221
 [m3vpss ]  
 [m3vpss ]  *** [NSF0] NSF Statistics ***
 [m3vpss ] 103132: NSF: Rcvd from prev = 4267, Returned to prev = 4267
 [m3vpss ] NSF Out [0] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 1, wrPtr 128, rdPtr 127
 [m3vpss ]  
 [m3vpss ]  *** [DEI2    ] DEI Statistics ***
 [m3vpss ] 103135: DEI: Rcvd from prev = 16791, Returned to prev = 16791
 [m3vpss ] DEI Out [0] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 0, wrPtr 44, rdPtr 44
 [m3vpss ] DEI Out [1] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] DEI Out [2] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] DEI Out [3] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] DEI Out [4] Buf Q Status
 [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
 [m3vpss ] Full Q -> count 0, wrPtr 0, rdPtr 0
 [m3video]  
 [m3video]  *** Encode Statistics ***
 [m3video]   103637: ENC: Rcvd from prev = 3609, Returned to prev = 3598
 [m3video]  ENC Out  BitBuf Q Status
 [m3video] Empty Q 0 -> count 29, wrPtr 182, rdPtr 153
 [m3video] Full Q -> count 0, wrPtr 142, rdPtr 142

  • Hello,

    What is the software release that you are using here?

    BR
    Margarita
  • Hello,

    Could you check allowFrameSkip is not set?
    0 - Frame can never be skipped

    BR
    Margarita
  • Hello,

    I'm using the DVR-RDK version 4.0.

    FrameSkip is not allowed.  About this though, even if it were allowed, would it matter?  I'm giving it plenty of bitrate so I don't see a reason why it should be skipping frames.

    Thanks.

  • I decided to reduce the usecase to remove as many variables as possible.  This is the new one:

    vip --> enc

    It's still dropping frames reaching only 50 fps.  The new statistics log is attached at the end.

    There are some messages about batch processes breaking due to exceeding a size limit, what do these refer to?  Are they relevant in some way?

     [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 |    6738    6738       0     60    60     0 1920 / 1920 1080 / 1080     735          0 0/0 (0/0)
     [m3vpss ]  
     [m3vpss ]  VIP Capture Port 0 | DescMissMatch1 = 1, DescMissMatch2 = 0 , DescMissMatch3 = 0
     [m3vpss ]  
     [m3vpss ]  *** Capture List Manager Advanced Statistics ***
     [m3vpss ]  
     [m3vpss ]  List Post Count        : 128243
     [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 = 984, 993)
     [m3vpss ]  Descriptor miss found count : 0
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  VIP and VPDMA registers,
     [m3vpss ]  VIP0 : FIQ_STATUS  : 0x4810551c = 0x00000000
     [m3vpss ]  VIP1 : FIQ_STATUS  : 0x48105a1c = 0x00000000
     [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00000000
     [m3vpss ]  VPDMA: PERF_MON34 = 0x4305ffff, PERF_MON35 = 0x4305ffff, PERF_MON38 = 0x4305ffff, PERF_MON39 = 0x4305ffff
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  168432: CAPTURE: Fields = 6003 (fps = 53, CPU Load = 0)
     [m3vpss ]  168432: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  168432: SYSTEM  : FREE SPACE : System Heap      = 245544 B, Mbx = 10238 msgs)
     [m3vpss ]  168432: SYSTEM  : FREE SPACE : SR0 Heap         = 22736768 B (21 MB)
     [m3vpss ]  168432: SYSTEM  : FREE SPACE : Frame Buffer     = 172260224 B (164 MB)
     [m3vpss ]  168432: SYSTEM  : FREE SPACE : Bitstream Buffer = 207667072 B (198 MB)
     [m3vpss ] TILER_STATS: CNT :8BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    16384 x 8192
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 16384 x 8188
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   134152192 (99 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ] TILER_STATS: CNT :16BIT
     [m3vpss ] TILER_STATS: CNT RESOLUTION:    32768 x 4096
     [m3vpss ] TILER_STATS: BUCKET RESOLUTION: 32768 x 4096
     [m3vpss ] TILER_STATS: NUM FREE BUCKETS:  1
     [m3vpss ] TILER_STATS: NUM USED BUCKETS:  0
     [m3vpss ] TILER_STATS: TOTAL FREE AREA:   134217728 (100 %)
     [m3vpss ] TILER_STATS: TOTAL USED AREA:   0 (0 %)
     [m3vpss ]  168434: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134152192 B (127 MB)  - TILER ON
     [m3vpss ]  168434: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON
     [m3video]     171035: 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 :   81085
     [m3video]          numAccessCnt:    4103
     [m3video]         IVA-FPS :      50
     [m3video]         Average time spent per frame in microsec:   19169
     [m3video]     171036: 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]     171037: 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           : 59 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 |      50       0        0  50 255 / -1354929003
     [m3video]  
     [m3video] *** ENCODER I/O stats ***
     [m3video] CH: 0 In Process: 4112 Out Process: 4104
     [m3video] ENC: Get Frames: 6134 Put Frames: 6121
     [m3video] Idx:    |Addr:        |Get Cnt:    |Put Cnt:    |Processing:    |Channel:    |
     [m3video] 0    |3f3b60a8    |384        |383        |0        |0        |
     [m3video] 1    |3f3b60e4    |384        |383        |0        |0        |
     [m3video] 2    |3f3b6120    |384        |383        |0        |0        |
     [m3video] 3    |3f3b615c    |384        |383        |0        |0        |
     [m3video] 4    |3f3b6198    |384        |383        |0        |0        |
     [m3video] 5    |3f3b61d4    |384        |383        |0        |0        |
     [m3video] 6    |3f3b6210    |383        |382        |1        |0        |
     [m3video] 7    |3f3b624c    |383        |383        |0        |0        |
     [m3video] 8    |3f3b6288    |383        |383        |0        |0        |
     [m3video] 9    |3f3b62c4    |383        |383        |0        |0        |
     [m3video] 10    |3f3b6300    |383        |382        |1        |0        |
     [m3video] 11    |3f3b633c    |383        |382        |0        |0        |
     [m3video] 12    |3f3b6378    |383        |382        |1        |0        |
     [m3video] 13    |3f3b63b4    |383        |382        |1        |0        |
     [m3video] 14    |3f3b63f0    |383        |382        |1        |0        |
     [m3video] 15    |3f3b642c    |383        |382        |1        |0        |
     [m3video] ReqObj in use by Codec:
     [m3video] Addr        |InCodec    |
     [m3video] 3e19fe5c    |1        |
     [m3video] 3e1a0460    |1        |
     [m3video] 3e1a0a64    |1        |
     [m3video] 3e1a4dc4    |1        |
     [m3video] 3e1a5fd0    |1        |
     [m3video] 3e1a7b7c    |1        |
     [m3video]  
     [m3video]  *** Encode Statistics ***
     [m3vpss ]  
     [m3video]   171041: ENC: Rcvd from prev = 6134, Returned to prev = 6121
     [m3vpss ]  171243: LOAD: CPU: 11.7% HWI: 1.2%, SWI:2.0%
     [m3vpss ]  
     [m3video]  ENC Out  BitBuf Q Status
     [m3vpss ]  171243: LOAD: TSK: IPC_OUT_M30         : 0.8%
     [m3video] Empty Q 0 -> count 3, wrPtr 275, rdPtr 272
     [m3video] Full Q -> count 0, wrPtr 259, rdPtr 259
     [m3vpss ]  171244: LOAD: TSK: CAPTURE             : 2.2%
     [m3vpss ]  171244: LOAD: TSK: MISC                : 5.5%
     [m3video] Multi Channel Encode Average Submit Batch Size
     [m3video] Max Submit Batch Size : 24
     [m3vpss ]  
     [m3video] IVAHD_0 Average Batch Size : 1
     [m3video] IVAHD_0 Max achieved Batch Size : 1
     [m3video]  
     [m3video] Multi Channel Encode Batch break Stats
     [m3video] Total Number of Batches created: 2998
     [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]  
     [m3video]  171745: LOAD: CPU: 7.2% HWI: 1.1%, SWI:1.1%
     [m3video]  
     [m3video]  171745: LOAD: TSK: IPC_IN_M30          : 0.5%
     [m3video]  171745: LOAD: TSK: IPC_BITS_OUT0       : 0.9%
     [m3video]  171745: LOAD: TSK: ENC0                : 1.2%
     [m3video]  171745: LOAD: TSK: ENC_PROCESS_TSK_0   : 2.2%
     [m3video]  171745: LOAD: TSK: MISC                : 0.2%
     [m3video]  
     [m3vpss ]  
     [m3vpss ]  *** CAPTURE Statistics ***
     [m3vpss ] 172346: CAPTURE: Queued to driver = 6203, Dequeued from driver = 6200
     [m3vpss ] CAPTURE [0] Buf Q Status
     [m3vpss ] Empty Q -> count 0, wrPtr 0, rdPtr 0
     [m3vpss ] Full Q -> count 0, wrPtr 56, rdPtr 56
     [m3video]  
     [m3video]  *** Encode Statistics ***
     [m3video]   172847: ENC: Rcvd from prev = 6225, Returned to prev = 6212
     [m3video]  ENC Out  BitBuf Q Status
     [m3video] Empty Q 0 -> count 3, wrPtr 366, rdPtr 363
     [m3video] Full Q -> count 0, wrPtr 350, rdPtr 350

  • Hi,

    Capture is still capturing at 60fps , but it is dropping lot of frames, dropped frames = 735. Which means, capture is not receiving frames in time, some link in the chain is running slow. Because of this capture is dropping frames. Hoping that you have not enabled skip frames in the capture driver.

    Rgds,
    Brijesh
  • Hello,

    As far as I can tell, the only way to configure the capture link to drop frames is with the CAPTURE_LINK_CMD_SET_FRAMERATE_DIV command, is that correct?  In that case, no, I have not configured it to skip frames.  I know you can also set the encoder to allow frame skipping, this is disabled too.

    I'm using a high target bitrate as well to remove any sort of bottleneck there.

    If you look at my first post, with the more complex usecase, most of the frames seem to be dropping at the NSF link, which is right before the ENC link.

    Is there any way to verify which link is running slow?  Given all of the above and that the IVA-FPS is stuck at 50 makes me think the problem might be at the encoder, but I'm not entirely sure.


    Thank you for your help.

    Best regards,

    Sebastian.

  • Hi Sebastian,

    NSF can drop the frames if it is running out of output frames. If the encodes is not returning frames in time to the Nsf link, Nsf will run out of frames and start dropping/returning frames back to the previous link. Can you increase the number of frames in nsf and see if if improves the fps?

    Also add some time stamping in the encoder link and see if it is able to complete frame processing in real time. 

    Regards,

    Brijesh

  • Hello,

    I tried doubling the number of output buffers after the NSF link in the first usecase and after the VIP link in the second usecase.  Is this what you meant?  If that's the case, frames are still being dropped.

    Do you mean the timeStamp field in the output buffer you get from the ENC link?  That one is enabled already.

    I've been trying some different parameters and it seems that this issue is only present when enabling the use of B-frames in the encoder.  If I use only I- and P-frames then the encoder is able to reach 60 fps without a problem.  I've tried changing other settings such as GoP length and HRD buffer size, they seems to affect the output frame rate a tiny bit but not enough to reach 60 fps.

    Could it be that there isn't enough bandwidth to encode 1080p60 with B-frames?

    Regards,
    Sebastian.

  • Will not be able to help in encoder..

    Regards,
    Brijesh
  • Hello Sebastian,

    Could you share the encoder's params that are set when the B-frames encoding is enable?

    What is the bitrate that you are setting in case b-frames and 1080p60?

    BR
    Margarita

  • Hello Margarita,

    The encoder settings are attached at the end.

    I've tried with different targetBitrate settings, from 6 Mbps all the way to 20 Mbps.  I don't think it mattered though because the encoder is only using around 1~3 Mbps for this particular stream.  The current test video stream is the standard SMPTE color bars at 1080p60 obtained from a signal generator.

    Regards,
    Sebastian.

     [m3video] H.264 Static params
     [m3video] =============================
     [m3video] videnc2Params.size 316
     [m3video] encodingPreset 3 # User Defined
     [m3video] rateControlPreset 5 # User Defined
     [m3video] videnc2Params.maxHeight 1088
     [m3video] videnc2Params.maxWidth 1920
     [m3video] videnc2Params.dataEndianness 1
     [m3video] videnc2Params.maxInterFrameInterval 2
     [m3video] videnc2Params.maxBitRate 4294967295
     [m3video] videnc2Params.minBitRate 0
     [m3video] videnc2Params.inputChromaFormat 9
     [m3video] videnc2Params.inputContentType 0
     [m3video] videnc2Params.operatingMode 1
     [m3video] videnc2Params.profile 100
     [m3video] videnc2Params.level 42
     [m3video] videnc2Params.inputDataMode 3
     [m3video] videnc2Params.outputDataMode 3
     [m3video] videnc2Params.numInputDataUnits 1
     [m3video] videnc2Params.numOutputDataUnits 1
     [m3video] =============================
     [m3video] rateControlParams.rateControlParamsPreset 1
     [m3video] rateControlParams.scalingMatrixPreset 1
     [m3video] rateControlParams.rcAlgo 0
     [m3video] rateControlParams.qpI 4294967295
     [m3video] rateControlParams.qpMaxI 36
     [m3video] rateControlParams.qpMinI 10
     [m3video] rateControlParams.qpP 4294967295
     [m3video] rateControlParams.qpMaxP 40
     [m3video] rateControlParams.qpMinP 10
     [m3video] rateControlParams.qpOffsetB 4
     [m3video] rateControlParams.qpMaxB 44
     [m3video] rateControlParams.qpMinB 10
     [m3video] rateControlParams.allowFrameSkip 0
     [m3video] rateControlParams.removeExpensiveCoeff 0
     [m3video] rateControlParams.chromaQPIndexOffset 0
     [m3video] rateControlParams.IPQualityFactor 0
     [m3video] rateControlParams.initialBufferLevel 28000000
     [m3video] rateControlParams.HRDBufferSize 28000000
     [m3video] rateControlParams.minPicSizeRatioI 0
     [m3video] rateControlParams.maxPicSizeRatioI 640
     [m3video] rateControlParams.minPicSizeRatioP 0
     [m3video] rateControlParams.maxPicSizeRatioP 0
     [m3video] rateControlParams.minPicSizeRatioB 0
     [m3video] rateControlParams.maxPicSizeRatioB 0
     [m3video] rateControlParams.enablePRC 1
     [m3video] rateControlParams.enablePartialFrameSkip 0
     [m3video] rateControlParams.discardSavedBits 1
     [m3video] rateControlParams.VBRDuration 8
     [m3video] rateControlParams.VBRsensitivity 0
     [m3video] rateControlParams.skipDistributionWindowLength 5
     [m3video] rateControlParams.numSkipInDistributionWindow 1
     [m3video] rateControlParams.enableHRDComplianceMode 1
     [m3video] rateControlParams.frameSkipThMulQ5 0
     [m3video] rateControlParams.vbvUseLevelThQ5 0
     [m3video] =============================
     [m3video] interCodingParams.interCodingPreset 1
     [m3video] interCodingParams.searchRangeHorP 144
     [m3video] interCodingParams.searchRangeVerP 32
     [m3video] interCodingParams.searchRangeHorB 144
     [m3video] interCodingParams.searchRangeVerB 16
     [m3video] interCodingParams.interCodingBias 1
     [m3video] interCodingParams.skipMVCodingBias 1
     [m3video] interCodingParams.minBlockSizeP 1
     [m3video] interCodingParams.minBlockSizeB 1
     [m3video] interCodingParams.meAlgoMode 0
     [m3video] =============================
     [m3video] intraCodingParams.intraCodingPreset 0
     [m3video] intraCodingParams.lumaIntra4x4Enable 0
     [m3video] intraCodingParams.lumaIntra8x8Enable 255
     [m3video] intraCodingParams.lumaIntra16x16Enable 15
     [m3video] intraCodingParams.chromaIntra8x8Enable 15
     [m3video] intraCodingParams.chromaComponentEnable 1
     [m3video] intraCodingParams.intraRefreshMethod 0
     [m3video] intraCodingParams.intraRefreshRate 0
     [m3video] intraCodingParams.gdrOverlapRowsBtwFrames 0
     [m3video] intraCodingParams.constrainedIntraPredEnable 0
     [m3video] =============================
     [m3video] nalUnitControlParams.naluControlPreset 0x0001
     [m3video] nalUnitControlParams.naluPresentMaskStartOfSequence 0x23A0
     [m3video] nalUnitControlParams.naluPresentMaskIDRPicture 0x23E0
     [m3video] nalUnitControlParams.naluPresentMaskIntraPicture 0x2342
     [m3video] nalUnitControlParams.naluPresentMaskNonIntraPicture 0x0242
     [m3video] nalUnitControlParams.naluPresentMaskEndOfSequence 0x0C00
     [m3video] =============================
     [m3video] sliceCodingParams.sliceCodingPreset 0
     [m3video] sliceCodingParams.sliceMode 0
     [m3video] sliceCodingParams.sliceUnitSize 0
     [m3video] sliceCodingParams.sliceStartOffset[0] 0
     [m3video] sliceCodingParams.sliceStartOffset[1] 0
     [m3video] sliceCodingParams.streamFormat 0
     [m3video] =============================
     [m3video] loopFilterParams.loopfilterPreset 0
     [m3video] loopFilterParams.loopfilterDisableIDC 0
     [m3video] loopFilterParams.filterOffsetA 0
     [m3video] loopFilterParams.filterOffsetB 0
     [m3video] =============================
     [m3video] fmoCodingParams.fmoCodingPreset 0
     [m3video] fmoCodingParams.numSliceGroups 1
     [m3video] fmoCodingParams.sliceGroupMapType 4
     [m3video] fmoCodingParams.sliceGroupChangeDirectionFlag 0
     [m3video] fmoCodingParams.sliceGroupChangeRate 0
     [m3video] fmoCodingParams.sliceGroupChangeCycle 0
     [m3video] fmoCodingParams.sliceGroupParams[0] 0
     [m3video] fmoCodingParams.sliceGroupParams[1] 0
     [m3video] =============================
     [m3video] vuiCodingParams.vuiCodingPreset 1
     [m3video] vuiCodingParams.aspectRatioInfoPresentFlag 1
     [m3video] vuiCodingParams.aspectRatioIdc 0
     [m3video] vuiCodingParams.videoSignalTypePresentFlag 1
     [m3video] vuiCodingParams.videoFormat 2
     [m3video] vuiCodingParams.videoFullRangeFlag 0
     [m3video] vuiCodingParams.timingInfoPresentFlag 1
     [m3video] vuiCodingParams.hrdParamsPresentFlag 1
     [m3video] vuiCodingParams.numUnitsInTicks 1000
     [m3video] =============================
     [m3video] stereoInfoParams.stereoInfoPreset 0
     [m3video] stereoInfoParams.topFieldIsLeftViewFlag 1
     [m3video] stereoInfoParams.viewSelfContainedFlag 0
     [m3video] =============================
     [m3video] framePackingSEIParams.framePackingPreset 0
     [m3video] framePackingSEIParams.framePackingType 3
     [m3video] framePackingSEIParams.frame0PositionX 0
     [m3video] framePackingSEIParams.frame0PositionY 0
     [m3video] framePackingSEIParams.frame1PositionX 0
     [m3video] framePackingSEIParams.frame1PositionY 0
     [m3video] framePackingSEIParams.reservedByte 0
     [m3video] =============================
     [m3video] svcCodingParams.svcExtensionFlag 0
     [m3video] svcCodingParams.dependencyID 0
     [m3video] svcCodingParams.qualityID 0
     [m3video] svcCodingParams.enhancementProfileID 0
     [m3video] svcCodingParams.layerIndex 0
     [m3video] svcCodingParams.refLayerDQId 0
     [m3video] =============================
     [m3video] interlaceCodingType 4
     [m3video] bottomFieldIntra 0
     [m3video] gopStructure 0
     [m3video] entropyCodingMode 1
     [m3video] transformBlockSize 2
     [m3video] log2MaxFNumMinus4 10
     [m3video] picOrderCountType 0
     [m3video] enableWatermark 0
     [m3video] IDRFrameInterval 1
     [m3video] pConstantMemory 0
     [m3video] maxIntraFrameInterval 2147483640
     [m3video] debugTraceLevel 0
     [m3video] lastNFramesToLog 0
     [m3video] enableAnalyticinfo 0
     [m3video] enableGMVSei 0
     [m3video] constraintSetFlags 0
     [m3video] enableRCDO 0
     [m3video] enableLongTermRefFrame 0
     [m3video] LTRPPeriod 0
     [m3video] numTemporalLayer 1
     [m3video] referencePicMarking 1
     [m3video] =============================
     [m3video] =============================
     [m3video] videnc2DynamicParams.size 240
     [m3video] videnc2DynamicParams.inputHeight 1080
     [m3video] videnc2DynamicParams.inputWidth 1920
     [m3video] videnc2DynamicParams.refFrameRate 30000
     [m3video] videnc2DynamicParams.targetFrameRate 60000
     [m3video] videnc2DynamicParams.targetBitRate 14000000
     [m3video] videnc2DynamicParams.intraFrameInterval 60
     [m3video] videnc2DynamicParams.generateHeader 0
     [m3video] videnc2DynamicParams.captureWidth 1920
     [m3video] videnc2DynamicParams.forceFrame 4294967295
     [m3video] videnc2DynamicParams.interFrameInterval 2
     [m3video] videnc2DynamicParams.mvAccuracy 2
     [m3video] videnc2DynamicParams.sampleAspectRatioHeight 1
     [m3video] videnc2DynamicParams.sampleAspectRatioWidth 1
     [m3video] videnc2DynamicParams.ignoreOutbufSizeFlag 1
     [m3video] videnc2DynamicParams.putDataFxn 0
     [m3video] videnc2DynamicParams.putDataHandle 0
     [m3video] videnc2DynamicParams.getDataFxn 0
     [m3video] videnc2DynamicParams.getDataHandle 0
     [m3video] videnc2DynamicParams.getBufferFxn 2638810729
     [m3video] videnc2DynamicParams.getBufferHandle 0
     [m3video] videnc2DynamicParams.lateAcquireArg 4294967295
     [m3video] =============================
     [m3video] rateControlParams.rateControlParamsPreset 1
     [m3video] rateControlParams.scalingMatrixPreset 1
     [m3video] rateControlParams.rcAlgo 0
     [m3video] rateControlParams.qpI 26
     [m3video] rateControlParams.qpMaxI 51
     [m3video] rateControlParams.qpMinI 5
     [m3video] rateControlParams.qpP 26
     [m3video] rateControlParams.qpMaxP 51
     [m3video] rateControlParams.qpMinP 5
     [m3video] rateControlParams.qpOffsetB 4
     [m3video] rateControlParams.qpMaxB 44
     [m3video] rateControlParams.qpMinB 10
     [m3video] rateControlParams.allowFrameSkip 0
     [m3video] rateControlParams.removeExpensiveCoeff 0
     [m3video] rateControlParams.chromaQPIndexOffset 0
     [m3video] rateControlParams.IPQualityFactor 0
     [m3video] rateControlParams.initialBufferLevel 28000000
     [m3video] rateControlParams.HRDBufferSize 28000000
     [m3video] rateControlParams.minPicSizeRatioI 0
     [m3video] rateControlParams.maxPicSizeRatioI 640
     [m3video] rateControlParams.minPicSizeRatioP 0
     [m3video] rateControlParams.maxPicSizeRatioP 0
     [m3video] rateControlParams.minPicSizeRatioB 0
     [m3video] rateControlParams.maxPicSizeRatioB 0
     [m3video] rateControlParams.enablePRC 1
     [m3video] rateControlParams.enablePartialFrameSkip 0
     [m3video] rateControlParams.discardSavedBits 1
     [m3video] rateControlParams.VBRDuration 8
     [m3video] rateControlParams.VBRsensitivity 0
     [m3video] rateControlParams.skipDistributionWindowLength 5
     [m3video] rateControlParams.numSkipInDistributionWindow 2
     [m3video] rateControlParams.enableHRDComplianceMode 1
     [m3video] rateControlParams.frameSkipThMulQ5 0
     [m3video] rateControlParams.vbvUseLevelThQ5 0
     [m3video] =============================
     [m3video] interCodingParams.interCodingPreset 1
     [m3video] interCodingParams.searchRangeHorP 144
     [m3video] interCodingParams.searchRangeVerP 32
     [m3video] interCodingParams.searchRangeHorB 144
     [m3video] interCodingParams.searchRangeVerB 16
     [m3video] interCodingParams.interCodingBias 1
     [m3video] interCodingParams.skipMVCodingBias 1
     [m3video] interCodingParams.minBlockSizeP 1
     [m3video] interCodingParams.minBlockSizeB 1
     [m3video] interCodingParams.meAlgoMode 0
     [m3video] =============================
     [m3video] intraCodingParams.intraCodingPreset 0
     [m3video] intraCodingParams.lumaIntra4x4Enable 0
     [m3video] intraCodingParams.lumaIntra8x8Enable 255
     [m3video] intraCodingParams.lumaIntra16x16Enable 15
     [m3video] intraCodingParams.chromaIntra8x8Enable 15
     [m3video] intraCodingParams.chromaComponentEnable 1
     [m3video] intraCodingParams.intraRefreshMethod 0
     [m3video] intraCodingParams.intraRefreshRate 0
     [m3video] intraCodingParams.gdrOverlapRowsBtwFrames 0
     [m3video] intraCodingParams.constrainedIntraPredEnable 0
     [m3video] =============================
     [m3video] sliceCodingParams.sliceCodingPreset 0
     [m3video] sliceCodingParams.sliceMode 0
     [m3video] sliceCodingParams.sliceUnitSize 0
     [m3video] sliceCodingParams.sliceStartOffset[0] 0
     [m3video] sliceCodingParams.sliceStartOffset[1] 0
     [m3video] sliceCodingParams.streamFormat 0
     [m3video] =============================
     [m3video] sliceGroupChangeCycle 0
     [m3video] searchCenter.x 32767
     [m3video] searchCenter.y 32767
     [m3video] enableStaticMBCount 0
     [m3video] enableROI 0

  • Hi Sebastian, 

                By enabling B frame, the DDR Usage & Bandwidth will increase. H.264 Encoder is capable of doing 60fps Encoding for the given parameters.

    Can you make sure that you had provided enough buffer of memory to each chain because in case of B frames memory requirement increases & Encoder hold more frame than the P frames case. So allocation wise if less buffers are allocated to Codec or any other modules then frame drop observed.

    Regards

    Gajanan

  • Hello,

    In the basic usecase of just VIP --> ENC I've assigned the maximum number of buffers to each, that is:

    ENC_LINK_MAX_OUT_FRAMES_PER_CH to the ENC link (numBufPerCh[0]).
    CAPTURE_LINK_MAX_FRAMES_PER_CH to the capture link (numBufsPerCh).

    I'm only using one channel in each link.  Is there any other buffer I should be configuring that I'm not aware of?

    Regards,
    Sebastian.

  • Hi Sebastian,

    I don't have complete idea of DVR-RDK & its memory usage. And also I hope you have enabled TILER memory which will impact the performance as well. Check also the DDR Usage in case of B frames.

    Regards
    Gajanan