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 > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th April 2002, 21:35   #1  |  Link
Frankster
Registered User
 
Join Date: Dec 2001
Posts: 36
Avisynth + Logoaway

Hello!
I want to use Avisynth to cover up the logo from the broadcast instead of Virtul Dub!
But how work this ?
How is the commando line in avisynth ?

Many Thanks!!!
Frankster
Frankster is offline   Reply With Quote
Old 5th April 2002, 08:56   #2  |  Link
Frankster
Registered User
 
Join Date: Dec 2001
Posts: 36
Hi!

global VirtualDub_plugin_directory = "D:\"

################################
# Logoaway by Krzysztof Wojdon #
################################

function VD_LogoAway(clip clip, string "mode", int "x", int "y", int "width",
\ int "height", int "keyframe", int "color")
{
LoadVirtualdubPlugin("D:\logoaway.vdf", "_VD_LogoAway")
mode = default(mode, "xblur")
mode = (mode=="xblur")?1:(mode=="yblur")?2:(mode=="xyblur")?3:(mode=="copy")?4:
\ (mode=="avgborder")?5:(mode=="solid")?6:0
Assert(mode>0, "VD_LogoAway: mode must be one of: xblur yblur xyblur copy avgborder solid")
return clip._VD_LogoAway(mode, default(x,300), default(y,8), default(width,14),
\ default(height,12), default(keyframe,0), default(color,0))
}

----------------------------------------------------------------------

Sorry for this question but what is clip clip, and what is the value of this ?
string "xblur"
int "10" ---> x
int "10" ----> y
int "50"-----> weight
int "50" -----> height
int "0" -------> keyframe
int "0" -------> color



And than I put this sentence into my original AVS script
Import("D:\vdub_filters.avs")

Mfg
Frankster
Frankster is offline   Reply With Quote
Old 5th April 2002, 14:59   #3  |  Link
Frankster
Registered User
 
Join Date: Dec 2001
Posts: 36
Hi!

I have it!!!
I have some problems with "vdub_filters.avs", and so I use this

ConvertToRGB()
LoadVirtualdubPlugin("D:\logoaway.vdf", "L")
L( 2, 2949155, 7209000, 0, 0, 5, 0, 66051, 0, 1, "", "")

And it works :-)

Now my question ;)
Do I have to put into "ConvertToYUV2" at the end of the text ?
Because the film is recorded as YUV2!

My complete script!

LoadPlugin("E:\Programme\-DVD PROGS-\mpeg2dec_dll\MPEG2DEC.dll")
AviSource("E:\FILME\Greedy\GREEDY.avi")
ConvertToRGB()
LoadVirtualdubPlugin("D:\logoaway.vdf", "L")
L( 2, 2949155, 7209000, 0, 0, 5, 0, 66051, 0, 1, "", "")
ConvertToYUV2() ---------> ???????
BicubicResize(448,542,0,0.6,3,0,762,576)
AddBorders(16,17,16,17)
ResampleAudio(44100)
Frankster is offline   Reply With Quote
Old 5th April 2002, 15:28   #4  |  Link
dividee
Registered User
 
Join Date: Oct 2001
Location: Brussels
Posts: 358
Nice, you make the questions and answers yourself
You don't have to put ConvertToYUY2 after the vdub filter (unless you use another filter that only supports YUY2 after it), but you can. I don't think it will make a noticeable speed difference in the end.

If you're still wondering what "clip" is, it's the first argument of all avisynth filters, but it's often implicit: if not present, it uses the output of the last unassigned filter.

Example:
Crop(...)
BilinearResize(...)

is the same as:

vid = Crop(...)
BilinearResize(vid,...)

"vid" is a variable of type clip.

For more information, read the avisynth language tutorial at http://www.math.berkeley.edu/%7Ebenr...-tutorial.html
__________________
dividee
dividee is offline   Reply With Quote
Old 5th April 2002, 18:51   #5  |  Link
Frankster
Registered User
 
Join Date: Dec 2001
Posts: 36
Hello!!
*g*

I thought if anyone has the same problem und uses the search function, he or she will found the question and the answer

Many Thanks
Frankster
Frankster is offline   Reply With Quote
Old 9th April 2002, 09:40   #6  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
@Frankster


" I have it!!! I have some problems with "vdub_filters.avs", and so I use this ..."

What kind of problems? Is it the specific VD_Logaway filter?
You are sure you got the latest version 1.1, because there were mistakes in the first one.
Wilbert is offline   Reply With Quote
Reply


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 06:17.


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