Link Search Menu Expand Document

Can’t create RGB2YUV Filter Error

The SDK throws the System.Runtime.InteropServices.COMException: 'Can't create RGB2YUV Filter.' error message when some video codecs are missing. Please check if you have the Microsoft Visual C++ 2010 Service Pack 1 Redistributable installed. If yes, kindly install the Windows Media Player and it should fix the issue. If no, kindly install both and it should fix the issue.

To check which specific codec is missing, please add capturer.SetLogFile('log.txt') in your code. It will write to the log all the available video/audio codecs and the error details.

If you are capturing into webm video format (supported by Google). Please try to install directshow filters from the official WebM project page (supported by Google):

If you have tried the instructions above but still get the error message, please try the steps below:

On the development computer please explore c:\program files\ByteScout Screen Capturing SDK\ and copy \Redistributable folder. Past this folder into the target computer into My Documents folder.

Then explore WebM subfolder and run in As Administrator mode the following batches to install RGB to YUV filter:

InstallVCRuntimes.bat InstallWebMCodecs.bat

This should install RGBtoYUV420Filter codec (RGBtoYUV420Filter.dll file).