Copyright © 2005-2018 MultiMedia Soft

VideoFiltersFfdShowDecoderGet method

Previous pageReturn to chapter overviewNext page



If FFDSHOW is installed inside the system, obtains the FFDSHOW decoder set for a certain video format. The current decoder can be changed through the VideoFiltersFfdShowDecoderSet method.


You can know if FFDSHOW is installed by querying the VideoFiltersFfdShowIsAvailable method.


Inside Appendix B you will find a few guidelines that could be of help in order to manage DirectShow configuration through K-Lite provided tools.


For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow section.





[Visual Basic]

Public Function VideoFiltersFfdShowDecoderGet (

strVideoFormat as string,

ByRef nDecoder as Int16

) as enumErrorCodes



public enumErrorCodes VideoFiltersFfdShowDecoderGet (

string strVideoFormat,

ref Int16 nDecoder




public: enumErrorCodes VideoFiltersFfdShowDecoderGet (

string strVideoFormat,

Int16 __gc *nDecoder










String representing the registry sub-key for the video format as managed by FFDSHOW inside the registry key HKEY_CURRENT_USER\Software\GNU\ffdshow, for example "mpg1" for MPEG1, "mpg2" for MPEG2, "mp4v" for MP4V, etc.,


Reference that, on return from the method call, will contain the current decoder selected for the given video format.

When no decoder has been set the returned value is 0; depending upon the video format in use this value may assume different meanings; for example, when dealing with MPEG1 and MPEG2 formats, the value 1 means that the selected decoder is "libavcodec" while the value 5 means that the selected decoder is "libmpeg2".



Return value






Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0

The method call was successful.