View Full Version : How to retrieve Win video codec list
johnmeyer
28th May 2007, 04:31
For my own application, I want to populate a listbox with the list of video compression codecs available on the user's computer. The VirtualDub "Select Video Compression" (Video -> Compression ...) list is exactly what I am trying to create.
I am being really thick because I can't seem to find the needed Windows call. Any ideas?
Thanks!
Rainy
28th May 2007, 11:41
ICCompressorChoose displays the standard compressor selection dialog and ICInfo enumerates installed compressors. VirtualDub uses the latter to retrieve compressor information and populate the list box.
johnmeyer
28th May 2007, 16:03
Thanks, that's what I needed.
JohnnyMalaria
28th May 2007, 17:14
The above will enumerate Video for Windows codecs. If you need a list of DirectShow codec filters, you have to also perform a DirectShow enumeration.
johnmeyer
28th May 2007, 18:11
I am trying to get the exact list that is shown in VirtualDub, so I can pass variables from a jscript or vb script running inside of Vegas (the VirtualDub scripting language lets me pass simple parameters from Vegas via the Params[] variable). Unfortunately, despite the above advice, I can't figure out how to type this call to run from this environment. In most environments, I'd declare "msvfw32.dll," then provide the ICCompressorChoose entry point and away I'd go.
It may not be possible from either of these environments.
Thanks again, though, for the help.
JohnnyMalaria
28th May 2007, 19:32
Could you write a proxy dll with a simply entry point to call from your jscript/vb script environment and then have the proxy call the right entry point in msvfw32.dll?
johnmeyer
29th May 2007, 02:32
... write a proxy dll ...
Interesting idea. Would be dead simple to do. I'll try it.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.