Log in

View Full Version : Script Error


Valdez
18th June 2008, 22:25
Running this script in AvsP gives me the error below:

# 05-23-08
# Concatenate
v1=DirectShowSource("D:\Movies\2005\P6240127.mov")
v2=DirectShowSource("D:\Movies\2005\P6240128.mov")
v3=DirectShowSource("D:\Movies\2005\P6240129.mov")
AlignedSplice(v1,v2,v3)
ChangeFPS(30)

Evaluate: System Exception - Access Violation
(6240127_128_129.avs, line 4)

All file paths are 100% valid. Does anybody have an explanation?

mikeytown2
19th June 2008, 01:50
Does it play when only playing one file, and nothing else?

DirectShowSource("D:\Movies\2005\P6240127.mov")

Wilbert
19th June 2008, 07:52
Perhaps the framerates of the three clips are different. Use

DirectShowSource(clip, fps=xxx, convertfps=true)

Valdez
19th June 2008, 13:23
@mikeytown2:
even weirder, the script plays as is from time to time. Open it - exception, close and reopen it (maybe two, three times) - suddenly it plays.

@Wilbert:
the videos are fragments of the same take, all the same framerate. Anyway, if I am not mistaken, an access violation usually occurs when referring to something non-existing?

Thank you for your time.

Gavino
19th June 2008, 14:07
What happens if you play it in something other than AvsP (VDub, WMP, MPC, etc)?

Could it be an AvsP problem?

Valdez
19th June 2008, 17:29
Same error, same text.
Another weird thing: the script is in a project used with DVDFlick, and when I try to open the project (which has worked two weeks ago), DVDFlick closes silently, without any error msg.

foxyshadis
19th June 2008, 17:41
Actually the most common reason for an Access Violation in Directshowsource is the codec crashing. (Avisynth is pretty good at catching this and not totally crashing.) Your .mov splitter or decoder might be broken. You can try ffmpegsource or qtsource for testing.

Valdez
19th June 2008, 22:54
Unfortunately, this is a tiny bit over my head. Would you mind expanding on your advice? How do I test with ffmpegsource or qtsource?
TIA

mikeytown2
19th June 2008, 23:46
Unfortunately, this is a tiny bit over my head. Would you mind expanding on your advice? How do I test with ffmpegsource or qtsource?
TIA

You will need to download those dll's. In general when I look for a plugin i usually check the wiki first (http://avisynth.org/mediawiki/External_filters).

FFmpegSource
Direct Download (http://ivtc.org/new/FFmpegSource-1.19.rar)
Doom9 Thread (http://forum.doom9.org/showthread.php?t=127037)

QTSource
Direct Download (http://www.tateu.net/software/dl.php?f=QTSource)
Doom9 Thread (http://forum.doom9.org/showthread.php?t=104293)

In my case i copy these DLL's into
C:\Program Files\AviSynth 2.5\plugins
AviSynth will usually auto load .dll and .avsi files in this dir.


Next step is you need to create a script that uses these functions in order to load your mov

# 05-23-08
# Concatenate
v1=FFmpegSource("D:\Movies\2005\P6240127.mov")
v2=FFmpegSource("D:\Movies\2005\P6240128.mov")
v3=FFmpegSource("D:\Movies\2005\P6240129.mov")
AlignedSplice(v1,v2,v3)
ChangeFPS(30)


OR

# 05-23-08
# Concatenate
v1=QTInput("D:\Movies\2005\P6240127.mov", audio=true)
v2=QTInput("D:\Movies\2005\P6240128.mov", audio=true)
v3=QTInput("D:\Movies\2005\P6240129.mov", audio=true)
AlignedSplice(v1,v2,v3)
ChangeFPS(30)

Valdez
20th June 2008, 00:17
Thank you a lot for your help.

Foxyshadis said "Your .mov splitter or decoder might be broken".
Looks like this is the correct diagnosis, as I start getting similar errors with other .avs that join two or more .mov files.
How to fix a broken .mov splitter/decoder?