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

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th March 2002, 06:24   #1  |  Link
ArieBK
Registered User
 
Join Date: Jan 2002
Posts: 41
Script Problem - Need Help

this is the script i try to make work :

LoadPlugin("D:\-= DVD =-\DVD2sVCD\MPEG2Dec\mpeg2dec.dll")
Mpeg2source("c:\_project\Jackal.d2v")
function VD_Subtitler(clip clip, string filename)
{
LoadVirtualdubPlugin("D:\-= DVD =-\VirtualDub-1_4\plugins\subtitler.vdf", "_VD_Subtitler")
return clip._VD_Subtitler(1, filename)
}
BicubicResize(480,480,0.75,0.75)
VD_Subtitler(clip ,"c:\_project\subs.ssa")
ResampleAudio(44100)

the error i get is that somthing wring in the script @ line 9 about "clip"

what wrong

allso do i need to insert a RGB filter to get it work ?

tanks
ArieBK is offline   Reply With Quote
Old 19th March 2002, 09:03   #2  |  Link
hakko504
Remember Rule One
 
hakko504's Avatar
 
Join Date: Oct 2001
Location: SWEDEN
Posts: 1,612
First, VD filters always only work in RGB mode, so convert to RGB is needed. Second, in order to make AVIsynth use the clip from the last command there is a 'last' function included, so your script should look like this:

Code:
LoadPlugin("D:\-= DVD =-\DVD2sVCD\MPEG2Dec\mpeg2dec.dll") 
Mpeg2source("c:\_project\Jackal.d2v") 
function VD_Subtitler(clip clip, string filename) 
{ 
LoadVirtualdubPlugin("D:\-= DVD =-\VirtualDub-1_4\plugins\subtitler.vdf", "_VD_Subtitler") 
return clip._VD_Subtitler(1, filename) 
} 
BicubicResize(480,480,0.75,0.75) 
ConvertToRGB()
VD_Subtitler(last ,"c:\_project\subs.ssa")
ConvertToYUY2()
ResampleAudio(44100)
or in order to make the VD_S function more general:
Code:
LoadPlugin("D:\-= DVD =-\DVD2sVCD\MPEG2Dec\mpeg2dec.dll") 
Mpeg2source("c:\_project\Jackal.d2v") 
function VD_Subtitler(clip clip, string filename) 
{ 
LoadVirtualdubPlugin("D:\-= DVD =-\VirtualDub-1_4\plugins\subtitler.vdf", "_VD_Subtitler") 
return clip.ConvertToYUY2()._VD_Subtitler(1, filename).ConvertToRGB()
} 
BicubicResize(480,480,0.75,0.75) 
VD_Subtitler(last ,"c:\_project\subs.ssa") 
ResampleAudio(44100)
__________________
/hakko

http://www.boardgamegeek.com
hakko504 is offline   Reply With Quote
Old 19th March 2002, 09:26   #3  |  Link
ArieBK
Registered User
 
Join Date: Jan 2002
Posts: 41
what is the different between last and clip ?
ArieBK is offline   Reply With Quote
Old 19th March 2002, 10:47   #4  |  Link
hakko504
Remember Rule One
 
hakko504's Avatar
 
Join Date: Oct 2001
Location: SWEDEN
Posts: 1,612
'clip' as a variable isn't defined until you give it a value either with '=' or in a function call. 'last' is always defined as the result of the last AVISynth command.
__________________
/hakko

http://www.boardgamegeek.com
hakko504 is offline   Reply With Quote
Old 19th March 2002, 18:18   #5  |  Link
ArieBK
Registered User
 
Join Date: Jan 2002
Posts: 41
tanks for your advices !

the script DIDN'T Work until i change it a bit

the WORKING Script looks like :

LoadPlugin("D:\-= DVD =-\DVD2sVCD\MPEG2Dec\mpeg2dec.dll")
Mpeg2source("c:\_project\Jackal.d2v")
ConvertToRGB()
function VD_Subtitler(clip clip, string filename)
{
LoadVirtualdubPlugin("D:\-= DVD =-\VirtualDub-1_4\plugins\subtitler.vdf","_VD_Subtitler")
return clip._VD_Subtitler(1, filename)
}
BicubicResize(480,480,0.75,0.75)
VD_Subtitler(last ,"c:\_project\subs.ssa")
ResampleAudio(44100)

tanks again !!
ArieBK is offline   Reply With Quote
Reply

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 12:49.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.