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

BufferedImage rgb = ImageIO.read(nextImg);
if (videoTrack == null) {
videoTrack = muxer.createVideoTrack(new Size(rgb.getWidth(), rgb.getHeight()),
"V_MPEG4/ISO/AVC");
}
Picture8Bit yuv = Picture8Bit.create(rgb.getWidth(), rgb.getHeight(), ColorSpace.YUV420);
transform.transform(AWTUtil.fromBufferedImageRGB8Bit(rgb), yuv);
ByteBuffer buf = ByteBuffer.allocate(rgb.getWidth() * rgb.getHeight() * 3);
ByteBuffer ff = encoder.encodeFrame8Bit(yuv, buf);
videoTrack.addSampleEntry(ff, i);
}
if (i == 1) {
System.out.println("Image sequence not found");
