<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://avisynth.nl/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://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://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=DeKafka"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=DeKafka&amp;action=history"/>
		<updated>2026-04-07T18:08:21Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://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://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 class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 01:13, 8 November 2015&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Tip: even using the second version of the function, don't expect the results to be perfect. There will typically be some residual 'ghost' 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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Tip: even using the second version of the function, don't expect the results to be perfect. There will typically be some residual 'ghost' 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='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; 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;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; 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;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Raffriff42</name></author>	</entry>

	<entry>
		<id>http://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://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 class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:03, 19 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://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://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 class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:21, 18 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&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='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Shared functions]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; 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://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://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 class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:34, 9 May 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://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://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't expect the results to be perfect. There will typically be some residual 'ghost' 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>