Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set camera format in OpenCV

Hello,

I have a Logitech HD Pro Webcam C920, and it supports three formats: YUV4:2:2, H.264, and MJPEG. So I want to set its format to H.264 with OpenCV. How can I do that?

I can set height, width or some other properties of the frame with capture.set(), but I couldn't find any path for setting the format.

I am using OpenCV 2.4.11 and Visual Studio 2013.