View Single Post
Old 26th February 2004, 20:40   #8  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Quote:
How would you modify the combo script if your target is 1/2 DVD and you want to keep the video interlaced?
Code:
# QUANTIFIED MOTION FILTER v1.4
# EXAMPLE 2 : ADAPTIVE RESIZING FILTER

# LOADING QUANTIFIED MOTION FILTER SCRIPT
Import("D:\Test\Ivo\Wilbert\qmf.avs")

# LOW MOTION FILTER FUNCTION
# -> SHARP RESIZING + TEMPORAL ONLY
function Low_Motion_Filter(clip c)
{
ConvertToYUY2(c)
PeachSmoother(noiselevel=4.286, baseline=3.141, NoiseReduction = 60, Stability = 30, Spatial = 0)
ConvertToYV12()
BicubicResize(480, 288, 0, 0.75)
}

# MEDIUM MOTION FILTER FUNCTION
# -> NEUTRAL BICUBIC RESIZING + TEMPORAL & SPATIAL
function Medium_Motion_Filter(clip c)
{
c.MipSmooth(spatial=9, temporal=0, spatial_chroma=10, method="superstrong", downsizer="bilinear", upsizer="bilinear", scalefactor=0.60, weigh=true)
BicubicResize(480, 288, 0, 0.75)
}

# HIGH MOTION FILTER FUNCTION
# -> SOFT RESIZING + SPATIAL ONLY
function High_Motion_Filter(clip c)
{
c.MipSmooth(spatial=9, temporal=0, spatial_chroma=10, method="superstrong", downsizer="bilinear", upsizer="bilinear", scalefactor=0.60, weigh=true)
BicubicResize(480, 288, 0, 0.75)
}

# OPENING VIDEO SOURCE
Avisource("D:\Test\huffyuv_raw2.avi")+Avisource("D:\Test\huffyuv_raw.avi")
ConvertToYV12(interlaced=true)

# APPLYING ADAPTATIVE RESIZING FILTER (USING QMF)
#QMF(debug=true)
clip = SeparateFields(last)
even = SelectEven(clip)
odd = SelectOdd(clip)
even_filt = QMF(even)
odd_filt = QMF(odd)
Weave(even_filt,odd_filt)
Tweak(0.0, 0.8, 0.0, 1.0)
Something like that ... (PAL). You might need to low the denoiser settings though.

Quote:
Can I consider these tests valid on anime analog material too?
No ... I don't know anything about anime, but I can imagine that there are more smoothers who do a good job here.

Last edited by Wilbert; 26th February 2004 at 20:42.
Wilbert is offline   Reply With Quote