Opencv CAP_PROP_FRAME_COUNT return negative larg number
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
0
1
VideoCapture capture(captureFileName); I am using Opencv 3.3.1. I am using the following cod. if (!capture.isOpened()) { throw "Error when reading file"; } cout << "capture.get(CAP_PROP_FRAME_COUNT)" << capture.get(CAP_PROP_FRAME_COUNT) << endl; cout << "capture.get(CV_CAP_PROP_FPS)" << capture.get(CV_CAP_PROP_FPS) << endl; When the video size is around 30MB, capture.get(CAP_PROP_FRAME_COUNT) return value around 16632. However, when the video size is around 150MB, capture.get(CAP_PROP_FRAME_COUNT) retur...