System.out.println(e.getMessage());
e.printStackTrace(System.out);
}
long timeStamp = (now - firstTimeStamp)*1000; // convert to microseconds
IVideoPicture outFrame = converter.toPicture(worksWithXugglerBufferedImage,
timeStamp);
outFrame.setQuality(0);
int retval = outStreamCoder.encodeVideo(packet, outFrame, 0);
if (retval < 0)