Displaying 2 results from an estimated 2 matches for "write_wav".
Did you mean:
write_wait
2003 May 05
1
Ogg/Vorbis Python modules problem
...arate step. The only thing that seems to be able to fix this is unpacking the data to an array of ints, scaling and converting to floats, and repacking to a string in Python, but this is much slower and seems to leak memory. I'm guessing it has so
mething to do with passing a Python string to write_wav instead of the buffer objects that both MadFile and VorbisFile return, but I'm not sure. Does anyone else have any experience with using Vorbis in Python which might be helpful?
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsub...
2009 Feb 24
0
any help with pyogg and pyvorbis?
...gg.OggStreamState(5)
map(os.packetin, vd.headerout())
og = os.flush()
while og:
og.writeout(fout)
og = os.flush()
nsamples = 1024
eos = 0
total = 0
while not eos:
data = inwav.readframes(nsamples)
total = total + nsamples
if not data:
vd.write(None)
break
vd.write_wav(data)
#print 100.0 * total / inwav.getnframes()
vb = vd.blockout()
while vb:
vb.analysis()
vb.addblock()
op = vd.bitrate_flushpacket()
while op:
os.packetin(op)
while not eos:
og = os.pageout()
if n...