@Override
        public void cleanup() {
            logger.log(Level.INFO, "cleanup in VideoProcessor");
            logger.log(Level.INFO, "VideoProcessor numFrames: {0}", numFrames);
            try {
                while (freeItems.size() < numCpus) {
                    Thread.sleep(10);
                }
                logger.log(Level.INFO, "finishAVI in VideoProcessor");
                writer.finishAVI();
            } catch (Exception ex) {
                Logger.getLogger(VideoRecorderAppState.class.getName()).log(Level.SEVERE, "Error closing video: {0}", ex);
            }
            writer = 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-android/src/main/java/com/jme3/app/state/VideoRecorderAppState.java