ffmpeg commands
Effects
The scripts in this folder are for stylized and experimental looks rather than delivery: glitches, edge outlines, frame shuffling and stutter, 1-bit dithering, and interpolated slow motion that warps instead of smoothing. They're used when you're making visuals for music videos, projection, or LED walls, and chain them by running one script on another's output for layered effects. Most rely on frei0r plugins, so you need an ffmpeg built with frei0r. Several write ProRes for further editing or a rough draft H.264 for previews, and each header explains its flags and what to change for a final render.
Convert to 1-bit color palette, dithered
ditherpunk.sh
requires a 16x16 png with just white and black pixels
Color-distance map with frei0r colordistance
frei0r-colordistance.sh
Replaces each pixel with its distance from one source color (black by default): areas close to that color go dark and everything else brightens. The result is a grayscale "how different is this from X" map, useful as a matte or for a ghostly, solarized look.
Glitched edges with afterimage trails (glitch0r + Sobel + Baltan)
frei0r-glitch-sobel-baltan.sh
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.
Subtle glitches in a spinning, jittering feedback loop (glitch0r + Vertigo + Nervous)
frei0r-glitch-vertigo-nervous.sh
Light block glitching, then Vertigo, which blends each frame with a zoomed and rotated copy of earlier ones (a swirling video-feedback tunnel), then Nervous, which randomly reorders recent frames so the swirl twitches.
Digital block glitches with frei0r glitch0r (ProRes)
frei0r-glitch0r-prores.sh
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.
"Nervous" 4× slow motion with slowed audio, 4:3 H.264
frei0r-nervous-slowmo-h264.sh
The shareable version of frei0r-nervous-slowmo-prores.sh: same jitter + interpolation effect, with scene-change detection off so cuts blend, audio slowed to match, and a 640×480 frame encoded to H.264.
Jittery "nervous" frame shuffling, stretched into 4× slow motion (ProRes)
frei0r-nervous-slowmo-prores.sh
frei0r's nervous filter randomly swaps each frame with a recent one, making motion twitch and stutter. Interpolating that jittery footage to 4× slow motion makes minterpolate morph between out-of-order frames, which turns the twitching into smeared, warping movement.
Sobel edge detection on its own, cropped to 1024×768
frei0r-sobel-edges.sh
The simplest form of the edge effect: frei0r's Sobel operator keeps only the outlines (white edges on black), then crop keeps a centered 1024×768 (4:3) window for projection or LED-wall work. Run it on footage that's already been processed (e.g. frei0r-nervous-slowmo-prores.sh output) for layered looks.
Stretch an image sequence's levels to full black and white
normalize-levels.sh
The normalize filter maps the darkest pixels to black and the brightest to white over a rolling window of frames, a dynamic auto-levels. With independence=1 each color channel is stretched separately, which also removes color casts (and can shift colors dramatically on flat footage). Use independence=0 to stretch all channels together and keep the hues.
Shuffled difference-blend glitch in interpolated slow motion
random-difference-glitch.sh
Shuffles frames, keeps only the difference between neighbours (glowing motion edges on black), stretches those edges to full contrast, then interpolates the result into ~3.3× slow motion with audio to match.
Rhythmic stutter: flash back to an anchor frame between every frame
shuffleframes-stutter.sh
shuffleframes reorders frames in fixed-size groups following a map. Here each group of 58 output frames alternates between input frame 0 and frames 1–29, so the picture keeps snapping back to the same "anchor" frame while it moves forward: a strobing, looping stutter.
Edge-detected, warped glitch stack (stutter + blend + Sobel + invert)
sobel-edge-glitch.sh
The final stage of a chain built up one filter at a time. Each stage feeds the next:
Source: lucidbeaming/ffmpeg-utilities/effects at v1.0.1