glitch0r randomly shifts horizontal blocks of the picture sideways and distorts their colors, like a damaged digital signal. The four values set how often and how hard it glitches.

Variant in the source: the stronger 0.3|0.3|0.6|0.3 with crop=1024:768 after it, encoded to H.264.

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.1|0.2|0.1|0" \
  -pix_fmt yuv422p10le \
  -c:v prores -profile:v 2 \
  output.mov

What each part does

frei0r=glitch0r:0.1|0.2|0.1|0
                       parameters, in order (each 0–1):
                       glitch frequency | block height range |
                       shift intensity | color glitching intensity
                       (0 color = shifts only, no color damage)
-pix_fmt yuv422p10le -c:v prores -profile:v 2
                       ProRes 422, 10-bit 4:2:2, for editing

When to use it

Use this when you want blocky, damaged-signal glitches on a clip that's going back into an editor. The ProRes 422 output holds up through further cutting and grading. The default values are gentle: occasional sideways block shifts with no color damage. For a final web upload, encode the result separately, because the .mov file is large. The header explains each flag.

Useful variations:

  • For heavier damage, try the source's stronger values 0.3|0.3|0.6|0.3, which also turn on color glitching.
  • Keep the gentle shifts but add color damage by raising only the last value above 0.
  • Change input.mp4 and output.mov to your own file names.

If ffmpeg reports "Could not find module", set FREI0R_PATH as the header shows. If the output looks barely touched, the first value (glitch frequency) is probably too low for your clip, so raise it. For a different glitch look, see random-difference-glitch.sh.

Notes

Source
ffmpeg-utilities/notes/commands2.txt
Changed
".1|.2|.1|0" → "0.1|0.2|0.1|0" (same values, clearer)