Ask Your Question
0

videoCapture format supported by opencv

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

ido gravatar image

Hi,
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
1

answered 2013-04-04 10:09:09 -0600

Look at this page:

http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture

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 : http://www.fourcc.org/codecs.php

edit flag offensive delete link more

Comments

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 -0600 )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 -0600 )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 -0600 )edit

Question Tools

Stats

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

Seen: 43,403 times

Last updated: Apr 04 '13