11-05-2003, 04:34 PM
|
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)
|
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
11-06-2003, 10:39 AM
|
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?
|
11-14-2003, 10:55 AM
|
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.
|
11-17-2003, 12:02 PM
|
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).
|
11-18-2003, 03:44 PM
|
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.
|
All times are GMT -5. The time now is 07:33 AM — vBulletin © Jelsoft Enterprises Ltd
|