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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th June 2010, 20:41   #1  |  Link
blewyn
Registered User
 
Join Date: May 2007
Posts: 2
Avisynth open failure - help !!

I'm using the MSU frame rate converter plugin, and the following code :

AviSource=("myfile.avi")
ConvertToYV12().MSU_FRC(2, "slow")

The 2 means double the frane count, and "slow" means use a slower but higher-quality process to do it.

I'm getting "Script error: Invalid arguments to function "ConvertToYV12"

The strange thing is that this only happens when the text file I'm using (actually stored as *.avs) is one that has been auto-generated by visual basic macro in Excel 2003, which I have written. It saves the script file using the "xlTextPrinter" option. This creates a text file which looks exactly the same as a text file hand-typed in Notepad, and opens just the same in Notepad, but for some reason causes the error described above. If I hand-type the exact same code above into a new text file, then drop that onto the VirtualDub window...it works.

Any ideas ?
blewyn is offline   Reply With Quote
Old 18th June 2010, 21:04   #2  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,493
Could it be something to do with Unicode? Is the macro-generated text file twice the size of the hand-typed text file?

Does the problem still occur if you omit the ()?

Code:
ConvertToYV12.MSU_FRC(2, "slow")
David
wonkey_monkey is offline   Reply With Quote
Old 18th June 2010, 21:11   #3  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by blewyn View Post
AviSource=("myfile.avi")
Should be
AviSource("myfile.avi")
Gavino is offline   Reply With Quote
Old 19th June 2010, 01:51   #4  |  Link
blewyn
Registered User
 
Join Date: May 2007
Posts: 2
Quote:
Originally Posted by Gavino View Post
Should be
AviSource("myfile.avi")
Dear oh dear I must get my eyes checked.....thanks...
blewyn 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 22:11.


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