Como base, vamos utilizar el script optimo de kvcd.org, de tipo Motion Adaptive, es decir que filtra más cuando menos se ve. Con esto, se consigue eliminar los bloques cuando hay movimientos, y subir el CQ de la peli.
Este es el script, que funciona exclusivamente con la versión 2.5 de avisynth:
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\UnFilter.dll")
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\stmedianfilter.dll")#
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\asharp.dll")#
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\undot.dll")#
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\gripfit_yv12.dll")
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\temporalcleaner.dll")
LoadPlugin("D:\tools\AviSynth2\AviSynth
2.5\plugins\autocrop.dll")
#http://www.jungleweb.net/~sansgrip/avisynth/
##
####
##
Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf
= 0 # Current frame.
#
####
## Main section and
static filters ###
#
MPEG2Source("mipeli.d2v")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352,
288)
GripSize(resizer="BicubicResize")
STMedianFilter(8,
32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#
## Dynamic Linear Adaptive Filtering and Scene Change
Detection ##
#
# ( Portions from AviSynth's manual ) - This
will apply temporalsoften to
# very static scenes, and apply
variable blur on moving scenes.
# We also assign a variable - and
this is why a line break is inserted:
SwitchThreshold =
(Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf
= YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ?
\
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) ")
#
## Functions ###
function
fmin(int f1, int f2) {
return (f1<f2) ? f1 : f2
}
Abrimos el proyecto creado antes con Moviestacker, pulsando en
Source.
Y elegimos el formato de destino:
Según
el formato de destino, el programa nos indica que tiene que cortar y
cual es el tamaño de destino.
Elejimos la casilla gripcrop/gripsize, en el centro:
Aquí
cabe resaltar lo que se llama Blocks TV-Overscan, ya que jugando con
este parametro, conseguimos que no se pierdan ningún pixel. En
este caso, si el tamaño de destino es ¾ DVD small, le
podemos poner 3 bloques para que no se pierda nada. La ventaja de
estos bloques, es que reducen el número de pixeles a codificar
con el consiguiente ahorro de tamaño. El inconveniente es que
se pueden llegar a ver los bordes negros en la tele. En la mia, 16/9,
eso no pasa porque automaticamente hace un zoom para comerse los
bordes.
Copiamos el script del inicio de este cápitulo en el notepad.
En la pestaña Avisynth script, copiamos las lineas
mpegSource y gripcrop:
Y
las pegamos en lugar de las lineas correspondientes en el script
anterior y guardamos el script como miscript.avs.
Para comprobar que lo hemos hecho bien, abrimos el script creado en virtualdub.
Paso siguiente -> obtener el CQ con CQMatic