ffmpeg -i input.mkv -vf "mpdecimate,setpts=N/FRAME_RATE/TB" -c:v libx264 -crf 18 output_fixed.mkv The mpdecimate filter drops duplicate frozen frames, while setpts rebuilds the timeline. For leftover artifacts from bad deinterlacing, use QTGMC (the gold standard for anime). In VapourSynth or AviSynth :
ffmpeg -i input.mkv -vf "freezedetect=n=-60dB:d=0.5,metadata=mode=print:file=freeze.txt" -an -f null - This identifies any frame held for >0.5 seconds. Then, to repair: shinseki nokotowo tomari dakara animation fix
import vapoursynth as vs core = vs.core clip = core.ffms2.Source("input.mkv") clip = core.qTGMC.QTGMC(clip, Preset="Fast", TFF=True) clip = core.resize.Bicubic(clip, format=vs.RGB24) clip.set_output() This removes all field-based ghosting. For compression-based nokotowo, use filter: ffmpeg -i input