Vapoursynth DuplicateFrames
DuplicateFrames takes a list of frame numbers and replaces the frame after each listed frame with a copy of the listed frame.
Filtering → Vapoursynth → Frame → Replace

What it does
For every listed frame N, frame N+1 is overwritten by a copy of N. Nothing is inserted: the clip keeps its length and frame rate. A typical use is hiding a single broken frame by repeating its predecessor (list the frame before the broken one). To rebuild a broken frame from both neighbors instead, use ReplaceSingle.
Settings
| Control | Parameter | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Frames | positions | comma-separated frame numbers | empty | Frames whose following frame is replaced by a copy of them. Empty = the filter does nothing. |
Example
Frames 100, 200 (the field is empty by default, which writes nothing), otherwise default settings, on a 10-bit YUV 4:2:0 source (640x356):
clip = AddDuplicates.addingMultipleDups(clip, positions=[100,200])
How Hybrid calls it
- DuplicateFrames works on any format, also interlaced material; nothing is converted.
- Duplicate entries are ignored. A negative number or the last frame of the clip (which has no following frame) stops the script with an error.
- Frame count and frame rate do not change.
Background
Difference to AviSynth's DuplicateFrame
AviSynth's core filter DuplicateFrame really inserts copies of the listed frames, so the clip becomes longer and the audio can drift out of sync. Hybrid's Vapoursynth DuplicateFrames keeps the length and replaces the following frame instead.
Sources
- VapoursynthScriptsInHybrid (the script collection Hybrid uses)
- AviSynth+ documentation: DuplicateFrame
- Hybrid's tooltips