Turn a video into pixel art style
useful tips
// what it does
Fakes chunky pixel art with two scale passes and no interpolation: the first scale=iw/10:ih/10:flags=neighbor collapses the frame to a tenth of its size using nearest-neighbor sampling, and the second scale=iw*10:ih*10:flags=neighbor blows it back up, again with neighbor so each surviving pixel becomes a hard 10x10 block. The downscale is what actually destroys detail; the upscale just restores dimensions with crisp edges.
// shell
$ ffmpeg -i input.mp4 -vf "scale=iw/10:ih/10:flags=neighbor,scale=iw*10:ih*10:flags=neighbor" output.mp4// gotcha
iw/ih in the second scale refer to the already-shrunken intermediate frame, so integer rounding on dimensions not divisible by 10 means the output can be a few pixels off the original size; flags=neighbor is essential — swscale's default bicubic scaling would smooth the blocks back into mush.