Quantcast Avisynth: Anime/Cartoon with 2.5x Script? - digitalFAQ.com Forums [Archives]
  #1  
06-17-2003, 02:32 PM
TemplateAVS TemplateAVS is offline
Free Member
 
Join Date: Feb 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
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?
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  
06-17-2003, 02:35 PM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Probably not, as that's most of the "dynamic adaptive" part... Without it, it's just static filtering.
Reply With Quote
  #3  
06-17-2003, 03:27 PM
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
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Simple script to make a kdvd from divx cartoon? zagor Avisynth Scripting 1 12-06-2004 10:18 AM
Best Anime Script in Avisynth? hoyahoya Avisynth Scripting 1 09-13-2004 09:49 AM
Avisynth: Old Cartoon Encoding? Revan Avisynth Scripting 8 07-10-2004 02:21 PM
Avisynth: I need Anime encoding script BloodAngel Avisynth Scripting 51 10-21-2003 12:32 PM
KVCD: Anime/Cartoon GOP setting? Bchteam Video Encoding and Conversion 22 07-06-2003 11:20 AM

Thread Tools



 
All times are GMT -5. The time now is 02:44 AM  —  vBulletin Jelsoft Enterprises Ltd