digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Convertir y Codificar Video (Español) (http://www.digitalfaq.com/archives/espanol/)
-   -   OPTIMAL SCRIPT 2,5 "MergeChroma(blur(MaxTreshold))" (http://www.digitalfaq.com/archives/espanol/5818-optimal-script-25-a.html)

generador 09-26-2003 06:12 AM

oPTIMAL SCRIPT 2,5 "MergeChroma(blur(MaxTreshold))"
 
hOLA.

Tengo listo mi primer script optimo, pero cuando lo cargo me da el error de unknown Mastrshold.
En concreto esta linea:
## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
Como ya estaba un poco deskiciado, e cambiado el valor, supongo que lo de maz sera algo de maximo, entonces le dado el valor maximo en numeros:

MergeChroma(blur(1.5))
-No se si esto es una chapuza o mantiene los parametros de script,

Estoy como un pulpo en un garaje, pero por lo menos ahora no me da error, que hago??

kwag 09-26-2003 01:29 PM

Hola generador,

No copiaste el script completo :!:
MaxTreshold es una variable definida en la parte superior del script.
Miralo bien:

Code:

## DLL Section ##
#
LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\GripFit_YV12.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\asharp.dll")
LoadPlugin("C:\Filters25\unfilter.dll")
LoadPlugin("C:\Filters25\undot.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50 #<<<<<< AQUI AQUI AQUI AQUI AQUI AQUI LOL LOL :D :D :D :) ;)  ---------------|||||||
nf =  0 # Current frame.
#
####

## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( 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) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
  return ( f1<f2 ) ? f1 : f2
}

#
####

-kwag


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

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