Quantcast Filtros No DIKO - digitalFAQ.com Forums [Archives]
  #1  
05-19-2004, 06:30 AM
Druuna Druuna is offline
Free Member
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Olá

Alguém poderia explicar como faço para aplicar filtros com o DIKO?

Grato
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
05-19-2004, 06:42 AM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
Faça uma cópia do script padrão "standard.avs", coloque na mesma pasta e modifique a seu gosto.
Reply With Quote
  #3  
05-19-2004, 03:14 PM
Druuna Druuna is offline
Free Member
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by vmesquita
Faça uma cópia do script padrão "standard.avs", coloque na mesma pasta e modifique a seu gosto.
Vmesquita, "modificar a meu gosto" que é o problema, não faço idéia do que fazer.
Se não for roubar muito do seu precioso tempo, dava pra explicar + detalhado ?

Ou qq outro é claro, eu ficaria muito grato.

valeu
Reply With Quote
  #4  
05-19-2004, 04:18 PM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
------------------------- começa aqui--------------------------
Quote:
function AddAudio(clip v1) {
v2 = Blankclip()
v1 = AudioDub(v1,v2)
return v1
}
Function DivXResize(clip c, int WIDTH, int HEIGHT, int OVERSCAN, string RESIZER, int widescreen) {
ratio=((c.width()+.0)/(c.height()+.0))+.0
halfheight43=(round(c.width()/1.33333)-c.height())/2
halfheight43=(widescreen==1)&&(ratio>1.7777) ? (round(c.width()/1.77777)-c.height())/2 : halfheight43


#Crop to fullscreen it this has been asked
fullscreen_cropper=round ((c.width()-(c.height()*1.33333) ) /2)
f_c_mod=fullscreen_cropper % 2
fullscreen_cropper=( f_c_mod == 1) ? (fullscreen_cropper+1) : fullscreen_cropper
c= (widescreen == 2) ? c.crop(fullscreen_cropper,0,(c.width()-2*fullscreen_cropper),0): c

#What would be the height keeping the aspect ratio if width was 640/320-NTSC or 768/384-PAL(4:3)
no_borders_height1=c.height()
#4:3 (option 0 and 2)
no_borders_height1=(HEIGHT == 480) ? (640*c.height())/(c.width()) : no_borders_height1
no_borders_height1=(HEIGHT == 240) ? (320*c.height())/(c.width()) : no_borders_height1

no_borders_height1=(HEIGHT == 576) ? (768*c.height())/(c.width()) : no_borders_height1
no_borders_height1=(HEIGHT == 28 ? (384*c.height())/(c.width()) : no_borders_height1

#anamorphic (option 1)
no_borders_height1=(HEIGHT == 480)&&(widescreen==1)&&(ratio>1.7777) ? (848*c.height())/(c.width()) : no_borders_height1
no_borders_height1=(HEIGHT == 240)&&(widescreen==1)&&(ratio>1.7777) ? (424*c.height())/(c.width()) : no_borders_height1

no_borders_height1=(HEIGHT == 576)&&(widescreen==1)&&(ratio>1.7777) ? (1024*c.height())/(c.width()) : no_borders_height1
no_borders_height1=(HEIGHT == 28&&(widescreen==1)&&(ratio>1.7777) ? (512*c.height())/(c.width()) : no_borders_height1


#Now how much we have to shrink to make it fit inside a macroblock?
mod16height=no_borders_height1 % 16

#If the rest is <=8, subtracts the rest, else, completes to 16.
completion= (mod16height <= ? (-mod16height) : (16-mod16height)
no_borders_height2=no_borders_height1+completion

#finally resize
c=Eval( RESIZER + "(c," + string(WIDTH) + "," + string(no_borders_height2) + ")" )

#add lateral overscan
c=letterbox(c,0,0,overscan*8,overscan*
return(c)
}

Function DivXBorders(clip c, int HEIGHT, int OVERSCAN) {
halfheight43=(HEIGHT-c.height())/2
c=addborders(c,0,halfheight43,0,halfheight43)
#Add vertical overscan
c=letterbox(c,overscan*8,overscan*8,overscan*8,ove rscan*
return(c)
}

converttoyv12()

BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
DivXResize(WIDTH, HEIGHT, 0, "LanczosResize",WIDESCREEN)
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)

DivXBorders(HEIGHT,OVERSCAN)
converttoyuy2()
AddAudio()
MonitorFilter
------------------------------------------- acaba aqui-------------

As linhas em verde vc pode alterar para seus filtros preferidos, e as linhas em negrito fazem o redimensionamento e adicionam bordas, logo devem ser mantidas a não ser que vc saiba o que está fazendo. Melhorou?
Reply With Quote
  #5  
05-22-2004, 06:21 PM
Druuna Druuna is offline
Free Member
 
Join Date: Mar 2004
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Valeu

Esses filtros do exemplo fazem o quê ?

Sds.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Script e filtros MAD Conversão e Codificação de Vídeo (Português) 0 11-01-2004 12:06 PM
Problemas com DIKO e filtros muito estranho mrmscorp_movie Conversão e Codificação de Vídeo (Português) 0 08-16-2004 09:21 AM
* Filtros - FAQ * mabhz Conversão e Codificação de Vídeo (Português) 10 08-13-2004 10:52 PM
Filtros avisynth sacior Convertir y Codificar Video (Español) 3 02-22-2004 08:33 AM
NO HAY FILTROS PRADER Convertir y Codificar Video (Español) 3 12-29-2003 06:47 AM

Thread Tools



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