<?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_GLSL</id>
	<title>Vapoursynth GLSL - 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_GLSL"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_GLSL&amp;action=history"/>
	<updated>2026-11-19T07:35:35Z</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_GLSL&amp;diff=522&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_GLSL&amp;diff=522&amp;oldid=prev"/>
		<updated>2026-11-16T08:49:14Z</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;GLSL&amp;#039;&amp;#039;&amp;#039; runs a GLSL shader file of your choice on the video through libplacebo. The shader uses mpv&amp;#039;s user-shader format, so many mpv shaders (sharpeners, line darkeners, debanders and others) can be used directly.&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_GLSL.png|none|GLSL controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
The selected shader is executed on the GPU at the hook point it declares (for example on luma or on the RGB image). What it does depends entirely on the shader. The output keeps the input size, so scaling shaders cannot be used to change the resolution here; their result is scaled back to the input size by libplacebo. For upscaling shaders use the [[Vapoursynth GLSL Resizer|GLSL Resizer]].&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* vs-placebo (libplacebo) and a GPU with Vulkan.&lt;br /&gt;
* A shader file in mpv user-shader format.&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;
| Shader / Select || shader || .glsl file || empty || Shader to run; empty = filter skipped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Shader F:/Hybrid/64bit/vsfilters/GLSL/nlmeans.glsl selected (no shader is set by default), on a 10-bit YUV 4:2:0 source (640x356):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P10 to YUV444P16 for vsGLSLFilter&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)&lt;br /&gt;
# GLSL filter: nlmeans.glsl&lt;br /&gt;
clip = core.placebo.Shader(clip, shader=&amp;quot;F:/Hybrid/64bit/vsfilters/GLSL/nlmeans.glsl&amp;quot;, width=640, height=356, matrix=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The clip is converted to 16-bit YUV 4:4:4, which vs-placebo needs; the output is 16-bit YUV 4:4:4 as well.&lt;br /&gt;
* Width and height are always the current frame size, and the clip&amp;#039;s matrix is passed along.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== vs-placebo Shader ===&lt;br /&gt;
vs-placebo&amp;#039;s Shader function runs an mpv-syntax user shader, given as a file or as text, inside libplacebo&amp;#039;s rendering pipeline. Width and height set the output size and have to be given for scaling shaders; planes the shader does not touch are resampled by libplacebo. For shaders that hook into linear or sigmoidized light, the image is linearized or sigmoidized first.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/Lypheo/vs-placebo vs-placebo README]&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>