Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+50 votes

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

asked in CSC285_Fall2018 by (1 point)
+5

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

+5 votes

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

answered by (1 point)
...