Ask Your Question

videoCapture format supported by opencv

asked 2013-04-04 08:20:34 -0500

ido gravatar image

I am new to OpenCV.
I would like to know what video API / formats are supported by openCV. WDM? VFW? etc.
How can i check for it myself (manual???) without asking questions in the forum?

strong text

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-04-04 10:09:09 -0500

Look at this page:

Then scroll for the function VideoCapture::set

  • Choose parameter CV_CAP_PROP_FOURCC
  • You can set it to whichever encoder that is used in your video

Retrieve four_cc codes at :

edit flag offensive delete link more


And probably CV_CAP_PROP_FORMAT will also have something to do with it, but I cannot find any list on the internet on the possible formats...

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-04 10:11:26 -0500 )edit

Could you list the format that opencv supported? I am also curious for this. As I know, it supports AVI format.

imben1109 gravatar imageimben1109 ( 2018-08-10 00:46:56 -0500 )edit

For now I have been successful at combining AVI container with XVID encoder. So I sticked with that combo.

StevenPuttemans gravatar imageStevenPuttemans ( 2018-08-17 03:41:25 -0500 )edit

Question Tools


Asked: 2013-04-04 08:20:34 -0500

Seen: 34,729 times

Last updated: Apr 04 '13