requires a 16x16 png with just white and black pixels
The command
ffmpeg -i video-input.mp4 -i bw.png -lavfi "paletteuse=dither=sierra2" video-output.mp4 When to use it
This is used to get a stark, 1-bit look, where every pixel is pure black or pure white and tones are rendered as dither patterns. It suits stylised clips, music visuals and retro computer aesthetics. It is a poor fit when you need to keep color, fine detail or a subtle grade. The header explains the palette image the command needs.
The simplest variation is to swap bw.png for another 16x16 PNG that uses two different colors, such as green and black, to get a duotone instead. For a looping image rather than a video, see palette-gif.sh.
If the output looks wrong, check these:
- Gray or colored pixels appear: the palette PNG probably isn't pure. Make sure it is exactly 16x16 and holds only black and white pixels, with no antialiasing and no gray.
- The dither looks smeared or muddy: the MP4 encode is lossy, so it softens the fine pattern. The effect survives best at larger frame sizes.