Skip to content

Bug in OpenCv, cap.set(cv2.CAP_PROP_POS_FRAMES, index) returning *wrong* frames ! #12

@yzerlaut

Description

@yzerlaut

Hey,

In case you didn't know, look at this bug:
opencv/opencv#9053

This means that when we're using:

cap.set(cv2.CAP_PROP_POS_FRAMES, index)
ok, frame = cap.read()

you're getting the wrong frame !

From what I tested, in our videos, the frame returned can be off by +/- 2s, that's huge !

And I couldn't find any good way to reliably grab a frame from a video file... If you find one let me know !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions