Script Problems

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
jdude1225
Joined: Fri Apr 29, 2005 4:39 pm
Org Profile

Script Problems

Post by jdude1225 » Wed Jul 11, 2007 12:33 pm

This is the script I have for AviSynth: DirectShowSource("C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Abridged1.wmv") and when I try to open it w/ Virtual Dub Mod I get this error message:

AviSynth open failure:
DirectShowSource: Could not open as video or audio.

Video returned: " DirectShowSource: couldnt open file C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Abridged1.wmv: Anobject or name was not found."

Audio returned: " DirectShowSource: couldnt open file C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Abridged1.wmv: Anobject or name was not found."

(C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Abridged1.avs, line 1)


When I tried change my script to: DirectShowSource("C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Abridged1.avs") and I would try to open it w/ Virtual Dub Mod, Virtual Dub would just close.

User avatar
taifunbrowser
Joined: Sat Sep 11, 2004 7:39 pm
Location: DDR ARCADES
Contact:
Org Profile

asdf

Post by taifunbrowser » Wed Jul 11, 2007 2:14 pm

but... you can play this wmv file as is in windows media player?

jdude1225
Joined: Fri Apr 29, 2005 4:39 pm
Org Profile

Post by jdude1225 » Wed Jul 11, 2007 2:17 pm

ya I can play in .wmv in Movie Player but I finally got my script on Virtual Dub Mod the only thing is the timing is GREATLY off and the file size has gone from 77.2MB to 8.68 GB. So how can I fix the time w/o getting some huge file?

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Wed Jul 11, 2007 3:59 pm

To fix the timing you need to have the script set up thusly:

Code: Select all

DirectShowSource("file.wmv", fps=29.97, convertfps=true)
(I use relative paths; that way I don't have to deal with typing out long directories - just make sure the script is in the same folder as the .wmv)

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Wed Jul 11, 2007 4:00 pm

Gah, double-post...

To not have it output a massive file, use something like XviD - just don't edit with the resulting file. If you want to edit, then save clips with HuffYUV or Lagarith instead of converting the entire episode.

jdude1225
Joined: Fri Apr 29, 2005 4:39 pm
Org Profile

Post by jdude1225 » Wed Jul 11, 2007 4:12 pm

My script right now is:

DirectShowSource("C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Fullmetal Alchemist the Abridged series episode 1_Beta5.wmv", 23.976, fps=29.97, convertfps=true)

but Im getting this error message:

AviSynth open failure:
Evaluate: Unrecognized exception!
(C:\Documents and Settings\HP_Administrator\My Documents\AMV Folder\Fullmetal Alchemist the Abridged series episode 1_Beta5--default.avs, line2)

User avatar
BasharOfTheAges
Just zis guy, you know?
Joined: Tue Sep 14, 2004 11:32 pm
Status: Breathing
Location: Merrimack, NH
Org Profile

Post by BasharOfTheAges » Wed Jul 11, 2007 5:10 pm

You gave 4 parameters instead of 3 - you only need to give 1 fps value, not 2, and knowing which is correct is important...
Anime Boston Fan Creations Coordinator (2019-2023)
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |

User avatar
SD Black Angel
Joined: Sat Oct 28, 2006 2:08 pm
Location: Shamballa
Org Profile

AVS wont read in Virtual Dub

Post by SD Black Angel » Mon Jul 30, 2007 12:45 am

My script for AviSytnth is:

mpeg2source("C:\Documents and Settings\Juan\My Documents\My Projects\CB - Freedom or Death.d2v", idct=5. CPU=4, ipp=true)

And Virtual Dub error says:

Cannot determine file type "C:\Documents and Settings\Juan\My Documents\My Projects\CB - Freedom or Death\CB - Freedom or Death--default.avs"

It's like not letting me use Avisynth at all. -_-* plz help.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: AVS wont read in Virtual Dub

Post by Scintilla » Mon Jul 30, 2007 8:05 am

SD Black Angel wrote:And Virtual Dub error says:

Cannot determine file type "C:\Documents and Settings\Juan\My Documents\My Projects\CB - Freedom or Death\CB - Freedom or Death--default.avs"
Er, you <i>do</i> have AVISynth installed, correct? That's the only reason I can think of why this error message would occur.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
SD Black Angel
Joined: Sat Oct 28, 2006 2:08 pm
Location: Shamballa
Org Profile

Post by SD Black Angel » Mon Jul 30, 2007 12:30 pm

Yea I do, before it used to look like a script thing. but now it lookes like that square data thing, u kno, the thing that doesnt seem to know what program to use. But it opens up just fine, and I have avisynth installed and everything.

Locked

Return to “AviSynth Help”