Chains three frei0r filters: heavy block glitching, then Sobel edge detection, which turns the glitched picture into glowing outlines, then Baltan, which blends in recent frames so moving edges leave ghost trails.

frei0r: if ffmpeg reports "Could not find module", point it at the plugin folder. Homebrew on Apple Silicon installs them where ffmpeg doesn't look by default: export FREI0R_PATH=/opt/homebrew/lib/frei0r-1

The command

ffmpeg -i input.mp4 \
  -vf "frei0r=glitch0r:0.3|0.3|0.6|0.3,frei0r=sobel,frei0r=baltan" \
  -r 29.97 \
  -c:v libx264 -pix_fmt yuv420p \
  output.mp4

What each part does

frei0r=glitch0r:0.3|0.3|0.6|0.3
                       frequent, strong block shifts with color damage
frei0r=sobel           white edges on black
frei0r=baltan          EffecTV "delayed alpha smoothed blit of time":
                       afterimage trails
-r 29.97 -c:v libx264 -pix_fmt yuv420p

When to use it

This is for when you want footage reduced to glowing, broken outlines that smear as things move. It suits music videos, title backdrops and loops, especially with clear motion against a plain background. Baltan's trails come from frame-to-frame change, so static shots get the edges but little ghosting. The header explains each filter in the chain.

Skip it when you need clean, readable edges. frei0r-sobel-edges.sh is the simpler starting point. For glitching without the edge pass, try frei0r-glitch0r-prores.sh or frei0r-glitch-vertigo-nervous.sh.

Useful variations:

  • Lower the four glitch0r numbers for occasional damage instead of constant breakup.
  • Drop ,frei0r=baltan for crisp glitched edges without trails.
  • Change -r 29.97 to match your source or delivery rate.

If ffmpeg reports "Could not find module", set FREI0R_PATH as the header shows. If the result is mostly black, the source probably has low contrast or soft focus, which gives Sobel few edges to find.

Notes

Source
ffmpeg-utilities/notes/commands2.txt
Changed
-vcodec → -c:v; removed the spaces after commas in the chain