@Override
                    public Void call() throws Exception {
                        Screenshots.convertScreenShot(item.buffer, item.image);
                        item.data = writer.writeImageToBytes(item.image, quality);
                        while (usedItems.peek() != item) {
                            Thread.sleep(1);
                        }
                        writer.addImage(item.data);
                        usedItems.poll();
                        freeItems.add(item);
                        return null;
                    }
Set the video image quality from 0(worst/smallest) to 1(best/largest).
@param quality the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)
jme3-desktop/src/main/java/com/jme3/app/state/VideoRecorderAppState.java