Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+40 votes

I want to use this number so that my slider can work for videos of any length.

asked in CSC285_Fall2018 by (1.4k points)
+4

Note: this question is basically a duplicate of: http://lovelace.augustana.edu/q2a/index.php/126/how-to-use-the-slider-to-change-frames (although your question title is more accurate).

1 Answer

+3 votes

You can use
vidCap.get(Videoio.CV_CAP_PROP_FRAME_COUNT);

answered by (8 points)
...