Quantcast Avisynth: Trouble with MA-Script in PAL? - Page 3 - digitalFAQ.com Forums [Archives]
  #41  
07-18-2003, 07:38 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
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
  #42  
07-18-2003, 11:10 AM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #43  
07-18-2003, 12:05 PM
Avalon Avalon is offline
Free Member
 
Join Date: Jul 2003
Location: Venus
Posts: 187
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Reply With Quote
  #44  
07-18-2003, 12:32 PM
Avalon Avalon is offline
Free Member
 
Join Date: Jul 2003
Location: Venus
Posts: 187
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #45  
07-18-2003, 01:04 PM
Avalon Avalon is offline
Free Member
 
Join Date: Jul 2003
Location: Venus
Posts: 187
Thanks: 0
Thanked 0 Times in 0 Posts
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
}


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???
Reply With Quote
  #46  
07-18-2003, 04:48 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
@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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
AviSynth trouble after reinstall? the viking Avisynth Scripting 2 11-04-2004 06:57 AM
VirtualDub: trouble when loading script.avs in VDub HC_Pensador Video Encoding and Conversion 8 05-26-2004 08:07 AM
KVCD: trouble getting the desired output from the script? Jimblob Video Encoding and Conversion 12 04-30-2004 05:44 PM
Avisynth: Trouble with GripCrop in the MA script! audioslave Avisynth Scripting 17 07-08-2003 11:19 AM
Avisynth: AC3 Trouble hedix Avisynth Scripting 19 04-02-2003 01:00 PM

Thread Tools



 
All times are GMT -5. The time now is 08:46 PM  —  vBulletin © Jelsoft Enterprises Ltd