Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video_recorder skips frames even when they arrive just a fraction too early #604

Closed
cbteeple opened this issue Sep 29, 2020 · 1 comment
Closed

Comments

@cbteeple
Copy link

Package

image_view

Feature

video_recorder skips frames when they arrive too soon to ensure proper framerate

Expected Behavior

If a camera stream is running at 30 fps, then video_recorder should be able to save a 30fps video without dropping frames

Actual Behavior

video_recorder skips frames when they arrive even a fraction of time too early. Since the opencv VideoWriter class expects frames to be given at the set framerate, we end up with a shorter video that plays back faster.

@mikeferguson
Copy link
Member

Calling this a duplicate of #274 - at some point sec_per_frame needs a refactor

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

No branches or pull requests

2 participants