Skip to content

VideoCapture::read() blocks when reading a video file #5766

@Werkov

Description

@Werkov

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions