I'm having AviSynth script trouble.

The old Video Software Help forum, left visible as an archive.

I'm having AviSynth script trouble.

Postby 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 :)
hellsing_rocks
 
Joined: 24 Aug 2006

Postby 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
CrackTheSky
 
Joined: 27 Aug 2006
Location: Chicago
Status: Probably not editing.

Postby 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
User avatar
Gepetto
Mr. Poopy Pants
 
Joined: 10 Jun 2004
Location: The Tokyo Settlement
Status: Bored to tears

Postby 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)
hellsing_rocks
 
Joined: 24 Aug 2006

Postby 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)
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby 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 :(
hellsing_rocks
 
Joined: 24 Aug 2006

Postby 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
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby 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 :(
hellsing_rocks
 
Joined: 24 Aug 2006

Postby 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)
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby 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
User avatar
Purge
 
Joined: 10 Oct 2005
Location: Under Aus

Postby Kariudo » Mon Sep 04, 2006 7:40 pm

it is an mpeg1 file
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby Purge » Mon Sep 04, 2006 11:03 pm

well then

* MPEG1-files (extension mpg):
Have a look at the Mpeg decoder plugins for AviSynth v1.0x/v2.0x and the Mpeg decoder plugins for AviSynth v2.5x:
Using AviSynth v2.0x/AviSynth v2.5x and MPEGdecoder.dll:

LoadPlugin("d:\MPEGdecoder.dll")
mpegsource("d:\filename.mpg")
User avatar
Purge
 
Joined: 10 Oct 2005
Location: Under Aus

Postby hellsing_rocks » Tue Sep 05, 2006 2:15 pm

DirectShowSource("C:\Documents and Settings\Jesse\Desktop\believe.mpg")
BicubicResize(320,240)

^theres the script I have so far.
I tried opening the script with VirtualDubMod but no cigar... :(
it just did the same thing that WMP did it turned its self off well loading the file :? this is quite the hassle
hellsing_rocks
 
Joined: 24 Aug 2006

Postby Gepetto » Wed Sep 06, 2006 5:00 pm

read purge's post.
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
User avatar
Gepetto
Mr. Poopy Pants
 
Joined: 10 Jun 2004
Location: The Tokyo Settlement
Status: Bored to tears


Return to Video Software Help Archive

Who is online

Users browsing this forum: No registered users and 0 guests