digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Conversão e Codificação de Vídeo (Português) (http://www.digitalfaq.com/archives/portugues/)
-   -   Script alguem sabe me dizer algo <<<<Vmesquita (http://www.digitalfaq.com/archives/portugues/8234-script-alguem-sabe.html)

Raivos 02-18-2004 10:14 PM

Script alguem sabe me dizer algo <<<<Vmesquita
 
Vmesquita ou alguem que saiba manusear script com o AviSynth 2.5 estou tendo problemas
para fazer filmes e para fazer filmes de desenhos (tipo nemo e era do gelo , animes ) ; peguei este script optimal
no forum em ingles quem puder me dar umas dicas (estou fazendo kvcd a partir de DVDs na resolusão 704x480)
Outra duvida q tenho é seguinte :For Anime/Cartoon material:
Same as DVD clean material, but shorten the GOP to 12 frames (PAL) or 15 (NTSC)
(pelo q entendi esta frase me diz p/ mudar o GPO para 12 ou 15 dependendo da frame isto somente para animes ou desenhos?)

Pergunta 01(os problemas que estou tendo sao o seguinte qualidade muito baixa da imagem principalmente a noite ou em cenas a noite, escuras etc...?)
Pergunta 02(Como faço pra aumentar a qualidade dessas imagem isso é feito atraves do script ou atraves de configuração no encoder TMPGEnc (minha CQ nao esta baixa ela fica de 60 pra cima))
Pergunta 03(Como programar um script otimizado para desenhos e filmes é possivel.....?)


Ai vai o script:
(quem puder ou souber melhora-lo pode faze-lo , quem quiser me passar um outro script (kvcd a partir de DVDs) melhor tambem aceito!!!)
For DVD and clean material ( for use ONLY with AviSynth 2.5x )
## Now with Linear Motion Adaptive Filtering ##
### Ver. October 24, 2003 @18:09 GMT ###
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
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(3, 3, 1, 1 )
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
}

#
####

For Anime/Cartoon material:
Same as DVD clean material, but shorten the GOP to 12 frames (PAL) or 15 (NTSC)


t+ galera desde ja agradeço

Raivos!


All times are GMT -5. The time now is 03:08 PM  —  vBulletin © Jelsoft Enterprises Ltd

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