I’m developing an application, which allows to record video from web camera. (using visual studio 2008, c#)
The required compress ratio is approximately 10 secs = 1 mb. I found the only one, that suits this: the one from DivX Codec Pack, but it seems to be not free. Or, may be, not, I’m not sure: it installs via DivXInstaller, which downloads many garbage, that I don’t need, and at DivX Control Panel there is a label: DivX Codec, trial, 15 days left. And this label isn’t changing for more than two weeks…
The other good alternative is VP40® Compressor. Compress ratio is about 1 sec to 1 mb. But it has some strange problems with Windows XP, and I cannot understand yet, what’s wrong with it.
There are the questions I have now:
- Is there a good installer for DivX Codec Pack, which will install only this pack, without adding 200 mb weight garbage?
- Are there other good video compressors, compatible with DirectShow? The ones, that I have by default (like Microsoft Video 1, DV Video Encoder, etc.) either have bad compress ration, or have a terribly bad recorded video quality.
- Well, of course, a free compressor is preferred.
P.S. Sorry for my bad English.
A piece of code:
// the part of method to record video
capture = new Capture(filters.VideoInputDevices[VCB.SelectedIndex], filters.AudioInputDevices[ACB.SelectedIndex]);
// VCB & ACB are the combobox for video & audio capture devices
capture.VideoCompressor = filters.VideoCompressors[CCB.SelectedIndex];
// that's the video compressor, that is used
//and then:
try
{
capture.PreviewWindow = panelVideo;
Log.CreateLogFiles("Video panel initialized");
}
catch (Exception ex) { Log.CreateLogFiles(ex); }
capture.Filename = "Somestring";
capture.Start();