Lists each encoder and filter used in this repo as ok or MISSING, then checks for the frei0r plugins and optional SVG support. Asking ffmpeg what it can actually do (-encoders, -filters) is more reliable than matching ./configure flags, whose names change between versions.
The command
encoders=(libx264 aac libtheora libvorbis prores prores_ks mpeg4)
filters=(minterpolate frei0r normalize tblend tmix shuffleframes random
unsharp delogo xstack amix loudnorm atempo palettegen paletteuse
showwaves showcqt avectorscope aphasemeter ahistogram)
plugins=(nervous sobel invert0r distort0r glitch0r colordistance baltan vertigo)
check() {
local kind=$1; shift
local list; list="$(ffmpeg -hide_banner -"$kind" 2>/dev/null)"
for name in "$@"; do
if grep -qE "^ [^ ]+ ${name} " <<<"$list"; then
echo "ok $kind: $name"
else
echo "MISSING $kind: $name"
fi
done
}
check encoders "${encoders[@]}"
check filters "${filters[@]}"
dirs=( ${FREI0R_PATH//:/ } "$HOME/.frei0r-1/lib" /usr/local/lib/frei0r-1 /usr/lib/frei0r-1 /opt/homebrew/lib/frei0r-1 )
for p in "${plugins[@]}"; do
found=""
for d in "${dirs[@]}"; do [ -e "$d/$p.so" ] && found="$d" && break; done
if [ -n "$found" ]; then echo "ok frei0r: $p ($found)"; else echo "MISSING frei0r: $p"; fi
done
if ffmpeg -hide_banner -decoders 2>/dev/null | grep -qi librsvg; then
echo "ok decoder: librsvg (SVG input)"
else
echo "optional decoder: librsvg not built in; rasterize SVGs first (see image-sequence/svg-frames-to-prores4444-alpha.sh)"
fi What each part does
ffmpeg -hide_banner -encoders / -filters / -decoders
the capability lists to search
FREI0R_PATH where ffmpeg looks for frei0r plugins; this
script checks it plus the usual default folders
and Homebrew's /opt/homebrew/lib/frei0r-1 When to use it
Run this first on a new machine, or after upgrading or reinstalling ffmpeg, before trying the examples in this collection. It marks each encoder, filter and frei0r plugin the examples call as ok or MISSING, then reports whether SVG input is available. The header explains how each check works. It confirms only that a component is present, not that a given command will succeed, so it doesn't replace running the script you actually need.
To check your own additions, add names to the encoders, filters or plugins arrays. If your frei0r plugins are in an unusual folder, set FREI0R_PATH to that folder before running.
If the output looks wrong:
- Everything is
MISSING: the script discards ffmpeg's errors, so check thatffmpegis on yourPATHand runs. - Results don't match the build you expect: check which
ffmpegcomes first on yourPATH. - The
frei0rfilter isokbut plugins areMISSING: pointFREI0R_PATHat the plugin folder. The frei0r effects need these plugins. - librsvg is not built in: rasterize the SVGs first with svg-frames-to-prores4444-alpha.sh.
Notes
- Source
- ffmpeg-utilities/notes/commands2.txt
- Changed
- the original grepped ffmpeg's banner for --enable-… configure flags, including several (libfaac, libspeex, libopenjpeg) that are long gone or renamed. This version checks what the examples actually call.