Unable to work MovieMaker with a Mac
in
Core Library Questions
•
2 years ago
I am having difficulty with MovieMaker in the video library using a Mac OS X Version 10.5.8. The program runs fine when I do not use MovieMaker. But, when I add all the necessary lines of code for MovieMaker, the program does not run. I am wondering if the library is incomplete or if there is anything extra I might have to download to try to get this running (I have Quicktime) Also, if anyone has experienced this problem and might know how to fix it, please let me know! The code is below, but I am uploading an array of images and displaying them one after another in draw, so you won't be able to run it.
import processing.opengl.*;
import processing.video.*;
MovieMaker mm;
int maxImages = 191;
int imageIndex = 1;
PImage[] images = new PImage[maxImages];
PFont f;
void setup() {
size(900,600,OPENGL);
background(255);
//frameRate(1);
f = loadFont("Times-Bold-48.vlw");
mm = new MovieMaker(this, width, height, "network.mov"); //, 30, MovieMaker.GIF, MovieMaker.HIGH);
for (int i = 1; i < images.length; i++) {
images[i] = requestImage("net"+ i + ".png");
println("net"+ i + " has loaded");
}
}
void draw() {
textFont(f,48);
fill(0);
if (imageIndex < images.length - 1) {
image(images[imageIndex],0,0);
imageIndex = (imageIndex + 1);
//text(imageIndex, width/2.5, height/9);
mm.addFrame();
println("net" + imageIndex +" has been displayed");
}
}
void keyPressed() {
if (key == ' ') {
mm.finish();
exit();
}
}
import processing.opengl.*;
import processing.video.*;
MovieMaker mm;
int maxImages = 191;
int imageIndex = 1;
PImage[] images = new PImage[maxImages];
PFont f;
void setup() {
size(900,600,OPENGL);
background(255);
//frameRate(1);
f = loadFont("Times-Bold-48.vlw");
mm = new MovieMaker(this, width, height, "network.mov"); //, 30, MovieMaker.GIF, MovieMaker.HIGH);
for (int i = 1; i < images.length; i++) {
images[i] = requestImage("net"+ i + ".png");
println("net"+ i + " has loaded");
}
}
void draw() {
textFont(f,48);
fill(0);
if (imageIndex < images.length - 1) {
image(images[imageIndex],0,0);
imageIndex = (imageIndex + 1);
//text(imageIndex, width/2.5, height/9);
mm.addFrame();
println("net" + imageIndex +" has been displayed");
}
}
void keyPressed() {
if (key == ' ') {
mm.finish();
exit();
}
}
1