state.vc.header_out(header_comments);
streamout.packetin(header_main);
streamout.packetin(header_comments);
streamout.packetin(header_codebooks);
//System.out.println("%1");
while ((result = streamout.flush(ogout)) != 0) {
//System.out.println("result="+result);