digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Parse Error - String Missing closing quotation mark (http://www.digitalfaq.com/archives/avisynth/6071-avisynth-parse-error.html)

Boulder 10-15-2003 07:00 AM

Quote:

Originally Posted by Dialhot
You mean the MA script that I use personnaly ? I'll try to think about it this evening.

Yep, that's the one.

Quote:

I only have one source interlaced, so I'm not really the guy you need. I always do my test on it using fileddeinterlace, that's all.
Hmm, I seem to have it working OK.

Code:

nf=0
mpeg2source("path\clip.d2v")
separatefields()
even=selecteven().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),0,2)")
odd=selectodd().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),0,2)")
interleave(even,odd)
weave()
function fmin( int f1, int f2) { return ( f1<f2 ) ? f1 : f2 }

Looks funny here because of the word wrap, but it's just even=SelectEven() followed with the MA portion written on the same line in the script. The same goes to odd=SelectOdd().

Seems to work fine, when I disabled it from the other field, it was noticably sharper than the other one. Can you give any hints on how to compensate the half resolution in the MA script ( 720x576 + SeparateFields() = 720x288 ) ? I think that the default values are too strong since they're meant for a full height frame.

Dialhot 10-15-2003 07:14 AM

Quote:

Originally Posted by Boulder
Can you give any hints on how to compensate the half resolution in the MA script ( 720x576 + SeparateFields() = 720x288 ) ? I think that the default values are too strong since they're meant for a full height frame.

You should open a new thread on this point and let Kwag (or others) answer to this. Deinterlacing seems to be a very common problem and your way is original.
BTW, the scripts works on VCD resolution so I don't think the height is a problem.

Boulder 10-15-2003 07:41 AM

Yes, I think I'll do that.

I didn't think about the VCD resolution, I stand corrected :D I only tried that script on a noisy analog capture, it's probably a lot more gentle with a DVD source.

KunGFu-L33t 10-16-2003 01:24 AM

Dialhot i used spaces in that part of the code it says "I dont know what "SwitchThreshold" means...

KunGFu-L33t 10-16-2003 02:12 AM

so i added this line...


SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2

on top of all of it then it came up with the unfilter error....

Dialhot 10-16-2003 04:05 AM

Man, restart from the begining : go to the optimal script thread, pick up the latest MA script, copy/paste it and change the name or the source and save it.

This script works everywhere. Unfilter works alone on your PC. So the script must works also with you.

KunGFu-L33t 10-16-2003 05:21 AM

i copied and pasted the MA script from the thread put in my gripfit parameters cept i still get the damn Unfilter error...


:evil: :evil: :evil: :evil:

Krassi 10-16-2003 05:32 AM

Please post your complete script.
A dumb question maybe, but your unfilter.dll is in your avisynths-plugin folder, right :?: Then make sure you haven't any LoadPlugins defined.

You may also test to delete all .avs-files in your plugins-folder.

KunGFu-L33t 10-16-2003 06:13 AM

Quote:

A dumb question maybe, but your unfilter.dll is in your avisynths-plugin folder, right Then make sure you haven't any LoadPlugins defined.
Nah its in the plugins folder... heres the code...
Code:

MaxTreshold = 1.50
nf =  0 # Current frame.

AviSource("E:\Videos\KVCD\work\niagara.avi",false)

ConvertToYV12() 
FlipVertical()
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 240, overscan=1, source_anamorphic=false)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))


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

")


GripBorders()
Limiter()

function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
}


Krassi 10-16-2003 06:36 AM

You've edited your post. You've written something about not an avisynth plugin. Can you verify that your using the right undot dll :?:
Or try again with the newest one: http://www.trbarry.com/UnDot.zip

Are there any avs-files in your plugin folder.

KunGFu-L33t 10-16-2003 07:35 AM

Ye i edited, but i put the old unfilter dll for testing, but i still get the error with the 2.5 one its really anoyyin...


Oh ye theres no avs in the plugins folder

KunGFu-L33t 10-16-2003 07:37 AM

Ive tried just about everything its still bluddy there........

Boulder 10-16-2003 07:42 AM

Try reinstalling Avisynth 2.5.2.

Dialhot 10-16-2003 07:45 AM

Can you please list the content of your avisynth plugin folder please (with date and size of the files, please) ?
I want to be sure !

KunGFu-L33t 10-16-2003 04:15 PM

Reinstall dont help just tried

im too lazy to type tje contents of my plugins direrectory so can i attach a screen shot somehow?

jorel 10-16-2003 04:23 PM

