<?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_AutoLevels</id>
	<title>Vapoursynth AutoLevels - 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_AutoLevels"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_AutoLevels&amp;action=history"/>
	<updated>2026-11-19T07:23:57Z</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_AutoLevels&amp;diff=466&amp;oldid=prev</id>
		<title>Selur: Update to current Hybrid behaviour; code as &lt;pre&gt; (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_AutoLevels&amp;diff=466&amp;oldid=prev"/>
		<updated>2026-11-16T08:47:36Z</updated>

		<summary type="html">&lt;p&gt;Update to current Hybrid behaviour; code as &amp;lt;pre&amp;gt; (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:47, 16 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Auto gamma on, everything else at the defaults, on a 10-bit YUV 4:2:0 source:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Auto gamma on, everything else at the defaults, on a 10-bit YUV 4:2:0 source:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang=&quot;python&quot;&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# adjusting levels and gamma using AutoLevels&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# adjusting levels and gamma using AutoLevels&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;clip = core.autolevels.AutoLevels(clip, autogamma=True)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;clip = core.autolevels.AutoLevels(clip, autogamma=True)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== How Hybrid calls it ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== How Hybrid calls it ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_AutoLevels&amp;diff=135&amp;oldid=prev</id>
		<title>Selur: Remove background without information (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_AutoLevels&amp;diff=135&amp;oldid=prev"/>
		<updated>2026-11-14T18:35:08Z</updated>

		<summary type="html">&lt;p&gt;Remove background without information (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:35, 14 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l65&quot;&gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== AutoLevels (plugin) ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== AutoLevels (plugin) ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AutoLevels 1.1.0 is a port of the AviSynth plugin AutoLevels v0.12 Beta 3 (Anschütz, Battle, StainlessS), as one native plugin for VapourSynth and AviSynth+. Besides &amp;lt;code&amp;gt;AutoLevels()&amp;lt;/code&amp;gt; it has &amp;lt;code&amp;gt;AutoGamma()&amp;lt;/code&amp;gt;, which only changes the defaults (auto gamma on, auto level off). For RGB the luma is measured with Rec.601 weights and the curve applied to R, G and B; for YUV the chroma is scaled around neutral by the luma gain. At 8 bit the output is bit-identical to the original. Compared with the original it copies alpha, uses 0/255 as defaults for full range and needs AviSynth+ or VapourSynth R55+.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;AutoLevels 1.1.0 is a port of the AviSynth plugin AutoLevels v0.12 Beta 3 (Anschütz, Battle, StainlessS), as one native plugin for VapourSynth and AviSynth+. Besides &amp;lt;code&amp;gt;AutoLevels()&amp;lt;/code&amp;gt; it has &amp;lt;code&amp;gt;AutoGamma()&amp;lt;/code&amp;gt;, which only changes the defaults (auto gamma on, auto level off). For RGB the luma is measured with Rec.601 weights and the curve applied to R, G and B; for YUV the chroma is scaled around neutral by the luma gain. At 8 bit the output is bit-identical to the original. Compared with the original it copies alpha, uses 0/255 as defaults for full range and needs AviSynth+ or VapourSynth R55+.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== VapourSynth ===&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Not a core filter; the VapourSynth documentation has no page for it.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== AviSynth ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== AviSynth ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_AutoLevels&amp;diff=109&amp;oldid=prev</id>
		<title>Selur: New page: AutoLevels (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_AutoLevels&amp;diff=109&amp;oldid=prev"/>
		<updated>2026-11-14T16:24:32Z</updated>

		<summary type="html">&lt;p&gt;New page: AutoLevels (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;AutoLevels&amp;#039;&amp;#039;&amp;#039; sets levels and gamma automatically. It measures the luma of the surrounding frames, averages the measurements and stops averaging at scene changes, so the brightness does not jump from frame to frame as with a per-frame auto gain.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Color → Auto&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_AutoLevels.png|none|AutoLevels controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For each frame the minimum, maximum and mean luma of the frames within &amp;#039;&amp;#039;Radius&amp;#039;&amp;#039; are averaged. The measured luma range is stretched to the output levels (&amp;#039;&amp;#039;Auto level&amp;#039;&amp;#039;), and optionally a gamma correction is added (&amp;#039;&amp;#039;Auto gamma&amp;#039;&amp;#039; or a fixed &amp;#039;&amp;#039;Gamma&amp;#039;&amp;#039;). &amp;#039;&amp;#039;Fade protection&amp;#039;&amp;#039; keeps fades to or from black from being stretched to full contrast.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Radius || filterRadius || 0 – 60 || 7 || Frames before and after the current one that are averaged; 0 = current frame only.&lt;br /&gt;
|-&lt;br /&gt;
| Scene change || sceneChgThresh || 0 – 255 || 20 || A scene starts when min or max luma change by at least this value, or the mean by half of it; 255 = off.&lt;br /&gt;
|-&lt;br /&gt;
| 2nd test (th/%) || sc2th / sc2Perc || 0 – 256 / 0 – 99.99 || 12 / 33.33 || A cut is only accepted when more than this percentage of pixels differ by more than th; th = 256 switches the test off.&lt;br /&gt;
|-&lt;br /&gt;
| Auto level || autolevel || on/off || on || Stretches the measured range to the output levels.&lt;br /&gt;
|-&lt;br /&gt;
| Auto gamma || autogamma || on/off || off || Estimates the gamma from the mean luma.&lt;br /&gt;
|-&lt;br /&gt;
| Gamma || gamma || 0.1 – 10 || 1.00 || Manual gamma after the stretch (without Auto gamma).&lt;br /&gt;
|-&lt;br /&gt;
| Midpoint || midpoint || 0.01 – 0.99 || 0.50 || Mean brightness auto gamma aims for (about 0.4 often looks nicer). With Auto gamma.&lt;br /&gt;
|-&lt;br /&gt;
| Gammax / Gammin || gammax / gammin || 1 – 10 / 0.1 – 1 || 1.50 / 0.67 (off) || Upper and lower limit of the auto gamma; without Gammin the lower limit is 1/Gammax.&lt;br /&gt;
|-&lt;br /&gt;
| Fixed input (low/high) || input_low / input_high || 0 – 255 || off (16 / 235) || Uses fixed black and white points instead of the measured ones.&lt;br /&gt;
|-&lt;br /&gt;
| Fixed output (low/high) || output_low / output_high || 0 – 254 / 1 – 255 || off (16 / 235) || Fixed output levels; without them the plugin uses 16/235 for limited-range YUV and 0/255 for RGB and full-range YUV.&lt;br /&gt;
|-&lt;br /&gt;
| Coring || coring || on/off || off || Expands 16–235 to 0–255 before the mapping and back after it. Needs limited-range input; Hybrid converts full-range YUV to limited range before the filter and back afterwards.&lt;br /&gt;
|-&lt;br /&gt;
| Ignore (low/high) || ignore_low / ignore_high || 0 – 0.45 || 0.001953 / 0.001953 || Share of the darkest/brightest pixels left out of the measurement.&lt;br /&gt;
|-&lt;br /&gt;
| Border (l/r/t/b) || border_l / _r / _t / _b || 0 – 4096 || 0 || Edge bands left out of the measurement (the whole picture is still processed).&lt;br /&gt;
|-&lt;br /&gt;
| Fade protection || minRng || on/off, 64 – 128 || on, 100 || Below this luma range all corrections are reduced in proportion.&lt;br /&gt;
|-&lt;br /&gt;
| Debug || debug || on/off || off || Draws the per-frame statistics into the picture.&lt;br /&gt;
|-&lt;br /&gt;
| Frame overrides || frameOverrides || text || – || Manual corrections, separated by commas or spaces: &amp;lt;code&amp;gt;S&amp;amp;lt;n&amp;amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;S&amp;amp;lt;a-b&amp;amp;gt;&amp;lt;/code&amp;gt; forces a scene start, &amp;lt;code&amp;gt;N&amp;lt;/code&amp;gt; forces no scene start, &amp;lt;code&amp;gt;E&amp;lt;/code&amp;gt; leaves frames unchanged, e.g. &amp;lt;code&amp;gt;E8400-8405,S62908,N8527-8540&amp;lt;/code&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The level values are always entered on the 8-bit scale; the plugin scales them to the clip&amp;#039;s bit depth. Low always stays below high, for the fixed input and the fixed output levels: moving one value past the other pushes the other along.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Auto gamma on, everything else at the defaults, on a 10-bit YUV 4:2:0 source:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# adjusting levels and gamma using AutoLevels&lt;br /&gt;
clip = core.autolevels.AutoLevels(clip, autogamma=True)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* AutoLevels works on integer YUV, gray and RGB with 8–16 bit; float clips are converted first.&lt;br /&gt;
* Only values that differ from the defaults are written, so a filter at its defaults is just &amp;lt;code&amp;gt;AutoLevels(clip)&amp;lt;/code&amp;gt;. &amp;#039;&amp;#039;Gamma&amp;#039;&amp;#039; is only written without Auto gamma, the gamma limits only with it; fixed levels only when their check box is on. Without Fade protection Hybrid writes &amp;lt;code&amp;gt;minRng=0&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The source range is read by the plugin from the frame properties; Hybrid passes no range parameter.&lt;br /&gt;
* Frame overrides count the frames of the clip after cutting, at the frame rate AutoLevels sees. Invalid entries are left out and named in a script comment. In chunked encodes Hybrid moves the numbers into each chunk&amp;#039;s own numbering.&lt;br /&gt;
* AutoLevels also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== AutoLevels (plugin) ===&lt;br /&gt;
AutoLevels 1.1.0 is a port of the AviSynth plugin AutoLevels v0.12 Beta 3 (Anschütz, Battle, StainlessS), as one native plugin for VapourSynth and AviSynth+. Besides &amp;lt;code&amp;gt;AutoLevels()&amp;lt;/code&amp;gt; it has &amp;lt;code&amp;gt;AutoGamma()&amp;lt;/code&amp;gt;, which only changes the defaults (auto gamma on, auto level off). For RGB the luma is measured with Rec.601 weights and the curve applied to R, G and B; for YUV the chroma is scaled around neutral by the luma gain. At 8 bit the output is bit-identical to the original. Compared with the original it copies alpha, uses 0/255 as defaults for full range and needs AviSynth+ or VapourSynth R55+.&lt;br /&gt;
&lt;br /&gt;
=== VapourSynth ===&lt;br /&gt;
Not a core filter; the VapourSynth documentation has no page for it.&lt;br /&gt;
&lt;br /&gt;
=== AviSynth ===&lt;br /&gt;
The same plugin is available in AviSynth+ and in Hybrid&amp;#039;s AviSynth filters, see [[Avisynth AutoLevels]]. AviSynth&amp;#039;s core filter Levels only does manual level changes.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/Selur/AutoLevels AutoLevels README]&lt;br /&gt;
* [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/levels.html AviSynth+ documentation: Levels]&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>