I'm having AviSynth script trouble.

The old Video Software Help forum, left visible as an archive.
hellsing_rocks
Joined: Thu Aug 24, 2006 11:25 pm
Org Profile

I'm having AviSynth script trouble.

Post by hellsing_rocks » Sat Sep 02, 2006 11:01 am

I've read the AviSynth guide by: ErMaC and AbsoluteDestiny but i still can't load my footage into AviSynth. the location is correct but when I run it through WMP it just says "DirectShowSource could not show video or audio".

I'd really appreciate the help :)

User avatar
CrackTheSky
has trust issues
Joined: Sun Aug 27, 2006 11:01 pm
Status: Maybe editing?
Location: Chicago
Org Profile

Post by CrackTheSky » Sat Sep 02, 2006 5:37 pm

What kind of file are you trying to open? If you're trying to open an .avi file, then you have to type "AVIsource" (minus quotes) instead of "DirectShowSource".

User avatar
Gepetto
Mr. Poopy Pants
Joined: Thu Jun 10, 2004 10:11 pm
Status: Bored to tears
Location: The Tokyo Settlement
Contact:
Org Profile

Post by Gepetto » Sat Sep 02, 2006 8:09 pm

That's ot it. DirectShowSource opens AVI files. It opens just about anything, except for other avs scripts and d2v scripts.

Post your script so we can take a look at what can be wrong. Also, say what compression your footage is in.
And God spoke unto the Chicken, and He said: "Thou shalt crosseth the road", and the Chicken did cross the road, and there was much rejoicing.
My DeviantART profile

hellsing_rocks
Joined: Thu Aug 24, 2006 11:25 pm
Org Profile

Post by hellsing_rocks » Sat Sep 02, 2006 10:24 pm

im still a noob so if im doing something so obviosly rong try not 2 give me a hard time :?

>>here is my script>>
DirectShowSource("D:\believe.mpg")
BicubicResize(320,240)

the file that im trying to open is in the correct spot i just... it doesnt work

:oops: (i feel like such a fool getting stuck on the tutorial)

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Sat Sep 02, 2006 10:39 pm

if you didn't put the plugin(s) in the avisynth plugin directory then you have to load/import them in the script.

for mpegs (you're probably working with mpeg2 files) you should use either dgdecode or mpeg2dec3, which allows you to use mpeg2source, before directshowsource.
include the line loadplugin("path to plugin")

then try using mpeg2source("path to footage")

but you should really check to see what codec the footage is encoded with.
(should be under properties, summary (advanced))
and could you tell us where you got your footage (dvd, fansub, etc)
Image
Image

hellsing_rocks
Joined: Thu Aug 24, 2006 11:25 pm
Org Profile

Post by hellsing_rocks » Sun Sep 03, 2006 6:09 pm

well i alredy had the plugins because i just downloaded the AMVapp.
well i hope that means ive got them :?

i got the footage from the org. because in the walkthrough or guide or what ever its called it said download the video believe an thats what i did but i dont know it jus seems 2 be .... not co-operating :(

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Sun Sep 03, 2006 6:58 pm

since the guide is a bit old, it runs the scripts/tests through WMP 6.4.
Any good program should be backwards compatible...but trying to use a different version (like WMP10 or 11 beta) could cause a few problems

the mpeg is an mpeg1 file...so I believe DirectShowSource is correct.

keep in mind that you need the absolute path to the file. Unless you specifically saved the amv to drive D (just on the drive, not in any folders or on your desktop) what you have won't load the video.

say you have a file on your desktop...right-click and select properties
look for "Location:" highlight and copy (ctrl+c)
in your script, put your cursor inside the quotes of DirectShowSource("") and press paste (ctrl+v). then add another "\" and the name of the file
so it would end up like this:
DirectShowSource("C:\Documents and Settings\Use\Desktop\amv preview.avi")
for my file amv preview located on my desktop
Image
Image

hellsing_rocks
Joined: Thu Aug 24, 2006 11:25 pm
Org Profile

Post by hellsing_rocks » Mon Sep 04, 2006 6:38 pm

ya i tried that i totally thought it was gonna work but now insted of displaying the "DirectShowSource could not show video or audio". message WMP just turns its self off :? this is turning out 2 be more of a problem then i thought :(

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Mon Sep 04, 2006 7:08 pm

well at least we're getting somewhere.
post the script that you have now (all of it), and try a few more times is WMP...

you should also try opening your script in VirtualDub(/Mod)
Image
Image

User avatar
Purge
Joined: Mon Oct 10, 2005 9:18 am
Location: Under Aus
Org Profile

Post by Purge » Mon Sep 04, 2006 7:19 pm

could it be an mpeg1 file?
ge this plugin http://nic.dnsalias.com/MPEGDecoder.html if it is

Locked

Return to “Video Software Help Archive”