<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=DeKafka</id>
	<title>DeKafka - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=DeKafka"/>
	<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=DeKafka&amp;action=history"/>
	<updated>2026-09-01T19:28:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=6495&amp;oldid=prev</id>
		<title>Raffriff42: added category</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=6495&amp;oldid=prev"/>
		<updated>2015-11-08T01:13:31Z</updated>

		<summary type="html">&lt;p&gt;added category&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 03:13, 8 November 2015&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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{FilterCat4|External_filters|Shared_functions|Restoration_filters|Logo_Removal}}&lt;/ins&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;As outlined at [http://web.archive.org/web/20050414165253/http://www11.brinkster.com/poptones/newcleus/ow.asp?Daily/4_April,_2003 my own wiki], this fairly simple filter washes away those bugging logos from broadcast clips.&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;As outlined at [http://web.archive.org/web/20050414165253/http://www11.brinkster.com/poptones/newcleus/ow.asp?Daily/4_April,_2003 my own wiki], this fairly simple filter washes away those bugging logos from broadcast clips.&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 colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&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;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;Tip: even using the second version of the function, don&amp;#039;t expect the results to be perfect. There will typically be some residual &amp;#039;ghost&amp;#039; logo, appearing particularly when the screen area around the logo is busy. Some may find setting the layering amount parameter (Amount) to a value less than the maximum of 256 gives better results. A value of 216 for example will have the effect of greatly toning down the logo rather than trying to completely remove 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;Tip: even using the second version of the function, don&amp;#039;t expect the results to be perfect. There will typically be some residual &amp;#039;ghost&amp;#039; logo, appearing particularly when the screen area around the logo is busy. Some may find setting the layering amount parameter (Amount) to a value less than the maximum of 256 gives better results. A value of 216 for example will have the effect of greatly toning down the logo rather than trying to completely remove it.&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;[[Category:Shared functions]]&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;[[Category:External filters]]&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;/table&gt;</summary>
		<author><name>Raffriff42</name></author>
	</entry>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=1286&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=1286&amp;oldid=prev"/>
		<updated>2013-05-19T22:03:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:03, 20 May 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=1285&amp;oldid=prev</id>
		<title>Wilbert at 21:21, 18 May 2013</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=1285&amp;oldid=prev"/>
		<updated>2013-05-18T21:21:45Z</updated>

		<summary type="html">&lt;p&gt;&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 23:21, 18 May 2013&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-l51&quot;&gt;Line 51:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 51:&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;[[Category:Shared functions]]&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;[[Category:Shared functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:External filters]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wilbert</name></author>
	</entry>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=956&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=956&amp;oldid=prev"/>
		<updated>2013-05-09T21:34:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:34, 9 May 2013&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=955&amp;oldid=prev</id>
		<title>83.217.169.188: minor fix</title>
		<link rel="alternate" type="text/html" href="http://www.avisynth.nl/index.php?title=DeKafka&amp;diff=955&amp;oldid=prev"/>
		<updated>2013-03-25T20:55:06Z</updated>

		<summary type="html">&lt;p&gt;minor fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;As outlined at [http://web.archive.org/web/20050414165253/http://www11.brinkster.com/poptones/newcleus/ow.asp?Daily/4_April,_2003 my own wiki], this fairly simple filter washes away those bugging logos from broadcast clips.&lt;br /&gt;
&lt;br /&gt;
Note this version works with any format, but there will be a [[RGB32]] conversion.&lt;br /&gt;
&lt;br /&gt;
 function dekafka(clip clip, int Xstart, int Ystart, int X, int Y, int Amount)&lt;br /&gt;
 {&lt;br /&gt;
   ytop = Ystart&lt;br /&gt;
   ybot = Ystart + Y&lt;br /&gt;
   xleft = Xstart&lt;br /&gt;
   xright = Xstart + X&lt;br /&gt;
   topline = clip.[[Crop]](Xstart, ytop-2, X, 2)&lt;br /&gt;
   bottomline = clip.Crop(Xstart, ybot, X, 2)&lt;br /&gt;
   leftline = clip.Crop(xleft-2, ytop, 2, Y)&lt;br /&gt;
   rightline = clip.Crop(xright, ytop, 2, Y)&lt;br /&gt;
   logosrc_hor = [[StackVertical]](topline, bottomline).Blur(0, 1.58).[[BilinearResize]](X, Y)&lt;br /&gt;
   logosrc_ver = [[StackHorizontal]](leftline, rightline).Blur(1.58, 0).BilinearResize(X, Y)&lt;br /&gt;
   Amount2 = (Y&amp;gt;=2*X) ? 255 : 128*Y/X&lt;br /&gt;
   # Amount2 is small if X &amp;gt;&amp;gt; Y =&amp;gt; logoscr_hor is dominant&lt;br /&gt;
   logosrc = [[Layer]](logosrc_hor, logosrc_ver, &amp;quot;add&amp;quot;, Amount2)&lt;br /&gt;
   clip = clip.Layer(logosrc, &amp;quot;add&amp;quot;, Amount, Xstart, Ystart)&lt;br /&gt;
   return clip&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The version above simply replaces logo in position Xstart, Ystart, size X,Y, with a blurred box. &lt;br /&gt;
&lt;br /&gt;
For better results, take a screenshot of the logo, convert to a black and white bitmap with photo editing software (Paint will do), open the bitmap in VirtualDub, save as a single frame AVI, and use the version of function below:&lt;br /&gt;
&lt;br /&gt;
 function dekafka(clip clip, clip logo1FrameAVI, int Xstart, int Ystart, int X, int Y, int Amount)&lt;br /&gt;
 {&lt;br /&gt;
 ytop = Ystart&lt;br /&gt;
 ybot = Ystart + Y&lt;br /&gt;
 xleft = Xstart&lt;br /&gt;
 xright = Xstart + X&lt;br /&gt;
 topline    = clip.Crop(Xstart,ytop-2,X,2)&lt;br /&gt;
 bottomline = clip.Crop(Xstart,ybot  ,X,2)&lt;br /&gt;
 leftline  = clip.Crop(xleft-2, ytop, 2, Y)&lt;br /&gt;
 rightline = clip.Crop(xright,  ytop, 2, Y)&lt;br /&gt;
 blurbox_hor = StackVertical  (topline, bottomline).Blur(0, 1.58).BilinearResize(X, Y)&lt;br /&gt;
 blurbox_ver = StackHorizontal(leftline, rightline).Blur(1.58, 0).BilinearResize(X, Y)&lt;br /&gt;
 amountYoverX = (Y&amp;gt;=2*X) ? 255 : 128*Y/X # AmountYoverX is small if X &amp;gt;&amp;gt; Y =&amp;gt; blurbox_hor is dominant&lt;br /&gt;
 blurbox  = Layer(blurbox_hor, blurbox_ver, &amp;quot;add&amp;quot;, amountYoverX)&lt;br /&gt;
 logosnap = logo1frameAVI.BilinearResize(X,Y).ConvertToRGB32()&lt;br /&gt;
 logomask = [[Mask#Mask|Mask]](blurbox, logosnap)&lt;br /&gt;
 clip = clip.Layer(logomask,&amp;quot;add&amp;quot;,Amount,Xstart,Ystart)&lt;br /&gt;
 return clip&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 clip = clip.dekafka(logo1FrameAVI,Xpos,Ypos,Width,Height,Amount)&lt;br /&gt;
&lt;br /&gt;
Tip: even using the second version of the function, don&amp;#039;t expect the results to be perfect. There will typically be some residual &amp;#039;ghost&amp;#039; logo, appearing particularly when the screen area around the logo is busy. Some may find setting the layering amount parameter (Amount) to a value less than the maximum of 256 gives better results. A value of 216 for example will have the effect of greatly toning down the logo rather than trying to completely remove it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Shared functions]]&lt;/div&gt;</summary>
		<author><name>83.217.169.188</name></author>
	</entry>
</feed>