Log in

View Full Version : Is it possible to get aspect ratio from .d2v files automatically into avisynth?


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?

Mug Funky
20th September 2005, 17:28
hmm... didn't know about the macro stuff. sounds really useful.

however, i think cpu=6 might be a tad harsh unless your source is already pretty bad. cpu=4 will only deblock and will keep more detail, but even that can cause some losses on b-frames (due to the higher quant, i guess). for anime there's not so much of a problem, but on anything with grain it can be quite a large detail loss.