I'm trying to capture a video with my DFGUSB with a determinate contrast, brightness, saturation and sharpness.
Then I would like to show in color and in gray this video from opencv.
Also, I would like to save this video from opencv, for example in .avi.

I have a DFGUSB2 connected to my TV and to my laptop by USB, I use IC Control 3.2 and VisualStudio 2008 (vc8). I have windows 7, 32 bits.

Currently, I have not achieved to save the video with opencv. I think that I have missed something in my code.