How Can We Help?
Why does ffmpegLGPL.exe return No such filter
For example, when using the eq or cartoon video filter, FFmpeg returns “No such filter”.
The ffmpegLGPL.exe executable installed with the Multipurpose Encoder is an LGPL build of FFmpeg. It does not include the GPL-licensed parts of FFmpeg, so some filters are not available, whatever the FFmpeg version:
eqis a GPL-licensed filter, so it is excluded from LGPL builds.cartoonis not a native FFmpeg filter: it only exists as an external frei0r plugin (frei0r=filter_name=cartoon), which is GPL too and requires separate plugin DLLs.
Listing the available filters
To list the filters included in the build, and the options of a given filter:
ffmpegLGPL.exe -filters
ffmpegLGPL.exe -h filter=hueReplacing eq with LGPL filters
- brightness and saturation:
hue, e.g.hue=s=1.3:b=0.3 - contrast and levels:
curves(e.g.curves=preset=increase_contrast) orcolorlevels - gamma:
lutyuv, e.g.lutyuv=y=gammaval(0.8)
Example:
ffmpegLGPL.exe -i %PIPE% -vf "hue=s=1.3:b=0.3,curves=preset=increase_contrast" ...Cartoon effect with LGPL filters
A cartoon-like effect can be obtained by smoothing the image (bilateral), reducing the number of color levels (lutrgb) and adding dark outlines (edgedetect):
-vf "split[a][b];[a]bilateral=sigmaS=8:sigmaR=0.12,lutrgb=r='bitand(val,224)+16':g='bitand(val,224)+16':b='bitand(val,224)+16',format=gbrp[c];[b]edgedetect=low=0.1:high=0.25,negate,format=gbrp[e];[c][e]blend=all_mode=multiply,format=yuv420p"This filter chain is CPU-intensive at high resolutions: for live video, check the CPU load and apply it at a lower resolution if needed.
From TVideoGrabber
In FFmpeg command-line mode (EnableMultipurposeEncoder), add the -vf option to the command line passed to SetMultipurposeEncoderSettings.
The FFmpeg video filters applied with SetFFmpegFilter use the same LGPL FFmpeg libraries, so eq is not available there either. Use e.g.:
VideoGrabber.SetFFmpegFilter (0, 'hue', 's=1.3:b=0.3');Using a GPL build of FFmpeg instead
The Multipurpose Encoder can launch another FFmpeg executable: replace ffmpegLGPL.exe at the beginning of the command line with the full path of the executable, e.g.:
C:\ffmpeg\bin\ffmpeg.exe -i %PIPE% -vf eq=contrast=1.2:saturation=1.3 ...Static GPL builds of FFmpeg for Windows can be downloaded from the “Windows EXE Files” section of the FFmpeg download page (gyan.dev or BtbN). These builds include eq. Please note:
- these builds are 64-bit and GPL-licensed. If you redistribute ffmpeg.exe with your application, the GPL obligations apply to ffmpeg.exe itself (license text and access to its corresponding source code). As long as your application only launches it as a separate process, your own application is generally not affected. The simplest way is to let your end users download it themselves.
cartoonstill requires a build with frei0r enabled (e.g. the gyan.dev “full” build) plus the frei0r plugin DLLs installed separately.- this only applies to the Multipurpose Encoder command line:
SetFFmpegFilteralways uses the LGPL FFmpeg libraries.