Vapoursynth FreezeFrames
FreezeFrames replaces every frame in one or more frame ranges with a single chosen frame, for example to cover a damaged stretch with one good frame.
Filtering → Vapoursynth → Frame → Replace

What it does
For each range from First to Last (both included) all frames are replaced by the frame given under Replace. The three lists are paired by position: the first entries form the first range, the second entries the second range, and so on. The clip keeps its length and frame rate.
Settings
| Control | Parameter | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| First | first | comma-separated frame numbers | empty | Start frame of each range. |
| Last | last | comma-separated frame numbers | empty | End frame of each range (included). |
| Replace | replacement | comma-separated frame numbers | empty | Frame that fills each range. |
If one of the three fields is empty, the filter does nothing.
Example
First 100, Last 105, Replace 99 (the fields are empty by default, which writes nothing), on a 10-bit YUV 4:2:0 source (640x356):
clip = core.std.FreezeFrames(clip, first=[100], last=[105], replacement=[99])
How Hybrid calls it
- FreezeFrames uses VapourSynth's core function and works on any format, also interlaced material.
- The lists are passed as entered; Hybrid does not check them. Lists of different length or overlapping ranges make VapourSynth stop with an error when the script is loaded.
- Frame count and frame rate do not change.
Background
Rules of the core function
Ranges must not overlap. The replacement numbers refer to the original input, not to frames that were already replaced by another range of the same call. Example from the tooltip: First 0, 100, 231 / Last 15, 112, 300 / Replace 8, 50, 2.
AviSynth
AviSynth's FreezeFrame does the same for one range per call and leaves the audio untouched.
Sources
- VapourSynth documentation: FreezeFrames
- AviSynth+ documentation: FreezeFrame
- Hybrid's tooltips