AviSynth - AMPLADA variable (PER EXPERTS)

Manuals i tutorials.

Moderadors: Petiso, Ayu

Respon
Avatar de l’usuari

Autor del tema
Petiso
Site Admin
Site Admin
Entrades: 16297
Membre des de: dv. oct. 06, 2006 13:13
Status: Desconnectat

AviSynth - AMPLADA variable (PER EXPERTS)

#1

Entrada Autor: Petiso » ds. feb. 04, 2012 1:07

Avui m'he trobat amb un vídeo, que a mig vídeo, apareixen barres horizontals als costats ... i com em molestaven, he "jugat" amb el avisinth a veure com es podien treure. Per tant, fer de forma que al vídeo resultant tingui la mateixa amplada, provenint d'un vídeo amb dos amplades (crops) diferents.
# Created with Gordian Knot
#
# http://gknot.doom9.org

# PLUGINS
LoadPlugin("D:\TV\GORDIA~1\DGMPGDec\DGDecode.dll")
LoadPlugin("D:\TV\GORDIA~1\AviSynthPlugins\UnDot.dll")
LoadPlugin("D:\TV\GORDIA~1\AviSynthPlugins\FluxSmooth.dll")

# SOURCE
v = mpeg2source("X:\..............d2v")

# CROPPING

function f_toms(int i) {
return (i> 131515) ? 1 : 0
}

v1 = crop(v,12,16,698,544) # Crop de la SEGONA part del video
v1 = Undot(v1)
v1 = FluxSmoothST(v1,7,7)
v1 = LanczosResize(v1,704,376)

v2 = crop(v,2,16,716,544) # Crop de la PRIMERA part del video
v2 = Undot(v2)
v2 = FluxSmoothST(v2,7,7)
v2 = LanczosResize(v2,704,376)

ConditionalFilter(v, v1,v2 , "f_toms(current_frame)", "equals", "1")


Imatge Imatge

Respon