System.out.println("can't find video track");
return false;
}
// Read video format
VideoFormat f = (VideoFormat)vtc.getFormat();
width = (int)f.getSize().getWidth();
height = (int)f.getSize().getHeight();
// create images
bsGraphicsRenderer.setFrontBuffer(imageFactory.createBufferedImage((int)f.getSize().getWidth(), (int)f.getSize().getHeight(), BufferTypes.RGB_3Byte));
bsGraphicsRenderer.setBackBuffer(imageFactory.createBufferedImage((int)f.getSize().getWidth(), (int)f.getSize().getHeight(), BufferTypes.RGB_3Byte));
try {
vtc.setRenderer(bsGraphicsRenderer);
} catch ( Exception ex) {
ex.printStackTrace();