Frame Sequence Gaps

Find missing frame numbers in an inclusive interval. Pass an enumerable of non-negative frame numbers and get compact, sorted inclusive ranges back. Repeated numbers are collapsed. The library works on numbers supplied by your exporter or file scanner.

Try Gemini Omni 1.2 Flash on Image to Video AI when you need to animate between specific stills. Frames to Video lets you guide the opening and ending with images, which helps you plan where a transition should begin and land before reviewing extracted frames.

Usage

FrameSequenceGaps.missing([4, 0, 4, 2], 0, 6)
# [{1, 1}, {3, 3}, {5, 6}]

This is an independent utility released under the MIT license.