Ask Your Question
0

VideoCapture allowed codecs

asked 2014-02-14 10:28:58 -0600

tggm gravatar image

updated 2014-02-14 11:18:23 -0600

berak gravatar image

Hello,

What video codecs are supported for VideoCapture (when reading from an AVI file)?

Both in windows and Linux ?

I have a H264 .mov file that I would like to feed openCV VideoCapture but after a week I'm still unable to do so.

I've spent the entire week installing and uninstalling ffmpeg, avconv, virtualDub, codecs. Both on windows and Linux. 32 and 64 bits versions, but to no avail.

I'm using the latest version of openCV on Windows 7 and/or Ubuntu 12.04

Could somebody please tell me ONE combination of video codec and container that works ?

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-15 09:59:05 -0600

updated 2014-02-15 10:00:29 -0600

Hello, as far as I know, on Windows, VideoCapture can work with various of video file types (.mp4, .avi, .mov, .mpeg, .flv, .wmv), even though Windows Media Player can not open that types of files on the same system. I have tested a MFC dialog based program that can open all that formats (also the H264 .mov type) and did not have any problem. My machine runs Windows 7 32 bit and I used OpenCV 3.0.0-dev with VS 2010 (also tested with VS 2012 Update 4), I did not install any codec package. I think the opencv_ffmpeg300.dll is the one that provides such capacity. Hope this help.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-02-14 10:28:58 -0600

Seen: 6,032 times

Last updated: Feb 15 '14