wiseant
6th September 2012, 02:59
Hi
I am trying to find a way to open a wave file using avisynth in order to write out the audiolength
For some reason it only seems to work if I use Directshowsource to open an av clip - then I can use WriteFile to write the audiolength
e.g.
a = Directshowsource("D:\MyMovie.avi")
b = a.audiolengthF
filename = "D:\wavsample.txt"
writefile(a,filename, "b")
but when I try to use either
a = Directshowsource("D:\MyWav.wav", video=false)
b = a.audiolengthF
filename = "D:\wavsample.txt"
writefile(a,filename, "b")
or
a = WavSource("D:\MyWav.wav")
b = a.audiolengthF
filename = "D:\wavsample.txt"
writefile(a,filename, "b")
I get a writefile error [avisynth2.58]
I am trying to find a way to open a wave file using avisynth in order to write out the audiolength
For some reason it only seems to work if I use Directshowsource to open an av clip - then I can use WriteFile to write the audiolength
e.g.
a = Directshowsource("D:\MyMovie.avi")
b = a.audiolengthF
filename = "D:\wavsample.txt"
writefile(a,filename, "b")
but when I try to use either
a = Directshowsource("D:\MyWav.wav", video=false)
b = a.audiolengthF
filename = "D:\wavsample.txt"
writefile(a,filename, "b")
or
a = WavSource("D:\MyWav.wav")
b = a.audiolengthF
filename = "D:\wavsample.txt"
writefile(a,filename, "b")
I get a writefile error [avisynth2.58]