<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_ReplaceSingle</id>
	<title>Vapoursynth ReplaceSingle - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_ReplaceSingle"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_ReplaceSingle&amp;action=history"/>
	<updated>2026-11-20T07:35:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_ReplaceSingle&amp;diff=621&amp;oldid=prev</id>
		<title>Selur: New filter page (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_ReplaceSingle&amp;diff=621&amp;oldid=prev"/>
		<updated>2026-11-16T08:52:22Z</updated>

		<summary type="html">&lt;p&gt;New filter page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float:right; margin:0 0 1em 1em;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;ReplaceSingle&amp;#039;&amp;#039;&amp;#039; replaces single, listed frames – for example a frame with a flash, a glitch or a splice – with a frame interpolated from its two neighbors.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Frame → Replace&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_ReplaceSingle.png|none|ReplaceSingle controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Every listed frame N is rebuilt by interpolating between frames N−1 and N+1. The first and the last frame of the clip cannot be replaced, since they lack a neighbor. The clip keeps its length and frame rate. For several consecutive frames use [[Vapoursynth ReplaceMultiple|ReplaceMultiple]]; to simply repeat the previous frame use [[Vapoursynth DuplicateFrames|DuplicateFrames]].&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* svp, svp_gpu: SVP must be installed (only then are they listed).&lt;br /&gt;
* rife: a Vulkan-capable GPU.&lt;br /&gt;
* mv: CPU; the mvgpu implementation needs Vulkan.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range / values !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Frames || frames || comma-separated frame numbers || empty || Frames to replace. Empty = the filter does nothing.&lt;br /&gt;
|-&lt;br /&gt;
| Method || method || mv, svp, svp_gpu, rife || mv || Interpolator: MVTools, SVP on the CPU, SVP on the GPU, or RIFE.&lt;br /&gt;
|-&lt;br /&gt;
| RIFE: Model || – || RIFE models || rife-v4.5 (ensemble) || RIFE model (method rife).&lt;br /&gt;
|-&lt;br /&gt;
| RIFE: TTA / UHD || – || on/off || off / off || Test-time augmentation (not available for v4 models); UHD mode for large frames (method rife).&lt;br /&gt;
|-&lt;br /&gt;
| Debug || debug || on/off || off || Shows debug information in the preview.&lt;br /&gt;
|-&lt;br /&gt;
| Tools: MV || – || mvgpu, mvutensils, mv || – || MVTools implementation (method mv).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
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):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from FillDuplicateFrames import FillDuplicateFrames&lt;br /&gt;
fdf = FillDuplicateFrames(clip=clip, mode=&amp;quot;Replace&amp;quot;, frames=[100,200], method=&amp;quot;mv&amp;quot;, sceneThr=0, tools={&amp;#039;mv&amp;#039;: &amp;#039;mvutensils&amp;#039;})&lt;br /&gt;
clip = fdf.out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Color formats: svp and svp_gpu work on 8-bit YUV 4:2:0, mv on 8–16-bit YUV, rife on 32-bit float RGB; the clip is converted as needed.&lt;br /&gt;
* Every listed frame is replaced; there is no duplicate or scene change check.&lt;br /&gt;
* RIFE options are only written for method rife.&lt;br /&gt;
* Replaced frames keep the frame properties (such as the frame duration) of the original frame.&lt;br /&gt;
* Frame count and frame rate do not change.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Interlaced material ===&lt;br /&gt;
Hybrid also allows ReplaceSingle on interlaced material, but the interpolation works on whole frames, not on fields.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/Selur/VapoursynthScriptsInHybrid VapoursynthScriptsInHybrid] (the script collection Hybrid uses)&lt;br /&gt;
* [https://github.com/styler00dollar/VapourSynth-RIFE-ncnn-Vulkan VapourSynth-RIFE-ncnn-Vulkan]&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-mvtools vapoursynth-mvtools]&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>