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

Can't open most AVI videos, the one I can retreives duplicate frames

$
0
0
Hello! I have a couple videos which I believe OpenCV should handle, however `VideoCapture::open()` simply returns false. They're regular AVI videos encoded with XVid. I found a [(now defunct) site](https://web.archive.org/web/20130524095153/http://opencv.willowgarage.com/wiki/VideoCodecs) detailing the codecs which OpenCV handles, so I converted the video using the snippet on page: mencoder in.avi -ovc raw -vf format=i420 -o out.avi During the conversion, mencoder complained a lot about "duplicate frames" which don't seem to be any trouble to VLC, which plays the video at regular speed, without any duplicates, but OpenCV seems to apparently process those, so every ~40 `read()`s or so return the same frame - which obviously distorts the analytics I'd like to perform on the video. Sorry for the vague descriptions, but I'm really confused about this. I'd like to either eliminate those duplicate frames, or better, be able to load the XVid videos directly, without conversion. Thank you!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



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