views:

460

answers:

2

Do you know how to programatically obtain a list of video codecs installed on computer, from windows forms ?

Thank you.

A: 

Windows Forms are UI elements, so they won't help you there.

As far as retrieving video codec lists, at a high level:

  1. Use DirectShow
  2. You can read from various registry keys that contain codec information
  3. You can check file locations of the codecs you are looking for
  4. You can attempt to open a video file internally and catch an exception where the codecs do not exist. This will likely require some custom code or an API

Also, for future reference, generally stating "I need code" will not net you favorable responses.

JoshJordan
+1  A: 

Try this link...http://stackoverflow.com/questions/30539/best-way-to-enumerate-all-available-video-codecs-on-windows

Note...it's for C++ but should get started in the right direction.

Mozy