Log in

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


hanfrunz
23rd December 2018, 17:28
Hello everyone, here is the christmas script for 2018. It's 3D, so go and get your red/cyan glasses and enjoy. 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=0),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=MergeRGB(sn.crop(4,0,0,0).addborders(0,0,4,0), sn, sn).crop(100,100,0,0).bicubicresize(400,400)
snn=MergeRGB(sn.crop(10,0,0,0).addborders(0,0,10,0), sn, sn)
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 2018)",align=5,lsp=10,size=21,text_color=$ffff00,halo_color=$ff0000)
MergeRGB(last.crop(0,0,-10,0).addborders(10,0,0,0), last, last)
audiodub(overlay(sn2, snn, opacity=0.5).rgbadjust(2,2,2).overlay(last,opacity=.5), last.killvideo()).trim(0,450).fadeout(100)

#

Sparktank
23rd December 2018, 17:53
:D Thanks a lot!
Looks great in 3D. Glad I kept my glasses.

Happy Festivus, indeed!

FranceBB
23rd December 2018, 20:27
It's been a while since I last saw red/cyan content (as 3D SBS - Side by Side - took place).
Anyway, it looks great!

https://i.imgur.com/eTL9Wlw.png

Long live to Avisynth! :D

Have yourself a Merry little Christmas and a very happy new year.

spoRv
24th December 2018, 08:32
Thanks a lot for your nice script, hanfrunz!

Merry Xmas and a happy New Year!

StainlessS
25th December 2018, 01:09
Thankyou very much hanfrunz,
Merry xmas and happy new year to one and all.