Video Acquisition: List All Codecs on a System

Brief source code snippet that illustrates how to list all available codecs that are installed on a system.
Language:.NET C#/Visual Basic
Version:3.0.3
Released on:April 7, 2005
Author:IC Imaging Control Support Department
Requirements:IC Imaging Control >2.1
Camera, converter or grabber with WDM Stream Class drivers.

The window of the resulting application looks as follows:

The Testdialog of IC Imaging Control,

The program is based on the collection .AviCompressors. First of all, a listbox, that will later be used to list all available codecs, is dragged onto the form and labeled lstCodecs. To add the list of codecs to the listbox, its DataSource simply has to be set to icImagingControl1.AviCompressors.

[C#]
private void Form1_Load(object sender, System.EventArgs e)
{
    lstCodecs.DataSource = icImagingControl1.AviCompressors;
}

Related Source Code Samples

Disclaimer
The source code that appears in the IC Imaging Control Source Code Library is indented for educational purposes only. The Imaging Source Europe GmbH, the manufacturer of IC Imaging Control, does not assume any kind of warranty expressed or implied, resulting from the use of the content of this page.

This site is part of The Imaging Source Network. Other sites include Company Portal, Image Processing, Astronomy Cameras, Astronomy Cameras Blog, Blog caméras d'astronomie, Astronomy Cameras Competition, TX Text Control, LiveDocx, phpLiveDocx and Forums.