Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add `get_duration` method to VideoManager #109

Breakthrough opened this issue Jul 11, 2019 · 1 comment


Copy link

commented Jul 11, 2019

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.


This comment has been minimized.

Copy link
Owner Author

commented Aug 4, 2019

This has actually been included in v0.5.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.