Quantcast Avisynth: New Logo Removal Filter - Page 3 - digitalFAQ.com Forums [Archives]
  #41  
11-05-2003, 04:34 PM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for your suggestion about the border. I'll take a look at it later. I'm thinking about adding a fitler to remove opaque logos. We'll see.

I posted the fixed version of LogoMask on my website. Included in the Zip file is my Dekafka function but here it is anyway:
Quote:
function NoLogo_dekafka(clip clip, clip logoclip, int logoframe, int brightnesschange, int xpos, int ypos, int logowidth, int logoheight)
{
xborder=Width(clip)-xpos-logowidth
yborder=Height(clip)-ypos-logoheight
topline=clip.crop(xpos,ypos,logowidth,1)
bottonline=clip.crop(xpos,ypos+logoheight,logowidt h,1)
logosrc=StackVertical(topline,bottonline).blur(1.5 ,0).bilinearResize(logowidth,logoheight)
logosrc=Addborders(logosrc,xpos,ypos,xborder,ybord er)
#Uncomment following line for debug mode
#logosrc=logosrc.levels(0,1,255,255,0)
clip=LogoMask(clip,logosrc,logoclip,logoframe,brig htnesschange,xpos,ypos,logowidth,logoheight)

return clip
}



################################
logoframe=4
brightnesschange=5
xpos=273
ypos=374
logowidth=34
logoheight=65
#####################################


NoLogo_dekafka(clip,logoclip,logoframe,brightnessc hange,xpos,ypos,logowidth,logoheight)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #42  
11-06-2003, 10:39 AM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
What would be best way to remove 2 logos (at different locations) with NoLogo_dekafka? Can you call LogoMask() two times in same AVS?
Reply With Quote
  #43  
11-14-2003, 10:55 AM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
Well, you have two options:

1. Find or make a frame that contains both logos, and use NoLogoAuto. This is the easiest but it will always remove both logos weather both are present or not. (Logo detection not very effective here unless both logos appear and dissapear at the same time.)

2. Run the filters twice, once for each logo. This will take a little longer but you can detect each logo independantly.


To make a frame that contains both logos:

1. Find a frame on with the logo on a black background for each of the logos.

2. Use the AddLogo filter to add the second logo onto the frame of the first logo.

3. Use the output of Addlogo for your NoLogoAuto filter.

Let me knnow how it turns out.
Reply With Quote
  #44  
11-17-2003, 12:02 PM
nicksteel nicksteel is offline
Free Member
 
Join Date: Nov 2002
Posts: 863
Thanks: 0
Thanked 0 Times in 0 Posts
The filters I use (Deen, etc) require YV12. NoLogo asks for YUY2. How can I run under YV12 (my native mode from PVR250).

Also, when I use "Clip=Mpeg2Source....) and Clip=Trim(Clip,x,y), I have difficulty in calling the non-NoLogoAuto filters following. Is there a dummy avisynth filter that I can call to force the use of Clip in the following filters?

I normally run by using "Clip=MPEG2Source...." and ClipLogo=Trim(Clip,x,y).
Reply With Quote
  #45  
11-18-2003, 03:44 PM
MrTibs MrTibs is offline
Free Member
 
Join Date: Aug 2002
Location: Canada
Posts: 200
Thanks: 0
Thanked 0 Times in 0 Posts
I'm sorry to say but NoLogo is only for YUY2 format. I'm looking into the YV12 format to add support for it.

For now, you'll have to do colour conversion.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Light Noise removal filter supermule Avisynth Scripting 15 05-18-2006 09:03 AM
Recording Video: Logo Removal nicksteel Video Encoding and Conversion 3 11-24-2003 08:21 AM
KVCD: logo removal on previously encoded captures? nicksteel Video Encoding and Conversion 2 11-02-2003 05:22 AM
Avisynth: Dekafka Logo Removal (like on the SciFI channel) nicksteel Avisynth Scripting 17 10-29-2003 09:56 PM
Avisynth: New Logo removal filter (alpha) - comments welcome MrTibs Avisynth Scripting 1 08-08-2003 05:44 PM

Thread Tools



 
All times are GMT -5. The time now is 04:56 PM  —  vBulletin Jelsoft Enterprises Ltd