Displaying 2 results from an estimated 2 matches for "headerout".
2010 Nov 14
1
RCurl and cookies in POST requests
...#postForm(site, .params=list(par=cookie_1), .opts=list(httpheader = c(
# header = "foo: bar"), debugfunction = d$update, verbose=T),
# curl=curlHandle, style="POST")
#write.table(d$value()[["headerIn"]], file="debug_in.txt")
#write.table(d$value()[["headerOut"]], file="debug_out.txt")
rm(curlHandle)
gc()
}
-------------- next part --------------
# The script will call no_cookie() if no cookies file exists.
# It will then read the cookie XXX (its value is "cookie1").
# When XXX has been read, it will be written to "c_file...
2009 Feb 24
0
any help with pyogg and pyvorbis?
...;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)
break
vd.write_wav(data)
#print 100.0 * total / inwav.g...