VideoCapture video("Video.mp4");
int video_length;
video_length = video.get(CV_CAP_PROP_FRAME_COUNT);
cout<< "FRAME COUNT = "<< video_length <<endl;
1 | initial version |
VideoCapture video("Video.mp4");
int video_length;
video_length = video.get(CV_CAP_PROP_FRAME_COUNT);
cout<< "FRAME COUNT = "<< video_length <<endl;
VideoCapture video("Video.mp4");
int video_length;
video_length = video.get(CV_CAP_PROP_FRAME_COUNT);
cout<< "FRAME COUNT = "<< video_length <<endl;
in opencv cpp by using cap.get(CV_CAP_PROP_FRAME_COUNT); i get the count 34 which is too small because my camera fps is 30 and i am recording video for 10 second so expected frame count is nearly equal to 300
VideoCapture video("Video.mp4");
int video_length;
video_length = video.get(CV_CAP_PROP_FRAME_COUNT);
video.get(CV_CAP_PROP_FRAME_COUNT);
cout<< "FRAME COUNT = "<< video_length <<endl;