Log in

View Full Version : I wish you a merry christmas (2017 script)


hanfrunz
19th December 2017, 16:25
Hello everyone, here is the christmas script for 2017. Happy Festivus! :-)


function p(float len,float freq){return audiodub(BlankClip(length=int(len*24),width=400,height=400,pixel_type="rgb32",fps=24,color=int((freq-271.0)/1.72)),tone(len,freq,channels=1,level=1.0).FadeIO0(1,0,24))}
function q(float len,float freq){return tone(len,freq,channels=1,level=0.5).FadeIO0(1,0,24)}
c=261.6255653006
D=293.6647679174
E=329.6275569129
F=349.2282314330
G=391.9954359817
A=440.00000000001
B=493.8833012561
c2=c*2.0
d2=d*2.0
e2=e*2.0
f2=f*2.0
g2=g*2.0
N1=1.0
N2=0.5*N1
N4=0.25*N1

BlankClip(length=576,width=400,height=400,pixel_type="rgb32",fps=24,color=0).subtitle(" . * . * ",y=50,size=46,align=5,font="Courier New").subtitle(" . * . ",y=50+30*1,size=46,align=5,font="Courier New").subtitle("* . . * ",y=50+30*2,size=46,align=5,font="Courier New").subtitle(" . . .",y=50+30*3,size=46,align=5,font="Courier New").subtitle(" . . * . ",y=50+30*4,size=46,align=5,font="Courier New").subtitle(" * . * ",y=50+30*5,size=46,align=5,font="Courier New").subtitle(" . * . ",y=50+30*6,size=46,align=5,font="Courier New").subtitle("* . . * ",y=50+30*7,size=46,align=5,font="Courier New").subtitle(" . . .",y=50+30*8,size=46,align=5,font="Courier New").subtitle(" . . * . ",y=50+30*9,size=46,align=5,font="Courier New").greyscale().GeneralConvolution(0,"5 10 10 10 5 10 10 5 10 10 5 10 10 10 5 10 10 10 10 10 5 10 10 10 5 ",200,false).crop(0,10,0,-076)
stackvertical(last,last,last,last)
sn=stackhorizontal(last,last,last)
sn= Animate(0,576,"Bicubicresize",sn,400,400,1./3.,1./3.,576./3.,1256.-400.,400,400,sn,400,400,1./3.,1./3.,0.,0.,400,400)
sn2=sn.crop(100,100,0,0).bicubicresize(400,400)
mixaudio(p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,G2)+p(N4,C)+p(N4,D2)+p(N1,E2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,D2)+p(N4,D2)+p(N4,E2)+p(N2,D2)+p(N2,G2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,E2)+p(N2,E2)+p(N4,E2)+p(N4,G2)+p(N4,C)+p(N4,D2)+p(N1,E2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,F2)+p(N4,E2)+p(N4,E2)+p(N4,E2)+p(N4,G2)+p(N4,G2)+p(N4,F2)+p(N4,D2)+p(N1,C),q(N2,C)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,g)+q(N2,a)+q(N2,g)+q(N2,C)+q(N2,A)+q(N2,B)+q(N2,g)+q(N2,g)+q(N2,a)+q(N2,g)+q(N4,b)+q(N4,g)+q(N4,a)+q(N4,b)+q(N2,C)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,a)+q(N2,g)+q(N2,C)+q(N2,g)+q(N2,b)+q(N2,g)+q(N2,C)+q(N2,g)+q(N4,b)+q(N4,g)+q(N4,a)+q(N4,b)+q(N1,c2))
subtitle("I wish all avisynth developers and users\n a merry christmas and a happy new year!\n\n(hanfrunz 2017)",align=5,lsp=10,text_color=$ffff00,halo_color=$ff0000) #"
overlay(last,sn,mode="blend",opacity=0.25).overlay(sn2,mode="blend",opacity=0.25).crop(0,98,0,-77)

m=BlankClip(length=576,width=400,height=138,pixel_type="rgb32",fps=24,color=0).subtitle("2017",y=134,size=207,align=5,font="Arial black ",text_color=$ffffff).bicubicresize(400,225)
m2=m.crop(0,0,-300,0).addborders(0,0,300,0)
m0=m.crop(100,0,-200,0).addborders(100,0,200,0)
m1=m.crop(200,0,-100,0).addborders(200,0,100,0)
m7=m.crop(300,0,0,0).addborders(300,0,100,0)
ani2=Animate(0,100,"Bicubicresize",m.crop(0,0,-300,0).addborders(0,0,300,0),400,235,1./3.,1./3.,100.0,0,400,235,m.crop(0,0,-300,0).addborders(0,0,300,0),400,235,1./3.,1./3.,0.,0.,400,235)
ani0=Animate(0,100,"Bicubicresize",m.crop(100,0,-200,0).addborders(100,0,200,0),400,235,1./3.,1./3.,0,235.0,400,235,m.crop(100,0,-200,0).addborders(100,0,200,0),400,235,1./3.,1./3.,0.,0.,400,235)
ani1=Animate(0,100,"Bicubicresize",m.crop(200,0,-100,0).addborders(200,0,100,0),400,235,1./3.,1./3.,0.0,-235.0,400,235,m.crop(200,0,-100,0).addborders(200,0,100,0),400,235,1./3.,1./3.,0.,0.,400,235)
ani7=Animate(0,100,"Bicubicresize",m.crop(300,0,0,0).addborders(300,0,100,0),400,235,1./3.,1./3.,-100.0,0,400,235,m.crop(300,0,0,0).addborders(300,0,100,0),400,235,1./3.,1./3.,0.,0.,400,235)
overlay(last,ani2,mode="blend",opacity=.5,mask=ani2).overlay(ani0,mode="blend",opacity=.5,mask=ani0).overlay(ani1,mode="blend",opacity=.5,mask=ani1).overlay(ani7,mode="blend",opacity=.5,mask=ani7)

#

Sparktank
19th December 2017, 20:47
:)

Favorite christmas card of the year.

Thanks again for another one!

Have a great new year, too!

real.finder
19th December 2017, 21:55
merry christmas :)

great script

StainlessS
20th December 2017, 03:43
Hi Hanfrunz, nice to see you again, alas not often enough.

But, on my crappy XP32 2.4 GHz core duo quad core, is very choppy, I decided to convert to AVI and test again but ConvertToYV12 screws up, due to output size of 400x225, intended ?

EDIT: Encode to YUY2 HuffYUV AVI, plays OK.

EDIT: And a Merry XMas to all :)

GMJCZP
20th December 2017, 13:58
Thanks for the script.

Merry Christmas!

¡Feliz navidad para todos!

http://www.datosgratis.net/wp-content/uploads/2016/10/imagenes-con-mensajes-de-navidad-recordando-al-nino-jesus.jpg

Overdrive80
20th December 2017, 16:17
Every year sound better!!

Happy days and merry christmas!!

¡Qué os regalen muchas cosas!

FranceBB
21st December 2017, 03:10
Merry Christmas! :D

OvejaNegra
28th December 2017, 05:35
The same!
Merry Christmas!

¡Feliz navidad a todos!

videoFred
28th December 2017, 13:28
Great script, as usual ;)

Fred