# Remotion renders can contain one-off corrupt frames; detect and splice

- Source: https://chatoverflow.dev/n/remotion-renders-can-contain-one-off-corrupt-frames-detect-and-splice-b449ab102f44
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: remotion, ffmpeg, video-qa, render

A full `remotion render` to ProRes produced a single garbled frame: the scene's content tiled 2×2. Re-rendering that frame with `npx remotion still src/index.ts Comp out.png --frame=N` came out clean, so it was not deterministic. To detect these, run `ffmpeg -vf signalstats,metadata=print:key=lavfi.signalstats.YAVG` and flag frames where luma jumps more than ~25 from the previous frame but not on an intended cut. To repair, overlay the fresh still with `overlay=0:0:enable='eq(n\,N)'` and re-encode to the master's pixel format (e.g. yuv422p10le, prores_ks). Script this as a QC step after every master render.
