Quantcast Avisynth: Parse Error - String Missing Closing Quotation Mark - digitalFAQ.com Forums [Archives]
  #1  
10-13-2003, 05:38 AM
KunGFu-L33t KunGFu-L33t is offline
Free Member
 
Join Date: Oct 2003
Location: Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Hey All...

Im trying to encode a tottally legal video i made this time (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 >>??<<
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
10-13-2003, 06:14 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Copy and paste the whole script here!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #3  
10-13-2003, 07:41 AM
KunGFu-L33t KunGFu-L33t is offline
Free Member
 
Join Date: Oct 2003
Location: Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Indeed i will and here it is...


Code:
## Defined Variables and Constants ## 
# 
MaxTreshold = 1.50 
nf =  0 # Current frame. 
# 
#### 

## Main section and static filters ### 
# 
AviSource("E:\Video's\Canada\niagara.avi",false)
# 
undot() 
Limiter() 
asharp(1, 4) 
LanczosResize(336, 144, 0, 0, 640, 256)
AddBorders(8, 72, 8, 72)
STMedianFilter(8, 32, 0, 0 ) 
MergeChroma(blur(MaxTreshold)) 
MergeLuma(blur(0.1)) 
# 
# 

## Linear Motion Adaptive Filtering ## 
# 
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to 
# very static scenes, and apply variable blur on moving scenes. 
# We also assign a variable - and this is why a line break is inserted: 

SwitchThreshold = (Width<=352) ? 4 : (Width<=288) ? 3 : 2 
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) 
# 
# 
# 

#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker! 
Limiter() 

# 
# 
## Functions ### 

function fmin( int f1, int f2) { 
  return ( f1<f2 ) ? f1 : f2 
}
Reply With Quote
  #4  
10-13-2003, 08:17 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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).
Reply With Quote
  #5  
10-13-2003, 09:03 AM
KunGFu-L33t KunGFu-L33t is offline
Free Member
 
Join Date: Oct 2003
Location: Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
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




im using avisynth 2.5.2 if this makes any difference
Reply With Quote
  #6  
10-13-2003, 09:08 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
And without the space after the second '+' on line 30 ?
Reply With Quote
  #7  
10-13-2003, 09:09 AM
KunGFu-L33t KunGFu-L33t is offline
Free Member
 
Join Date: Oct 2003
Location: Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
I got rid of that space just then exact same problem but on coloumn number 46 now
Reply With Quote
  #8  
10-13-2003, 09:12 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Are you sure you do not have avs2.5.1 ?
Reply With Quote
  #9  
10-13-2003, 09:14 AM
KunGFu-L33t KunGFu-L33t is offline
Free Member
 
Join Date: Oct 2003
Location: Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Definatly
Reply With Quote
  #10  
10-13-2003, 09:23 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Can you please post your complete "corrected" script
If i remember well you should use Legalclip() instead of Limiter() with a prior avisynth version.
Reply With Quote
  #11  
10-13-2003, 09:24 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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)
undot()
asharp(1, 4)
BicubicResize(336, 144, 0, 0, 640, 256)
AddBorders(8, 72, 8, 72)
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(1.50))
MergeLuma(blur(0.1))

SwitchThreshold = (Width<=352) ? 4 : (Width<=288) ? 3 : 2
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)

function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2 }
(note that all from "Scriptclip" to ",1)" must be on a single line !)
Reply With Quote
  #12  
10-13-2003, 09:28 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
please,copy and paste to your script and test:

SwitchThreshold=(Width<=352)?4Width<=28?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)
Reply With Quote
  #13  
10-13-2003, 09:30 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Krassi
Can you please post your complete "corrected" script
If i remember well you should use Legalclip() instead of Limiter() with a prior avisynth version.
LegalClip is for avs2.0x, Limiter for avs2.5x. So no problem there.
Reply With Quote
  #14  
10-13-2003, 09:34 AM
Krassi Krassi is offline
Free Member
 
Join Date: Mar 2003
Location: Germany
Posts: 390
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
Quote:
Originally Posted by Krassi
Can you please post your complete "corrected" script
If i remember well you should use Legalclip() instead of Limiter() with a prior avisynth version.
LegalClip is for avs2.0x, Limiter for avs2.5x. So no problem there.
Yep Phil, you're right. I've only read your comment "not using avisynth 2.5.1" and thought he would be using 2.0x . Sorry.
Reply With Quote
  #15  
10-13-2003, 11:24 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
Quote:
Originally Posted by KunGFu-L33t
Indeed i will and here it is...

SwitchThreshold = (Width<=352) ? 4 : (Width<=28 ? 3 : 2
Doesn´t that line always have to be,

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
  #16  
10-13-2003, 11:28 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, you're right, I didn't notice this.
Reply With Quote
  #17  
10-13-2003, 01:05 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by CheronAph
Quote:
Originally Posted by KunGFu-L33t
Indeed i will and here it is...

SwitchThreshold = (Width<=352) ? 4 : (Width<=28 ? 3 : 2
Doesn´t that line always have to be,

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
oh yes,i see too Cheron,
but the source is "niagara.avi" and
i don't understand anything about .avis or divx sources,
then i "stay in silence"!
Reply With Quote
  #18  
10-13-2003, 04:54 PM
KunGFu-L33t KunGFu-L33t is offline
Free Member
 
Join Date: Oct 2003
Location: Australia
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #19  
10-13-2003, 05:35 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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!

Reply With Quote
  #20  
10-14-2003, 12:55 AM
CheronAph CheronAph is offline
Free Member
 
Join Date: Feb 2003
Location: Espoo, Finland
Posts: 494
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to CheronAph
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!
__________________
¨¨°şİİş°¨¨°şİCHERONAPHİş°¨¨°şİİş°¨¨
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: filters descriptions missing mabhz Avisynth Scripting 4 08-10-2004 03:14 AM
Avisynth 2.0 Gripfit.dll is missing? Blubear Avisynth Scripting 2 07-22-2004 03:09 AM
Mencoder: cannot parse cmdline error tickey Video Encoding and Conversion 3 03-20-2004 08:02 PM
AVISynth 252 error when closing VirtualDub? TLTw Avisynth Scripting 0 10-17-2003 08:29 PM
Avisynth: Missing vsub23.dll? J-Wo Avisynth Scripting 6 04-29-2003 01:29 PM

Thread Tools



 
All times are GMT -5. The time now is 04:33 AM  —  vBulletin İ Jelsoft Enterprises Ltd