First time here? Check out the FAQ!

Ask Your Question
0

videoCapture format supported by opencv

asked Apr 4 '13

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

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Apr 4 '13

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

Preview: (hide)

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 (Apr 4 '13)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 (Aug 10 '18)edit

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

StevenPuttemans gravatar imageStevenPuttemans (Aug 17 '18)edit

Question Tools

Stats

Asked: Apr 4 '13

Seen: 44,516 times

Last updated: Apr 04 '13