Skip to content

Add get_duration method to VideoManager #109

Description

@Breakthrough

As mentioned in #108, the VideoManager provides set_duration but does not provide a corresponding get_duration method.

Currently, the get() method when passed CAP_PROP_FRAME_COUNT will retrieve the total # of frames for all videos opened. This may suit user's needs in the meantime until this issue is resolved.

Finally, when resolved, it is also expected that calling set_duration will affect the # of frames that get() returns (since the VideoManager acts like an iterable container of frames).


Related: get_num_frames(...) (documentation), pure function used internally to calculate total frame count for all videos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions