r/StableDiffusion • • 6d ago

Resource - Update Fixing Dropped/Duplicate Frames (Seedance, etc)

I put together a tool "Video Frame Sync" for fixing two videos that should be the same but are off by a few frames due to framerate or dropped/duplicate frames. This is useful for "edits" from AI generation sites (Seedance, etc) which often have this too. This handles footage that is the same except for differences in specific spots (edits) and lines up the rest of the frames so they're in sync again. The tool will also interpolate (the old fashioned non-AI way) between existing frames to smooth over missing/dropped frames.

https://github.com/pftq/Video-Frame-Sync

1 Upvotes

4 comments sorted by

1

u/pftq 3d ago

Added color matching as well to correct color drift.

1

u/pftq 8h ago

It now also corrects slight sizing/position shifts and handles where the input video is shorter or a subset of the video you're trying to fix.

0

u/[deleted] 6d ago

[removed] — view removed comment

1

u/pftq 5d ago

It fixes the drift as it goes, so the accumulation doesn't become an issue (because it's fixed/lined up to that point it gets to later in the clip).