AVISynth script question

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

AVISynth script question

Postby 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
8th-ShichinintaiDEL
 
Joined: 04 Dec 2005
Location: Illinois

Postby Kariudo » Mon May 14, 2007 10:54 pm

you need to surround the filepath in double quotes
AVISource("C:\AMV\testing.avi")
^like that
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby 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
8th-ShichinintaiDEL
 
Joined: 04 Dec 2005
Location: Illinois

asdf

Postby 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
taifunbrowser
 
Joined: 11 Sep 2004
Location: DDR ARCADES

Postby 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
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: asdf

Postby 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
8th-ShichinintaiDEL
 
Joined: 04 Dec 2005
Location: Illinois

Postby 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
Keeper of Hellfire
 
Joined: 09 Jan 2005
Location: Germany

Postby 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
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Postby 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
8th-ShichinintaiDEL
 
Joined: 04 Dec 2005
Location: Illinois

Postby 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.
Another Anime Convention AMV Contest Coordinator 2008-2014 & Head of the AAC Fan-works Theater - follow us on Twitter: https://twitter.com/#!/AACFanTheater
:sorcerer: :sorcerer: |RD: "Oh, Action!" (side-by-side) | |
User avatar
BasharOfTheAges
Just zis guy, you know?
 
Joined: 14 Sep 2004
Location: Merrimack, NH
Status: Extreeeeeeeeeme

Postby 8th-ShichinintaiDEL » Thu May 17, 2007 8:34 pm

BasharOfTheAges wrote:fixed.


Thank you so much. Now I know the origin of a number.


So, I exported from APP with Lagarith, and it still has the same problem. The video and audio are out of sync at the beginning when I try to open it with AVISynth's DirectShowSource("").

Exporting with no compression isn't really an option for me, as I barely have enough hard drive space to hold the compressed versions. All that's left to uninstall/delete is about 1 GB of unessential programs, then I start weighing the value of Microsoft Office. As the DV-version file is 1.5 GB already, I don't think I will have enough room either way. My computer has big issues, and I'm going to reformat as soon as I can get this AMV compressed. I tried sending all the files to my brother's computer, but his computer doesn't like APP for some reason. Thus, I am trying to avoid resorting to uncompression.

Any other ideas besides going through an uncompressed form? I suppose I can try HuffYUV; would that work where Lagarith did not?
User avatar
8th-ShichinintaiDEL
 
Joined: 04 Dec 2005
Location: Illinois

Postby 8th-ShichinintaiDEL » Thu May 17, 2007 8:44 pm

Never mind, I tried it again with AVISource() and it seems to be working.
User avatar
8th-ShichinintaiDEL
 
Joined: 04 Dec 2005
Location: Illinois


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest