vb = new vorbis_block(vd);
java.util.Random generator = new java.util.Random(); // need to randomize seed
os = new ogg_stream_state(generator.nextInt(256));
ogg_packet header = new ogg_packet();
ogg_packet header_comm = new ogg_packet();
ogg_packet header_code = new ogg_packet();
vd.vorbis_analysis_headerout(vc, header, header_comm, header_code);
os.ogg_stream_packetin(header); // automatically placed in its own page
os.ogg_stream_packetin(header_comm);
os.ogg_stream_packetin(header_code);
og = new ogg_page();
op = new ogg_packet();
try {
output = new FileOutputStream(outputFile);
if (!os.ogg_stream_flush(og))