
transform.transform(AWTUtil.fromBufferedImageRGB(rgb), yuv);
</BUG>
ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3);
<BUG>ByteBuffer ff = encoder.encodeFrame(yuv, buf);
</BUG>
sink.write(ff);
}
if (i == 1) {
System.out.println("Image sequence not found");

for (i = 0; i < cmd.getIntegerFlagD("maxFrames", Integer.MAX_VALUE); i++) {
File nextImg = new File(String.format(cmd.getArg(0), i));
if (!nextImg.exists())
break;
BufferedImage rgb = ImageIO.read(nextImg);
Picture8Bit yuv = Picture8Bit.create(rgb.getWidth(), rgb.getHeight(), encoder.getSupportedColorSpaces()[0]);
transform.transform(AWTUtil.fromBufferedImageRGB8Bit(rgb), yuv);
ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3);
ByteBuffer ff = encoder.encodeFrame8Bit(yuv, buf);
sink.write(ff);
}
if (i == 1) {
System.out.println("Image sequence not found");
