<?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_Fade_%28in%2Fout%29</id>
	<title>Vapoursynth Fade (in/out) - 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_Fade_%28in%2Fout%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Fade_(in/out)&amp;action=history"/>
	<updated>2026-11-19T08:19:56Z</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_Fade_(in/out)&amp;diff=519&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_Fade_(in/out)&amp;diff=519&amp;oldid=prev"/>
		<updated>2026-11-16T08:49:12Z</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;Fade (in/out)&amp;#039;&amp;#039;&amp;#039; fades the picture up from black at the start of the clip and/or down to black at the end. It needs no extra plugins.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Other&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_Fade.png|none|Fade (in/out) controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
The first or last frames are blended with a black frame; the weight goes linearly from full black to the unchanged picture. The clip keeps its length, and audio is not touched.&lt;br /&gt;
&lt;br /&gt;
* Fade-in over N frames: frame 0 is black, the following frames get lighter, frame N is the original.&lt;br /&gt;
* Fade-out over N frames: the last N frames get darker, the very last frame is black.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* None; works on all platforms.&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;
| in || fadein || 0 – 100000 || 0 || Frames faded up from black; 0 = no fade-in.&lt;br /&gt;
|-&lt;br /&gt;
| out || fadeout || 0 – 100000 || 0 || Frames faded down to black; 0 = no fade-out.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Fade in 25 and fade out 25 frames (both are 0 by default, which writes nothing), on a 10-bit YUV 4:2:0 source (640x356, 25 fps):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adding fade-in&lt;br /&gt;
clip = fade.fadein(clip, 25, limited=True)&lt;br /&gt;
# adding fade-out&lt;br /&gt;
clip = fade.fadeout(clip, 25, limited=True)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Fade-in and fade-out are separate steps, each only when its value is above 0; with both at 0 the filter is skipped.&lt;br /&gt;
* Works in any color format and on interlaced material without conversion.&lt;br /&gt;
* Black is the clip&amp;#039;s black level: video black (16 at 8 bit) on limited-range integer YUV and gray clips, 0 otherwise.&lt;br /&gt;
* Every frame of the clip is handled separately when the script is built, so very long clips make script loading slow.&lt;br /&gt;
* A value larger than the clip length is accepted; the fade then does not complete within the clip.&lt;br /&gt;
* Fade (in/out) also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Fade in Hybrid&amp;#039;s scripts ===&lt;br /&gt;
The fade comes from Hybrid&amp;#039;s script collection and is based on a doom9 forum post: a one-frame black clip is merged with each frame at a weight that grows or shrinks per frame, and the frames are spliced back together. AviSynth&amp;#039;s FadeIn/FadeOut also fade audio and, in their default variants, add extra solid frames; this fade adds none.&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://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/fade.html AviSynth+ Fade] (for comparison)&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>