ScriptClip Error
Hey all,
Having a problem with trying to use Kwags "For DVD and clean material" script. First off, here is my script. ------------- Mpeg2Source("C:\OutputPath\AquaTeen.d2v") DRemoveGrain() Deen() asharp(1, 4) GripCrop(704, 480, overscan=1, source_anamorphic=false) GripSize(resizer="BicubicResize") STMedianFilter(3, 3, 1, 1 ) MergeChroma(blur(1.5)) MergeLuma(blur(0.1)) # # ## Linear Motion Adaptive Filtering ## # # ( Portions from AviSynth's manual ) # This will apply variable temporalsoften # and variable blur. # Both filters are active at all times, and work inversely proportional to the # activity, measured from current frame to next frame. ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") GripBorders() #LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker! # # ## Functions ### function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2 } --------------------- If I try to open the avs in VirtualDub or TMPGEnc for this script, I end up with an "Evaluate: Unrecognized Exception! ([ScriptClip], line 1)" message. I searched all through the forums and found quite a few posts about this same problem. Sadly, none of the solutions posted that worked for others has worked for me. I checked that my version of MPEG2Dec3.dll was the most recent. I looked to see if I had any other MPEG type dll's in the plug ins folder of AviSynth. I tried both versions of DVD2AVI (1.76 and 1.77.3) when setting up my d2v file, just in case that had something to do with it. I made sure the "ScriptClip" line was all one line and not broken into two. I tried using AviSynth 2.54 and then later 2.55. I moved all the plugins from the AviSynth folder and only put back the ones I was using in the script. Those were all the solutions I located on the forums, but none of them cleared up my problem. If I remove the ScriptClip line from the script, of course the error message dissapears. Having spent about 8 hours trying to get this sorted, I am frustrated and decided to post and ask for help. Anyone have any idea what the problem might be? Certainly open to suggestions on how to fix it. Thanks in advance. Min[/list][/list][/quote] |
Is the ScriptClip part on one single line in your script (in your post it's spread over two lines)? The forum doesn't show long lines correctly so if you just copied the script as it is, that might be the problem.
|
Quote:
You're right, the forum doesn't show long lines correctly. And the problem might have happent when Minister copied the script in the first place. I wonder if we should offer the scripts in a downloadable format :? At least that way we would be 100% sure that everybody gets the script right. And I'm not talking about the MA script. I'm talking about all scripts that we post. @Karl, Could this be done at least for the MA one? Cheers |
An easier way would be using the line break character \ . Fortunately most scripts don't have extra long lines :)
|
Good point :).
Anyone care to edit the MA script and use the ' \ ' for line breaks? Or does it have to be Karl editing it? Cheers |
Quote:
You see... as long as people do not read the manuals (Avisynth's one) that is a never ending story ! |
Quote:
Well I thought it could help. But now it's clear that it would be useless. Cheers |
Thanks for the replies.
As I first posted, I made sure that the "ScriptClip" line was all one line and not broken in two. At first when I copied Kwags script, I had that line break into two. So I corrected it and made one line of the whole "ScriptClip" line. So that is not the problem as far as I can tell. Any other ideas as to what is causing this? It seems like such a great script, I would hate to loose that function of it. Thanks Min |
Re: ScriptClip Error
Quote:
If you delete the complete MA line: ScriptClip(" nf = YDifferenceToNext()" ..... etc. Can you load the script in Vdub :?: -kwag |
Hi Kwag,
Yeah I posted that in my initial post. If I remove the ScriptClip line, it loads perfectly fine. The error message dissapears. Is that revealing in and of itself as to what the problem might be? Would be great to find out it is. :) Min |
Make sure the line reads exactly like this:
ScriptClip(" nf = YDifferenceToNext()" +chr(13)+ "unfilter(-(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ).TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") Hope that line doesn't wrap around on your screen! Edit: Copy and paste that line into your script. -kwag |
The line did not wrap around the screen. :)
I copy and pasted the line, but the problem message remains. Still at a loss as to why this is. Min |
Try an other source.
The script don't have problems. Avisynth can have (as a programm can't be error free). If all your sources have the same problem then it has to deal with the codecs on your PC. |
I suggest trying the latest Avisynth 2.5 alpha build, it should be available at http://sf.net/projects/avisynth2 . Somehow I have a feeling that ScriptClip was once broken in some earlier version/build.
|
:D
Boulder, That worked! Using the Alpha build of Avisynth took care of the problem. Weird how in 2.5.4 and 2.5.5 I would have the problem when others seem to have it function without issue. Wonder what that is about. Dialhot, Kwag, Boulder, rds_correia -- Thanks so much for helping me get to the bottom of this. I have learned so much from this forum since I joined. Still have more to learn of course, but could not imagine a better place to do so. Thanks again. :P |
It was really a shot in the dark :wink:
Good thing it worked anyway :D |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.