-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
VideoCapture::read() blocks when reading a video file #5766
Copy link
Copy link
Closed
Milestone
Description
Hi. I've got a video capture that reads a video file and I'd like to process frames w/out delay. However, my measurements showed that VideoCapture::read() (or VideoCapture::grab()) is blocking -- the time it blocks is the delay between two frames for given framerate of the video.
I observed this on 2.4.11 with GStreamer backend and the delay is propagated from GStreamer pipeline. See explanation what emit-signals does and it is actually set to false in OpenCV.
Is the blocking behavior intended for video files? If so, is there a way how to batch-process a video file? (Unfortunately, setting CV_CAP_PROP_FPS doesn't work with GStreamer backend.)
Thanks.
Reactions are currently unavailable