mgh
20th September 2005, 15:31
With addition of the __aud__ macro in dgindex/dgdecode, I am using the following as "template.avs" to get audio information automatically into avisynth.
mpeg2source("__vid__",cpu=6)
aud="__aud__"
a=rightstr(aud,3)
b=rightstr(aud,10)
c=leftstr(b,4)
d=value(c)
e=d/1000
a=="ac3" ?audiodub(last,nicac3source(aud,2)).delayaudio(e):NOP
a=="mpa" ?audiodub(last,nicmpasource(aud)).delayaudio(e):NOP
return last
Is there any similar way to get the aspect ratio from the .d2v file into avisynth?
mpeg2source("__vid__",cpu=6)
aud="__aud__"
a=rightstr(aud,3)
b=rightstr(aud,10)
c=leftstr(b,4)
d=value(c)
e=d/1000
a=="ac3" ?audiodub(last,nicac3source(aud,2)).delayaudio(e):NOP
a=="mpa" ?audiodub(last,nicmpasource(aud)).delayaudio(e):NOP
return last
Is there any similar way to get the aspect ratio from the .d2v file into avisynth?