search for: analysis_init

Displaying 1 result from an estimated 1 matches for "analysis_init".

Did you mean: analysis_info
2009 Feb 24
0
any help with pyogg and pyvorbis?
...9; import ogg.vorbis, wave fout = open('out.ogg', 'wb') inwav = wave.open('in.wav','rb') channels = inwav.getnchannels() vd = ogg.vorbis.VorbisInfo(channels = channels, rate = inwav.getframerate(), quality = 0.2).analysis_init() os = ogg.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) brea...