<?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_Add_Logo</id>
	<title>Vapoursynth Add Logo - 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_Add_Logo"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Add_Logo&amp;action=history"/>
	<updated>2026-11-19T07:24:07Z</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_Add_Logo&amp;diff=465&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_Add_Logo&amp;diff=465&amp;oldid=prev"/>
		<updated>2026-11-16T08:47:35Z</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;Add Logo&amp;#039;&amp;#039;&amp;#039; lays an image, usually a PNG with transparency, over the video at a given position, optionally only for a range of frames.&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_AddLogo.png|none|Add Logo controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
The logo is placed with its top-left corner at the given position; parts outside the frame are cut off. Its alpha channel decides how opaque each pixel is (darker = more transparent); the alpha can be ignored (fully opaque logo) or inverted.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* BestSource (reads the image) and fmtconv; both ship with Hybrid. 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;
| Logo / Select || – || image file || empty || Image to lay over the video; empty = filter skipped.&lt;br /&gt;
|-&lt;br /&gt;
| Position (x/y) || x, y || −8192 – 8192 || 0 / 0 || Top-left corner of the logo in pixels; negative values move it partly out of the frame to the left or top.&lt;br /&gt;
|-&lt;br /&gt;
| From – To || – || 0 – last frame || 0 / 0 || First and last frame (inclusive) that get the logo; 0 / 0 = whole clip, To = 0 = till the end.&lt;br /&gt;
|-&lt;br /&gt;
| No alpha || – || on/off || off || The logo image has no alpha channel: no mask is used.&lt;br /&gt;
|-&lt;br /&gt;
| Ignore alpha || – || on/off || off || The alpha channel is not used; the logo is fully opaque.&lt;br /&gt;
|-&lt;br /&gt;
| Invert alpha channel || – || on/off || off || Inverts the alpha channel; only when neither No alpha nor Ignore alpha is set.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Logo J:/tmp/claude/wiki/assets/logo.png (96x32 PNG with alpha; no logo is set by default), otherwise default settings, on a 10-bit YUV 4:2:0 source (640x356):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adding logo&lt;br /&gt;
# adding &amp;#039;J:\tmp\claude\wiki\assets\logo.png&amp;#039; using Overlay&lt;br /&gt;
logo = core.bs.VideoSource(source=&amp;quot;J:/tmp/claude/wiki/assets/logo.png&amp;quot;)&lt;br /&gt;
alpha = core.std.PropToClip(logo) if &amp;quot;_Alpha&amp;quot; in logo.get_frame(0).props else None&lt;br /&gt;
logo = core.resize.Bicubic(clip=logo, format=clip.format.id, matrix_s=&amp;quot;470bg&amp;quot;, range_s=&amp;quot;limited&amp;quot;)&lt;br /&gt;
alpha = None if alpha is None else core.fmtc.bitdepth(clip=alpha, bits=clip.format.bits_per_sample, fulls=True, fulld=True)&lt;br /&gt;
clip = misc.Overlay(base=clip, overlay=logo, mask=alpha)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The image is read with BestSource; a video file works too (its last frame repeats). An image without an alpha channel is laid over without a mask, even if &amp;#039;&amp;#039;No alpha&amp;#039;&amp;#039; is not set.&lt;br /&gt;
* The logo is converted to the clip&amp;#039;s format, matrix and range; the alpha channel is brought to the clip&amp;#039;s bit depth as full range, so semi-transparent areas keep their opacity.&lt;br /&gt;
* The overlay uses a normal blend. Odd positions are fine; with subsampled YUV and an odd logo width or height the clip is converted to 4:4:4 first.&lt;br /&gt;
* With a frame range the clip is split before and after the range and spliced back together.&lt;br /&gt;
* By default Add Logo is the last filter in the chain.&lt;br /&gt;
* Add Logo also offers ApplyOnlyTo from the [[Vapoursynth common filter options|common options]].&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Overlay ===&lt;br /&gt;
The overlay function comes from Hybrid&amp;#039;s script collection and is derived from havsfunc&amp;#039;s Overlay. Like AviSynth&amp;#039;s Overlay it accepts negative positions and a mask of the same size as the overlay, and it offers many blend modes and an opacity; Add Logo uses the normal mode at full opacity.&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/overlay.html AviSynth+ Overlay] (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>