code: public void open(int width, int height, double frameRate) throws JavaAVException {
  		if (!open.get()) {
  			String input = "video=" + device;
  
  			demuxer = new Demuxer();
  			demuxer.setInputFormat(format);
  			demuxer.setImageWidth(width);
  			demuxer.setImageHeight(height);
  			demuxer.setFramerate(frameRate);
  			demuxer.open(input);
  
  			open.set(true);
  		}
  	}
docs: Open the camera with specified image size and capture frame rate.
  
  @param width     the image width.
  @param height    the image height.
  @param frameRate the capture frame rate.
  
  @throws JavaAVException if camera could not be opened.