digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Anime/Cartoon with 2.5x script? (http://www.digitalfaq.com/archives/avisynth/4035-avisynth-anime-cartoon.html)

TemplateAVS 06-17-2003 02:32 PM

Avisynth: Anime/Cartoon with 2.5x script?
 
When I use the default 2.5 script,

Quote:

LoadPlugin("D:\Filters\2.5\MPEG2Dec3.dll")
LoadPlugin("D:\Filters\2.5\STMedianFilter.dll")
LoadPlugin("D:\Filters\2.5\UnFilter.dll")
LoadPlugin("D:\Filters\2.5\asharp.dll")
LoadPlugin("D:\Filters\2.5\undot.dll")

MaxTreshold = 1.50
scd_trigger = 30 # Scene change trigger value.
nf = 0 # Current frame.

#Mpeg2Source("Your_D2V_Source_Here") #DVD
aviSource("D:\Share\Anime\Jungle\Jungle.Guu.26.Ani meCo.avi")
#DirectShowSource("D:\shared\53453453.avi") #MPEG

Converttoyv12()

undot()
Limiter()
asharp(2, 4)
BicubicResize(336,224,0,0.6,0,0,640,480)
STMedianFilter(8, 32, 0, 0)
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))

ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf > 2.5 ? asharp( -(fmin((nf/30), 1)), 0 ) : \
TemporalSoften(2,7,7,3,2) ")

ScriptClip("nf > scd_trigger ? asharp( -2,0) : asharp(0,0) ")

Limiter()

function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}
The result was the subtitles fading in and out (the subtitles start clear, then goes blur and clear) whenever theres motion on the scene.

So I decided to take out the script clip command, to this

Quote:

LoadPlugin("D:\Filters\2.5\MPEG2Dec3.dll")
LoadPlugin("D:\Filters\2.5\STMedianFilter.dll")
LoadPlugin("D:\Filters\2.5\UnFilter.dll")
LoadPlugin("D:\Filters\2.5\asharp.dll")
LoadPlugin("D:\Filters\2.5\undot.dll")

MaxTreshold = 1.50
scd_trigger = 30 # Scene change trigger value.
nf = 0 # Current frame.

#Mpeg2Source("Your_D2V_Source_Here") #DVD
aviSource("D:\Share\Anime\Jungle\Jungle.Guu.26.Ani meCo.avi")
#DirectShowSource("D:\shared\53453453.avi") #MPEG

Converttoyv12()

undot()
asharp(2, 4)
BicubicResize(336,224,0,0.6,0,0,640,480)
STMedianFilter(8, 32, 0, 0)
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.2))

function fmin(float f1, float f2) {
return (f1<f2) ? f1 : f2
}
With this script, the moving scenes don't blur the subtitles anymore. But is it still okay to take out that script clip command?

PyRoMaNiA 06-17-2003 02:35 PM

Probably not, as that's most of the "dynamic adaptive" part... Without it, it's just static filtering. :?

kwag 06-17-2003 03:27 PM

Hi TemplateAVS,

I didn't see a Vobsub or Textsub line on your script :!:
If that means that what you are encoding already has embedded subs, then you can't use adaptive filtering. If they are not embedded subs, you can put the vobsub line "after" the adaptive filtering, and then they won't be affected by adaptive filtering.

-kwag


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

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