Reputation: 1876
Is there any CAP_PROP_*
to find the total time in seconds of the video ?
Or do I have to divide total frames by fps?
Upvotes: 2
Views: 1896
Reputation: 657
Check out this link.
You can also get the length of the entire video in seconds from CV_CAP_PROP_FPS and CV_CAP_PROP_FRAME_COUNT.
Upvotes: 2