Skip to content

Video Processing Time Calculation

shakespeare-xinthe edited this page Mar 5, 2025 · 3 revisions

The process for calculating the time required to process a video based on its duration, frame rate (FPS), and Darknet-Frames-Rate (DFR).

Example Scenario:

  • Video Duration: 3 minutes
  • Video Frame Rate: 30 FPS
  • Darknet-Frames-Rate (DFR): 90 DFR

To determine the total processing time, we calculate the number of frames in the video and the rate at which Darknet can process them.

Step 1: Calculate Total Frames in the Video

The total number of frames can be calculated using the formula:

Total Frames = Duration (in seconds) × Video FPS

For a 3-minute video at 30 FPS:

3 minutes × 60 seconds per minute × 30 FPS = 5400 frames

Step 2: Calculate Processing Time

The processing time is determined by dividing the total number of frames by the DFR:

Processing Time (in seconds) = Total Frames / DFR

For 5400 frames processed at 90 DFR:

5400 frames / 90 DFR = 60 seconds

Conclusion:

A 3-minute video at 30 FPS will take approximately 60 seconds (1 minute) to process when the Darknet-Frames-Rate (DFR) is set to 90 DFR.