CameraWriter cameraWriter = new CameraWriter();
cameraWriter.options.filePath.set(dir.getPath());
cameraWriter.options.fileName.set(fileName);
cameraWriter.options.width.set(width);
cameraWriter.options.height.set(height);
<BUG>frame.addConsumer(cameraWriter, cameraProvider, 1.0 / frameRate, 0);
</BUG>
break;
}
case PAINTER:

CameraWriter cameraWriter = new CameraWriter();
cameraWriter.options.filePath.set(dir.getPath());
cameraWriter.options.fileName.set(fileName);
cameraWriter.options.width.set(width);
cameraWriter.options.height.set(height);
frame.addConsumer(cameraWriter, cameraChannel, 1.0 / frameRate, 0);
break;
}
case PAINTER:
