Skip to content

Fix video frame count estimation by detecting actual FPS from uploaded video#1992

Merged
grzegorz-roboflow merged 2 commits intomainfrom
bug/dg-252-fix-frame-calculation-for-video-stored-at-5fps
Feb 10, 2026
Merged

Fix video frame count estimation by detecting actual FPS from uploaded video#1992
grzegorz-roboflow merged 2 commits intomainfrom
bug/dg-252-fix-frame-calculation-for-video-stored-at-5fps

Conversation

@rafel-roboflow
Copy link
Contributor

@rafel-roboflow rafel-roboflow commented Feb 10, 2026

Resolves DG-252

What does this PR do?

Previously, FPS was assumed to be 30 for all videos. This caused incorrect frame counts in the frontend preview when videos had higher or lower frame rates. This PR uses the actual FPS to calculate frames correctly.

Related Issue(s):

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

Testing

  • I have tested this change locally
  • I have added/updated tests for this change

Test details:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code where necessary, particularly in hard-to-understand areas
  • My changes generate no new warnings or errors
  • I have updated the documentation accordingly (if applicable)

Additional Context

Before and after:

image image

@grzegorz-roboflow grzegorz-roboflow merged commit d93a23e into main Feb 10, 2026
51 checks passed
@grzegorz-roboflow grzegorz-roboflow deleted the bug/dg-252-fix-frame-calculation-for-video-stored-at-5fps branch February 10, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants