Avisynth: Parse Error - String Missing closing quotation mark
Hey All...
Im trying to encode a tottally legal video i made this time :wink: (That wasn't sarcasm its a video of my trip to canada) So i decided to try something different and use MA script, I play it in WMP and it gives me the following Error: Parse Error: String Missing closing quotation mark So i went thru the script and i found out the error was coming from this line: ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \ On coloumn number 47 to be exact which is round about here: ............................+chr(13)+ ......................... >>??<< am i supposed to add something in here >>??<< |
Copy and paste the whole script here!
|
Full Script
Indeed i will and here it is...
Code:
## Defined Variables and Constants ## |
Check if you do not have any spaces after the '\'' caracters in line "Scriptclip" and "unfilter"?
Then remove the quote that is in the source file (Video's). |
spaces and "'" Gone still dont work
i got rid of the spaces after "/" and took out the ' but i still get
parse error, string missing closing quotation mark: Line 30, coloumn 47 :evil: :evil: :evil: :evil: :evil: im using avisynth 2.5.2 if this makes any difference |
And without the space after the second '+' on line 30 ?
|
I got rid of that space just then exact same problem but on coloumn number 46 now
|
Are you sure you do not have avs2.5.1 ?
|
Definatly
|
Can you please post your complete "corrected" script :?:
If i remember well you should use Legalclip() instead of Limiter() with a prior avisynth version. |
What I do not understand is that LanczosResize need only 4 parameters and not 6. Thus you should have an error on this line.
So I have a problem : did you copy really the script you use or not ? Change the name of your directory from "Video's" to "Videos" and try exactly this script : Code:
AviSource("E:\Videos\Canada\niagara.avi",false) |
please,copy and paste to your script and test:
SwitchThreshold=(Width<=352)?4:(Width<=288)?3:2 ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf>=S witchThreshold?\unfilter(-(fmin(round(nf)*2,100)),-(fmin(round(nf)*2,100))):\TemporalSoften(fmin(roun d(2/nf),6),round(1/nf),round(3/nf),1,1) ....no spaces between anything! "Video's" to "Videos" is a great hint too(like Phil recomendations) :!: |
Quote:
|
Quote:
|
Re: Full Script
Quote:
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2 |
Yes, you're right, I didn't notice this.
|
Re: Full Script
Quote:
but the source is "niagara.avi" and i don't understand anything about .avis or divx sources, then i "stay in silence"! :oops: |
I used Dialhots Script it came with the same error on line 11 coloumn 46...
Tried with jorels idea of no spaces, same error line 11 coloumn 44 and yes this is the exact script i am using |
try again please...copy and paste:
ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf>=S witchThreshold?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)") it's a single line without spaces! ...i think that is the ") in the end of the line! :wink: |
I think I´ve found it, you´re missing this quotation mark,
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ") Just copy and paste this line! |
THANKS! You guys Rock!...
Well that fixed that problem Thanks for all your help again it looks great :D |
hey guys i found a diff prob now :cry:
i can play the video and watch it no prob but at the bottom in grey writing "Script Error: there is no fuction called unfilter" flashes every now and then, whats wrong with my code now? Code:
AviSource("E:\KVCD\Work\niagara.avi",false) |
The message is cristalin : you are missing the plugin Unfilter.dll !
DL it and put it with all other plugin. |
thats the thing i got "UnFilter.ddl" in my plugin's directory i just doubled checked then.
|
You have Unfilter.dll or Unfilter.ddl in your directory ?
Double check also the spelling. The message is clear : avisynth doesn't find the dll, so there must be a problem there. |
Sorry its .dll but its UnFilter.dll, could it be the caps?
|
Not at all. Avs does not relies on the name of the plugin (else it will never find GripCrop because it is included in GrifitPreview_YV12.dll ! :-))
It loads everything that is in the plugin directory and llok for the name of the function that are declared in these dll. You should check if you have DL the correct version of the DLL, if the read permission is set on the file. |
8O YES DIALHOT I COMPLETLY UNDERSTAND YOU :lol:
All i know is that i downloaded the 2.5 version from this site... http://www.trbarry.com/UnFilter.zip and i put all the files in the 2.5 Alpha Folder inside the zip into my avisynth 2.5 plugins directory |
Did you extract the paths too? IIRC, the UnFilter dll is in a specific folder in the zip file. If you extract the file with "Use folder names" checked, the dll file ends up in a wrong place, such as c:\program files\avisynth 2.5\plugins\2.5 alpha\ whereas it should be c:\program files\avisynth 2.5\plugins\ .
|
No the dll is in the plugins folder for avisynth
|
Do a simple test with this script :
Code:
Avisource("the name of your avi") Else, the filter isn't in the right directory. |
Quote:
|
Like this,
LoadPlugin("E:\-=[ KVCD ]=-\Filters\Mpeg2dec.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\LegalClip.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\UnFilter.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\GripFit_preview.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\STMedianFilter.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\DustV5.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\DctFilter_YUY2.dll") LoadPlugin("E:\-=[ KVCD ]=-\Filters\Convolution3D.dll") Mpeg2Source("D:\DVDtoKVCD\vts_03.d2v") LegalClip() unfilter(50,50) GripCrop(704, 576, overscan=3) #TextSub("D:\DVDtoKVCD\vts_01.srt") GripSize(resizer="BicubicResize") STMedianFilter(8, 32, 0, 0, 8, 32) #SpaceDust() # Optional - for some "not so clean" DVDs. temporalsmoother(1,2) mergechroma(blur(1.50)) mergeluma(blur(0.2)) #Convolution3D(preset="animeBQ") GripBorders() LegalClip() |
Quote:
|
Quote:
|
Dialhot i used your simple script you posted and it :evil: :x WORKED! :evil: :x .......
Here is my code again... whats rong with it... Code:
AviSource("E:\Videos\KVCD\Work\niagara.avi",false) |
Quote:
Quote:
Code:
ScriptClip("nf=YDifferenceToNext()"+chr(13)+"nf>=SwitchThreshold ? 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)") Quote:
That is why the error message flashes and is not constant : your movie has more static scenes than moving one, so the unfilter is rarely done. |
Hey Phil,
could you post your MA script that CheronAph asked for? I'd also be interested in checking it out. Also, can you figure out how to use the MA script with interlaced sources? It's easily done with spatial-only filters but with temporal ones it's a bit more tricky. |
Quote:
|
Quote:
Quote:
|
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.