How to export crisp pixel art video without blurry edges
If a sprite looks sharp while stationary and soft while moving, check where it lands on the pixel grid. If the whole frame softens after export, look at scaling and video encoding. Make a test frame with bright color edges, tiny lettering, and a diagonal line so you can distinguish the two problems before rendering a full scene.
Scale the original frames by a whole number
Build the scene at 320 × 180 and scale it up six times with nearest-neighbor sampling for a 1920 × 1080 export. Place sprites, tiles, and the camera on integer coordinates in the source grid. For motion slower than one source pixel per frame, keep the fractional position in the animation state and draw the sprite at a rounded position. The sprite then advances when its position reaches the next displayed pixel.
If you have a PNG sequence, use FFmpeg to make a nearest-neighbor preview. Save the PNGs for comparison if the video adds blurry color edges. FFmpeg scaling documentation
ffmpeg -framerate 30 -start_number 1 -i frame-%04d.png -vf "scale=1920:1080:flags=neighbor" -c:v libx264 -crf 16 -pix_fmt yuv420p pixel-preview.mp4
This command expects 320 × 180 PNGs starting at frame-0001.png and an FFmpeg build with libx264. The output uses 4:2:0 chroma subsampling, so pay special attention where thin, saturated colors meet.
Ask Claude to write a test scene
Write a 30 fps export test on a 320 × 180 logical canvas. Move a sprite across a checkerboard one pixel at a time for 30 frames, then show thin saturated red and blue lines and pixel lettering. Produce one original PNG and one 6× nearest-neighbor PNG. Log the sprite and camera draw positions at frames 0, 15, and 29.
If the PNG is crisp and the MP4 softens only at red and blue edges, compare encoding settings. If both are blurry, inspect image smoothing and layer transforms in the renderer first.