digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Trouble with MA-Script in PAL? (http://www.digitalfaq.com/archives/avisynth/4574-avisynth-trouble-ma.html)

Dialhot 07-18-2003 07:38 AM

Wilbert:

1/ you're right. I didn't notice that
2// the optimal MA script always did sharp then smooth. Don't you use it ? Kwag justify it once or twice and I think he is right.

kwag 07-18-2003 11:10 AM

Quote:

Originally Posted by Wilbert

2) You sharp first and then smooth again. Better do it the other way around.

That one is no mistake. It's on purpose :!:
We over enhance details with asharp(1, 4) to bring out artifacts, then we smooth out the artifacts with STMedianFilter(8, 32, 0, 0 ), MergeChroma(blur(MaxTreshold)) and MergeLuma(blur(0.1)). There's a thread somewhere here where I discussed that, some weeks ago.
You can't smooth and then sharpen, because once you smooth, details are permanently lost, and there's nothing to sharpen.

-kwag

Avalon 07-18-2003 12:05 PM

Quote:

MaxTreshold = 1.50
nf = 0 # Current frame.

Mpeg2Source("Enter here the d2v.file")
undot()
Limiter()
asharp(1, 4)

GripCrop(352, 576)

GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )


FieldDeinterlace()

MergeChroma(blur(1.58))
MergeLuma(blur(0.2))

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \
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) ")
TemporalCleaner(6+nf,13+nf)")

GripBorders()
##MovieStacker!
Limiter()

Dup(threshold=1,blend=true)
DctFilter(1,1,1,1,1,1,0.5,0)

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


This way or is still something wrong?

Avalon 07-18-2003 12:32 PM

Troble with this script!!! I think TemporalCleaner is it, whats wrong?

Code:

## DLL Sektion ##
#
LoadPlugin("C:\Filters25\mpeg2dec3_25_dll_20030119\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\stmedianfilter_25_dll_20030122\Avisynth_2.5a_Version\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp_25_dll_20030118\asharp.dll")
LoadPlugin("C:\Filters25\unfilter_25_dll_20030116\UnFilter_Avisynth_2.5_Alpha\UnFilter.dll")
LoadPlugin("C:\Filters25\undot_25_dll_20030118\UnDot.dll")
LoadPlugin("C:\Filters25\decomb_25_dll_20030327\decomb406b7\Decomb.dll")
LoadPlugin("C:\Filters25\msmooth_25_dll_20030124\msmooth200b1\Msmooth.dll")
LoadPlugin("C:\Filters25\dctfilter_25_dll_20030221\DctFilter.dll")
LoadPlugin("C:\Filters25\blockbuster_25_dll_20030204\blockbuster.dll")
LoadPlugin("C:\Filters25\convolution3dyv12_25_dll_20030329\Convolution3DYV12.dll")
LoadPlugin("C:\Filters25\temporalcleaner_25_dll\TemporalCleaner.dll")
LoadPlugin("C:\Filters25\dup220b1/Dup.dll")
LoadPlugin("C:\Filters25\atc_25_dll_20030118\atc.dll")
LoadPlugin("C:\Filters25\AddGrain\AddGrain.dll")
LoadPlugin("C:\Filters25\deen_25_dll_20030119\Deen.dll")
####

MaxTreshold = 1.50
nf =  0 # Current frame.

Mpeg2Source("d:\dcd\test\dvd\tr\tr2.d2v")

Limiter()
asharp(1, 4)

GripCrop(352, 576)

GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )

#FieldDeinterlace()

MergeChroma(blur(1.58))
MergeLuma(blur(0.2))



SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \
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) ")
TemporalCleaner(6+nf,13+nf)")

GripBorders()

Limiter()

Dup(threshold=1,blend=true)
DctFilter(1,1,1,1,1,1,0.5,0)

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

Error Message:

Parse error: string missing closing quatation mark

Need help!!! With TemporalSoften the script will work

Avalon 07-18-2003 01:04 PM

Next Sampler with this Script:

Code:

## DLL Sektion ##
#
LoadPlugin("C:\Filters25\mpeg2dec3_25_dll_20030119\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\stmedianfilter_25_dll_20030122\Avisynth_2.5a_Version\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp_25_dll_20030118\asharp.dll")
LoadPlugin("C:\Filters25\unfilter_25_dll_20030116\UnFilter_Avisynth_2.5_Alpha\UnFilter.dll")
LoadPlugin("C:\Filters25\undot_25_dll_20030118\UnDot.dll")
LoadPlugin("C:\Filters25\decomb_25_dll_20030327\decomb406b7\Decomb.dll")
LoadPlugin("C:\Filters25\msmooth_25_dll_20030124\msmooth200b1\Msmooth.dll")
LoadPlugin("C:\Filters25\dctfilter_25_dll_20030221\DctFilter.dll")
LoadPlugin("C:\Filters25\blockbuster_25_dll_20030204\blockbuster.dll")
LoadPlugin("C:\Filters25\convolution3dyv12_25_dll_20030329\Convolution3DYV12.dll")
LoadPlugin("C:\Filters25\temporalcleaner_25_dll\TemporalCleaner.dll")
LoadPlugin("C:\Filters25\dup220b1/Dup.dll")
LoadPlugin("C:\Filters25\atc_25_dll_20030118\atc.dll")
LoadPlugin("C:\Filters25\AddGrain\AddGrain.dll")
LoadPlugin("C:\Filters25\deen_25_dll_20030119\Deen.dll")
####

MaxTreshold = 1.50
nf =  0 # Current frame.

Mpeg2Source("d:\dcd\test\dvd\tr\test.d2v")

Limiter()
asharp(1, 4)

GripCrop(352, 576, overscan=1)

GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )

#FieldDeinterlace()

MergeChroma(blur(1.58))
MergeLuma(blur(0.2))



SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= 2 ? \
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) ")
##TemporalCleaner(6+nf,13+nf)")

GripBorders()

Limiter()

Dup(threshold=1,blend=true)
DctFilter(1,1,1,1,1,1,0.5,0)

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

http://www.digitalfaq.com/archives/error.gif

Click on the picture to see the sampler! 5,74 MB (No Audio).

@Dialhot: can U post the TemporalCleaner Part again + LoadPlugin-line? THX

BTW can somebody tell my why it always flicker on the right side of the picture during the sampler?

A nother question: Is there a filter for logos? (Not to remove them! I want to add one!!!) I know only this way till now: Creating the AVS-Script normal, Open it in VirtualDup, add the logofilter by D.graft, start Frameserver, Encode the Video. Can I add a filter to the AVS-Script???

Dialhot 07-18-2003 04:48 PM

@avalon :

Man, I told you to REPLACE the line with temporalsoften, I never said "comment it out".

Replace = Remove = Erase = Delete = Bye Bye miss "temporalsoften" line

Or at least put the temporalcleaner line juste after the unfilter line : it's not an option, it's mandatory

For the logo, if you have a virtualdub filter than can do that, you can use it in a script with the "LoadVirtualDubPlugin" command.

As always : RTFM :!:


All times are GMT -5. The time now is 11:02 PM  —  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.