Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > Capturing and Editing Video > Capturing Video

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 19th May 2005, 21:14   #1  |  Link
Registered User
ppera2's Avatar
Join Date: Oct 2001
Location: Lands of confusion
Posts: 1,217
Yet another unlogo script - simple usage

It is based on Dekafka AVS script. I changed it, so no need to colorspace conversion to RGB32 by usual YUY2 capture.
There is no need to make mask bitmap too. Blurring is dropped out,
because it makes some green artifacts at right edge, and no really need for it, because bilinear upsize blurs well.

Plus: Works with YUY2 colorspace, no conversion to RGB
No need to make mask

Minus: It covers bigger area than masked delogo solutions

However, by covering original logo with reactangle it is totally masked, so hard to guess what whas there, what may be good in some cases.

Here is function, and example how to call it:

function delogo(clip)

#TV BBC15, Res 576x560 (crop top & bot. by 8) - memo, optional

#Position & size & Opacity - enter here values by logo position and size

Xp = 488
Yp = 18
X = 48 #Must be dividable by 4
Y = 66
Op = 255

#By need:
#clip = clip.ConvertToYUY2()

top = clip.Crop(Xp, Yp-2, X, 2)
bot = clip.Crop(Xp, Yp+Y, X, 2)
left = clip.Crop(Xp-4, Yp, 4, Y)
right = clip.Crop(Xp+X, Yp, 4, Y)

logoh = StackVertical(top, bot).BilinearResize(X, Y)
logov = StackHorizontal(left, right).BilinearResize(X, Y)
logob = Layer(logoh, logov, "fast" )
clip = clip.Layer(logob, "add", Op, Xp, Yp)
return clip


#Crop by need...


#Resize, filters....

return clip

Btw: when use blur in AVS with narrow clips, it results with some green artefacts at right side. Is it because of small dimensions or general bug? It is best viewable by B/W clips.
Informational value of an advert is in inverted proportion to beauty of playing model(s)/actress(es)
ppera2 is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 05:27.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.