Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Read video with VideoCapture in OpenCV 2.4.11

$
0
0
Hi, I am trying to read a video: #include #include int main() { cv::VideoCapture in("mpi_sintel_final_alley_1.avi"); cv::Mat frame; assert(in.isOpened()); assert(in.read(frame)); } The second assertion fails. I've tried some other videos as well, it doesn't work either. I uploaded this video to my GitHub repo: https://raw.githubusercontent.com/vadimkantorov/mpegflow/master/examples/mpi_sintel_final_alley_1.avi The version of OpenCV is 2.4.11 and it is compiled with FFmpeg 2.7.2. What am I missing? Thank you, Vadim

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>