@SuppressWarnings("unused")
	public void writeAVI() {
		/*
		 * JMF Code no longer functioned for writing AVIs. Commented out and
		 * code below was written to use a different AVI writing library. BJD:
		 * 11-9-09
		 * 
		 * JpegImagesToMovie imageToMovie = new JpegImagesToMovie();
		 * List<String> frameNames = getFrameNames(); Picture p = new
		 * Picture((String) frameNames.get(0)); if(!outputURL.endsWith(".avi"))
		 * outputURL = outputURL + ".avi";
		 * imageToMovie.doItAVI(p.getWidth(),p.getHeight(),
		 * frameRate,frameNames,outputURL);
		 */

		// The code below utilizes Werner Randelshofer's AVIOutputStream
		// object to write an AVI movie from the list of frames. His code
		// is shared under the Creative Commons Attribution License
		// (see http://creativecommons.org/licenses/by/3.0/). More
		// information about that code can be found in the AVIDemo.jar
		// archive in the jars folder or at http://www.randelshofer.ch

		List<String> frameNames = this.getFrameNames();
		if (!this.outputURL.endsWith(".avi")) {
			this.outputURL = this.outputURL + ".avi";
		}
		try {
			Picture p = new Picture(frameNames.get(0));
		} catch (ImageFormatException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

		try {
			// Convert the URL into a filename
			String filename = (new URL(this.outputURL)).getFile();

			// Setup the output stream
			AVIOutputStream AVIout = new AVIOutputStream(new File(filename));
			// AVIout.setCompressionQuality(1);
			// AVIout.setFrameRate(frameRate);
			// (AVIout).setVideoDimension(p.getWidth(), p.getHeight());

			// Write each frame
			for (int i = 0; i < frameNames.size(); i++) {
				// AVIout.writeFrame(new File(frameNames.get(i)));
				// TODO Fix this
			}

			// Close the output stream so the AVI has proper format
			AVIout.close();
		} catch (Exception e) {
		}

	}