digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: New Logo Removal filter (http://www.digitalfaq.com/archives/avisynth/6370-avisynth-logo-removal.html)

MrTibs 11-05-2003 04:34 PM

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)

nicksteel 11-06-2003 10:39 AM

MrTibbs, DeKafka
 
What would be best way to remove 2 logos (at different locations) with NoLogo_dekafka? Can you call LogoMask() two times in same AVS?

MrTibs 11-14-2003 10:55 AM

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.

nicksteel 11-17-2003 12:02 PM

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).

MrTibs 11-18-2003 03:44 PM

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.


All times are GMT -5. The time now is 02:55 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.