Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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);
        cout<< "FRAME COUNT = "<< video_length <<endl;
click to hide/show revision 2
None

updated 2018-09-17 09:10:16 -0600

berak gravatar image

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);
        cout<< "FRAME COUNT = "<< video_length <<endl;
click to hide/show revision 3
None

updated 2018-09-17 09:11:08 -0600

berak gravatar image

video frame count seems wrong

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;