AVISynth script question

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
8th-ShichinintaiDEL
Joined: Sun Dec 04, 2005 12:30 am
Location: Illinois
Org Profile

AVISynth script question

Post by 8th-ShichinintaiDEL » Mon May 14, 2007 10:50 pm

I have an .avi file exported from Adobe Premiere Pro 7, and am trying to compress by converting to .mpg with AVISynth and TMPGEnc as explained in the "mpegforcons" guide.

I'm having problems with the AVISynth, written in notepad, titled "MyFirstAttempt.avs". I've narrowed it down to this line:

AVISource(C:\AMV\testing.avi)

I get the error, "Script error: expected a , or ) (C;\AMV\MyFirstAttempt.avs, line 1, column 12)

Did I install AVISynth wrong, or do I have some blaringly obvious typo?

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 May 14, 2007 10:54 pm

you need to surround the filepath in double quotes
AVISource("C:\AMV\testing.avi")
^like that
Image
Image

User avatar
8th-ShichinintaiDEL
Joined: Sun Dec 04, 2005 12:30 am
Location: Illinois
Org Profile

Post by 8th-ShichinintaiDEL » Tue May 15, 2007 5:18 am

When I put quotes, it gives me the error:
"AVISource: couldn't locate a decompressor for fourcc"

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

asdf

Post by taifunbrowser » Tue May 15, 2007 6:43 am

Very common errror, the solution is dont use avisource.

Use:
DirectShowSource("footage")

^ that works for almost any file you throw at it XD, avisource is very selective. (In my tests, both have equal quality... anyone wanna say why avisource exists?)

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

Post by Scintilla » Tue May 15, 2007 7:53 am

8th-Shichinintai wrote:When I put quotes, it gives me the error:
"AVISource: couldn't locate a decompressor for fourcc"
It means you're missing a VFW codec. What FourCC did it tell you?
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
8th-ShichinintaiDEL
Joined: Sun Dec 04, 2005 12:30 am
Location: Illinois
Org Profile

Re: asdf

Post by 8th-ShichinintaiDEL » Wed May 16, 2007 11:45 pm

taifunbrowser wrote:Very common errror, the solution is dont use avisource.

Use:
DirectShowSource("footage")

^ that works for almost any file you throw at it XD, avisource is very selective. (In my tests, both have equal quality... anyone wanna say why avisource exists?)


When I use DirectShowSource("footage"), most of the video works, except the first 15 seconds. My video's first 15 seconds are similar to a slide show, and the media player speeds through it in about 3 seconds (i.e. as if someone were running through a slide show without waiting to read any one slide). The rest of the video and audio are thus out of sinc by ~12 seconds, but besides that, it appears to be okay.

Do I need a leader to fix this?
Scintilla wrote: It means you're missing a VFW codec. What FourCC did it tell you?
I do not know what a VFW codec is, and all it told me was what I wrote.
Is a VFW codec a codec for AVISynth?


Thx for the help btw, I appreciate it.

User avatar
Keeper of Hellfire
Joined: Sun Jan 09, 2005 6:13 am
Location: Germany
Org Profile

Post by Keeper of Hellfire » Thu May 17, 2007 2:18 am

DirectShowSource is known to cause improper synch sometimes.

Since you say you exported from APP (What's 7.0? The most recent version is 2.0!), the chances are high that you did export it as DV-AVI. That's bad, since it is an additional compression step. Go back, change the export settings and export is as uncompressed AVI. Then you will have no problems with AviSource, and the quality is kept. But be prepared, the file will be as 10 times as large. Or export is as HuffYUV or Lagarith, if you have any of this codecs installed. So the files become smaller.

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

Post by Scintilla » Thu May 17, 2007 2:21 am

VFW just stands for <s>Veterans of Foreign Wars</s> Video for Windows, and it's the kind of codec that VirtualDub(/Mod) requires in order to open a video file. Most codecs install as VFW, but some install as DirectShow only, which means VirtualDub(/Mod) can't use them (but your media players still can).

What codec did you use for <b>testing.avi</b>?
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
8th-ShichinintaiDEL
Joined: Sun Dec 04, 2005 12:30 am
Location: Illinois
Org Profile

Post by 8th-ShichinintaiDEL » Thu May 17, 2007 4:40 am

Keeper of Hellfire wrote: Since you say you exported from APP (What's 7.0? The most recent version is 2.0!), the chances are high that you did export it as DV-AVI. That's bad, since it is an additional compression step. Go back, change the export settings and export is as uncompressed AVI. Then you will have no problems with AviSource, and the quality is kept. But be prepared, the file will be as 10 times as large. Or export is as HuffYUV or Lagarith, if you have any of this codecs installed. So the files become smaller.
Scintilla wrote:What codec did you use for <b>testing.avi</b>?
Adobe Premier Pro 7 = Adobe Premier Pro 1.0 (7); my computer can't handle 2.0.

I checked, and I exported as DV (NTSC), default for APP. I will look into getting APP 1 to export as HuffYUV or Lagarith and get back to you guys.

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 » Thu May 17, 2007 10:52 am

8th-Shichinintai wrote:Adobe Premier Pro 7 = the name the people who pirated Adobe Premier Pro 1.0 used before realizing Adobe changed the naming scheme.
fixed.
Anime Boston Fan Creations Coordinator (2019-2023)
Anime Boston Fan Creations Staff (2016-2018)
Another Anime Convention AMV Contest Coordinator 2008-2016
| | |

Locked

Return to “AviSynth Help”