Hello, I am working on a program that captures video from a webcam.
The Capture class works fine, but when I try and implement the MovieMaker class, I get this error on startup:
quicktime.std.StdQTException[QTJava:7.7.1g],-2014=invalidDuration,QT.vers:7718000
at quicktime.std.StdQTException.checkError(StdQTException.java:40)
at quicktime.std.movies.Track.insertMedia(Track.java:676)
at processing.video.MovieMaker.finish(MovieMaker.java:313)
at Webcam.draw(Webcam.java:72)
at processing.core.PApplet.handleDraw(PApplet.java:1631)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
This happens on both Windows and Mac OS X Lion. Any help is much appreciated :)
boolean captureBool = false; void setup() { mm = new MovieMaker(this, width, height, "movies/capture.mov", 30, MovieMaker.H263, MovieMaker.HIGH);
setSizes(); createGUI(); myCapture = new Capture(this, 640, 480, 30);
frame.setTitle("Live Webcam Feed (click to capture photo):"); //Camera view thread: refresh time (millis), name; cam1 = new CameraView(10, "Camera1"); cam1.start();
// To select the camera, replace "Camera Name" // in the next line with one from Capture.list() // myCapture = new Capture(this, width, height, "Camera Name", 30);
void createGUI() { JFrame outsideFrame = new JFrame("Quit"); JPanel mainPanel = new JPanel(); JPanel buttonPanel = new JPanel(); JPanel capturePanel = new JPanel(); JButton quitButton = new JButton("Exit Program"); final JButton captureButton = new JButton("Capture");
I am trying to write a proof-of-concept program which uses the Java swing libraries to create a GUI which controls the brightness of an LED on an Arduino. I use the Java swing libraries to create a window in the application; the only problem is that the normal, default Processing window also shows up. Is there any way to make this window not appear when the application runs? I tried setting its dimensions to (0,0) which appeared to work at first but didn't actually allow the loop() function to run.