X-Posting-Agent: Hamster/1.3.21.120 From: Peter Haas Newsgroups: borland.public.delphi.graphics Subject: Re: Help with Video Capture CODEC Selection Date: Tue, 12 Jun 2001 08:08:39 +0200 References: <3B258A89.7D0C6291@san.rr.com> X-Newsreader: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.155.203.236 Message-ID: <3b25b1d8$1_1@dnews> X-Trace: dnews 992326104 62.155.203.236 (11 Jun 2001 23:08:24 -0700) Lines: 44 Path: dnews Xref: dnews borland.public.delphi.graphics:39625 Hi Alan, Alan Miller wrote in <3B258A89.7D0C6291@san.rr.com>: > I'm fairly new at this video world but I am amazed that I can find no > examples of an application doing video cam capture that doesn't use a > popup window from wfw of which i don't have the source of course. In > other words all the components and examples actually calls this in the > wfw.pas file: > > function capDlgVideoCompression(hwnd:THandle):boolean; > begin > Result := boolean(SendMessage(hwnd, WM_CAP_DLG_VIDEOCOMPRESSION, 0, > 0)); > end; This is the a documented and easy way to choose and initialize all usefully properties. > This brings up a list of available codecs that the user can select > from. However, since that window is controlled from within windows, I > need an example to get the ICinfo on the codecs available to the system > that my app can pick from, (ie. mpeg-4) instead of it always choosing > the default AVI output which is a huge file believe me. I looked up all > the win sdk info on icinfo and icchoose etc. and i just can't seem to > make it work. There is a undocumented way, you can find a list of the installed codecs in the registry: On my computer (Win98SE, german) I have found the entries on: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\MediaResources\icm The relevant codes will begin with vidc. See in the WinSDK for another FOURCC's and more infos: http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/multimed/avicomp_7bar.htm Bye Peter.