Problem with VFW / Capturing Video / Sony DV Camcorder
I am facing a problem when trying to record video using VFW library and Sony DV Camcorder.
Below given is the simple code and it works well. I have tested it with 2 web cams - Logitech and Intel.
When I use my Sony DV Camcorder - I see a blank/black window (of the size WIDTH/HEIGHT as mentioned in the code). I find that all the functions - capDriverConnect, capPreviewRate and capPreview - return TRUE even when I get the blank/black window in the name of preview area.
What surprises me more is that the same code and the Sony DV Camcorder were working fine when tested almost a month back using my colleague's machine. The only difference is that I connected the camera using an external Firewire card to his PC. My laptop has a Firewire port so I connect the camera using the same. When I try to use Windows Movie Maker or Windows Explorer to see if the camera/cable is working fine, everything works well.
I was curious to see the results of capGetVideoFormat. I have attached a snapshot which shows the state of BITMAPINFO. The values look strange to me. Never seen this value for biCompression.
Re: Problem with VFW / Capturing Video / Sony DV Camcorder
I don't think that biCompression is the problem; it's just the codec used by de camera to translate the raw data internally. If you ever have to handle this data yourself, you will need biCompression to decompress it (via sequence ICOpen() / IcImageDecompress() / ICClose())
Perhaps the problem is in the last parameter of capDriverConnect (capture_window, 0);
0 stands for autodetection, the system will choose automatically the driver. So if you have 2 or more drivers, are you sure it will choose the one you want?
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.