image_pipeline icon indicating copy to clipboard operation
image_pipeline copied to clipboard

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

Open cbteeple opened this issue 4 years ago • 0 comments

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.

cbteeple avatar Sep 29 '20 16:09 cbteeple