Difference between revisions of "Anri-chan/Source/sda.avs"

From SDA Knowledge Base

Jump to: navigation, search
(strobe)
(No absolute paths. The files now get copied to the project folder.)
Line 1: Line 1:
 
<pre><nowiki>
 
<pre><nowiki>
 
function nate_statid_d1(run,string statid1,string statid2,string statid3) {
 
function nate_statid_d1(run,string statid1,string statid2,string statid3) {
ImageSource("C:\Program Files\anrichan\ntsc_d1.png",end=4,fps=1)
+
ImageSource("ntsc_d1.png",end=4,fps=1)
 
Subtitle(statid1,font="Verdana",size=36,text_color=$FFFFFF,align=5)
 
Subtitle(statid1,font="Verdana",size=36,text_color=$FFFFFF,align=5)
 
Subtitle(statid2,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=360)
 
Subtitle(statid2,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=360)
Line 7: Line 7:
 
converttoyv12
 
converttoyv12
 
changefps(run)
 
changefps(run)
audiodub(wavsource("C:\Program Files\anrichan\silence_stereo_48000.wav"))
+
audiodub(wavsource("silence_stereo_48000.wav"))
 
(pal==true) ? addborders(32,0,32,96) : addborders(0,0,0,0)
 
(pal==true) ? addborders(32,0,32,96) : addborders(0,0,0,0)
 
return ResampleAudio(run.audiorate)
 
return ResampleAudio(run.audiorate)
Line 13: Line 13:
  
 
function nate_statid_gba(run,string statid1,string statid2,string statid3) {
 
function nate_statid_gba(run,string statid1,string statid2,string statid3) {
ImageSource("C:\Program Files\anrichan\ntsc_d1.PNG",end=4,fps=1)
+
ImageSource("ntsc_d1.PNG",end=4,fps=1)
 
crop(48,0,-32,0)
 
crop(48,0,-32,0)
 
lanczos4resize(480,last.height-60)
 
lanczos4resize(480,last.height-60)
Line 22: Line 22:
 
converttoyv12
 
converttoyv12
 
changefps(run)
 
changefps(run)
audiodub(wavsource("C:\Program Files\anrichan\silence_stereo_48000.wav"))
+
audiodub(wavsource("silence_stereo_48000.wav"))
 
return ResampleAudio(run.audiorate)
 
return ResampleAudio(run.audiorate)
 
}
 
}
  
 
function nate_statid_gb(run,string statid1,string statid2,string statid3) {
 
function nate_statid_gb(run,string statid1,string statid2,string statid3) {
ImageSource("C:\Program Files\anrichan\ntsc_d1.PNG",end=4,fps=1)
+
ImageSource("ntsc_d1.PNG",end=4,fps=1)
 
Subtitle(statid1,font="Verdana",size=36,text_color=$FFFFFF,align=5)
 
Subtitle(statid1,font="Verdana",size=36,text_color=$FFFFFF,align=5)
 
Subtitle(statid2,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=360)
 
Subtitle(statid2,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=360)
Line 34: Line 34:
 
converttoyv12
 
converttoyv12
 
changefps(run)
 
changefps(run)
audiodub(wavsource("C:\Program Files\anrichan\silence_stereo_48000.wav"))
+
audiodub(wavsource("silence_stereo_48000.wav"))
 
return ResampleAudio(run.audiorate)
 
return ResampleAudio(run.audiorate)
 
}
 
}

Revision as of 20:29, 9 March 2008

function nate_statid_d1(run,string statid1,string statid2,string statid3) {
ImageSource("ntsc_d1.png",end=4,fps=1)
Subtitle(statid1,font="Verdana",size=36,text_color=$FFFFFF,align=5)
Subtitle(statid2,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=360)
Subtitle(statid3,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=400)
converttoyv12
changefps(run)
audiodub(wavsource("silence_stereo_48000.wav"))
(pal==true) ? addborders(32,0,32,96) : addborders(0,0,0,0)
return ResampleAudio(run.audiorate)
}

function nate_statid_gba(run,string statid1,string statid2,string statid3) {
ImageSource("ntsc_d1.PNG",end=4,fps=1)
crop(48,0,-32,0)
lanczos4resize(480,last.height-60)
Subtitle(statid1,font="Verdana",size=28,text_color=$FFFFFF,align=2,y=220)
Subtitle(statid2,font="Verdana",size=26,text_color=$FFFFFF,align=2,y=270)
Subtitle(statid3,font="Verdana",size=26,text_color=$FFFFFF,align=2,y=310)
crop(0,0,0,-100)
converttoyv12
changefps(run)
audiodub(wavsource("silence_stereo_48000.wav"))
return ResampleAudio(run.audiorate)
}

function nate_statid_gb(run,string statid1,string statid2,string statid3) {
ImageSource("ntsc_d1.PNG",end=4,fps=1)
Subtitle(statid1,font="Verdana",size=36,text_color=$FFFFFF,align=5)
Subtitle(statid2,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=360)
Subtitle(statid3,font="Verdana",size=36,text_color=$FFFFFF,align=2,y=400)
bilinearresize(160,144)
converttoyv12
changefps(run)
audiodub(wavsource("silence_stereo_48000.wav"))
return ResampleAudio(run.audiorate)
}


function nate_vhs_head_change_erase(last) {
croppy=10
Crop(0,0,0,last.height-croppy).AddBorders(0,0,0,croppy)
}

function nate_1_pixel_bob_fix(last) {
converttorgb32
clip1=SelectEven.Crop(0,0,0,last.height).AddBorders(0,0,0,0)
clip2=SelectOdd.Crop(0,0,0,last.height-1).AddBorders(0,1,0,0)
Interleave(clip1,clip2)
nate_2d_sonic
converttoyv12
}

function nate_2d_sonic(last) {
croppy=10
Crop(0,0,0,last.height-croppy).AddBorders(0,0,0,croppy)
croppy=4
Crop(0,croppy,0,0).AddBorders(0,croppy,0,0)
}

function nate_retard_bob_2(last) {
converttorgb32
field1=SelectEven.PointResize(last.width,last.height*4).crop(0,1,0,0).addborders(0,0,0,1).bilinearresize(d1,last.height)
field2=SelectOdd.PointResize(last.width,last.height*4).crop(0,0,0,-1).addborders(0,1,0,0).bilinearresize(d1,last.height)
interleave(field1,field2)
sharpen(0.31)
converttoyv12
}

function nate_nes(last) {
converttomono
mergechannels(last,last)
converttorgb32
crop(4,0,0,0)
addborders(4,0,0,0)
}

function nate_gba(last) {
converttorgb
lanczos4resize(320,240)
crop(43,39,-44,-41)
lanczos4resize(240,160)
converttoyv12
}

function nate_gb(last) {
lanczos4resize(320,240)
Crop(80,48,-80,-48) #thanks Quijo
}

function nate_flv(last) {
ssrc(44100)
convertaudioto16bit()
lanczos4resize(320,240)
flipvertical()
}
Personal tools