8O
i can't believe my friend KunGFu!

you're a :bruce: ,never be lazy!

the great team here:
:ole:
is trying to help you,doing the hard part!

c´mom, go to the your avisynth plugin folder
and post here the list of all dlls !

:lol:

Dialhot 10-16-2003 05:08 PM

Quote:

Originally Posted by KunGFu-L33t
Reinstall dont help just tried

im too lazy to type tje contents of my plugins direrectory so can i attach a screen shot somehow?

You can do a copy/paste from a DOS (command prompt) session.

For instance, this is mine :
Code:

C:\Program Files\AviSynth 2.5\plugins>dir
 Le volume dans le lecteur C s'appelle SYSTEM
 Le numéro de série du volume est 7C6A-7029

 Répertoire de C:\Program Files\AviSynth 2.5\plugins

11/10/2003  20:28    <REP>          .
11/10/2003  20:28    <REP>          ..
18/01/2003  19:02            32 768 asharp.dll
27/11/2002  21:25            4 117 asharp.html
18/01/2003  18:57            24 576 atc.dll
09/03/2003  19:18            86 016 AutoCrop.dll
12/03/2003  00:09            4 060 AutoCrop.txt
18/01/2003  18:56            28 672 BicublinResize.dll
18/01/2003  20:35              911 Bicublin_readme.txt
29/12/2002  16:11            61 440 Blockbuster-2.5.dll
04/02/2003  23:00          131 072 blockbuster.dll
05/02/2003  15:24            28 672 Cnr2.dll
15/12/2002  19:40            4 114 Cnr2.html
19/10/2002  15:01            7 530 Convolution3d.txt
29/03/2003  10:22            57 344 Convolution3DYV12.dll
29/03/2003  10:23            2 541 Convolution3DYV12.txt
21/02/2003  10:37            90 112 DctFilter.dll
27/03/2003  06:01          118 784 Decomb.dll
19/02/2003  08:14            40 505 DecombHelp.html
19/01/2003  19:22          106 496 Deen.dll
19/01/2003  19:23            1 296 Deen_readme.txt
25/02/2003  21:36            45 056 Dup.dll
25/02/2003  21:37            7 610 DupHelp.html
08/01/2003  18:01            61 440 FluxSmooth-2.5.dll
16/02/2003  14:22            94 208 GripFit_YV12.dll
19/01/2003  19:12              704 lisezmoi.txt
07/01/2003  16:04          188 416 MPEG2DEC.dll
17/11/2002  13:36              132 MPEG2Dec3.def
28/07/2003  10:27          254 028 MPEG2Dec3.dll
28/07/2003  10:28            12 575 MPEG2Dec3.html
08/12/2002  19:21          106 496 MPEG2Dec3_094.dll
16/02/2003  22:13          184 320 MPEGDecoder.dll
17/02/2003  14:43            4 672 MPEGDecoder_YV12.htm
17/02/2003  14:43            4 672 MPEGDecoder_YV12.html
08/04/2003  17:53            28 672 MSharpen.dll
08/04/2003  17:55            4 896 MSharpen.html
22/01/2003  13:15            5 416 Readme_STMedianFilter.txt
18/01/2003  19:09            2 640 Readme_UnDot.txt
18/01/2003  18:01            4 372 Readme_UnFilter.txt
22/12/2002  17:28            53 248 Sampler-2.5.dll
22/12/2002  16:30            3 581 Sampler.html
22/01/2003  23:22            53 248 STMedianFilter.dll
14/04/2003  23:31            1 549 TemporalCleaner YV12.txt
13/01/2003  08:29            57 344 TemporalCleaner.dll
13/01/2003  08:32            2 280 TemporalCleaner.txt
18/01/2003  19:05            53 248 UnDot.dll
16/01/2003  22:07            77 824 UnFilter.dll
28/09/2003  18:14            43 520 VagueDenoiser.dll
28/09/2003  18:17            9 012 VagueDenoiser.html
08/03/2003  21:40          267 776 VSFilter.dll
              48 fichier(s)        2 463 981 octets
              2 Rép(s)  5 161 405 952 octets libres

C:\Program Files\AviSynth 2.5\plugins>

You can see that I have an unfilter.dll of 77.827 bytes, dated from 16/01/2003;

Can we see your plugins plesase ?

Pikku-Kalle 10-17-2003 07:04 AM

Hi.
I had the same problem earlier. Solved it by
installing a newer version of AviSynth.
Are you sure you have the newest version :?:


All times are GMT -5. The time now is 07:23 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.