Search code examples
delphicompressiondirectshowvfwfourcc

Lookup compressor/filter friendly name from FOURCC ID in Delphi 6 application?


I have a Delphi 6 application that asks the user to select an audio and video compressor using AVISaveOptions(). I then store the FOURCC IDs of each selection in a data file. I want to look up the Filter friendly name for each selection using the FOURCC ID belonging to each compressor/filter , so I can show the user their current choices at a later time with the compressor/filter friendly name showing next to the selected FOURCC IDs. How can I do this?

Note I just want to show the user the same long form name that shows in the AVISaveOptions() dialog box that prompts the user for a selection by offering them a list box with the friendly names in it.


Solution

  • ICOpen opens driver for the given FourCC, then ICGetInfo gets you ICINFO structure with descriptions.