Copyright © 2005-2023 MultiMedia Soft

VideoFiltersFfdShowDecoderSet method

Previous pageReturn to chapter overviewNext page



If FFDSHOW is installed inside the system, modifies the FFDSHOW decoder set for a certain video format. You can obtain the current selected decoder through the VideoFiltersFfdShowDecoderGet method.


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



Important note


Since 2016 FFDSHOW filters are no more included inside the K-Lite Codec Pack so this method is now obsolete.



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 VideoFiltersFfdShowDecoderSet (

strVideoFormat as string,

nDecoder as Int16

) as enumErrorCodes



public enumErrorCodes VideoFiltersFfdShowDecoderSet (

string strVideoFormat,

Int16 nDecoder




public: enumErrorCodes VideoFiltersFfdShowDecoderSet (

string strVideoFormat,

Int16 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.,


The identifier of the new decoder for the given video format.

You can disable using any FFDSHOW decoders for the given video format by setting this value to 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 selects the "libavcodec" decoder while the value 5 selects the "libmpeg2" decoder.



Return value






Negative value

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

enumErrorCodes.NOERROR (0

The method call was successful.