merln
YaBB Newbies
Offline
Posts: 2
Re: quicktime - access denied
Reply #2 - Oct 25th , 2009, 12:16am
I'm getting exactly the same error (except for version numbers) as the initial poster. I know it's not the length of the filename (less than 30 characters). The example sketch "DrawingMovie" from the Processing library for Video>MovieMaker doesn't display error messages, but neither does it make the file it should be making, "drawing.mov". I'm running Processing 1.0.1 on a MacBookPro, OS 10.5.8, 2.4 GHzIntel Core Duo (sometimes makes a difference), QuickTime 7.6.4, Java 10.2 (I think; I honestly don't know where to look for that bit of info...). Any help would be great; I've trawled around the forums looking for similar problems, but this is the closest I've found to mine. Could it be that my version of Quicktime (non-Pro) simply doesn't let me make movies? Or does Processing bypass that lack of privilege? //++++++++++++++++++++++ //Error message: quicktime.std.StdQTException[QTJava:7.6.4g],-5000=afpAccessDenied,QT.vers:7648000 at quicktime.std.StdQTException.checkError(StdQTException.java:38) at quicktime.std.movies.Movie.createMovieFile(Movie.java:115) at processing.video.MovieMaker.initMovie(MovieMaker.java:231) at processing.video.MovieMaker.<init>(MovieMaker.java:221) at processing.video.MovieMaker.<init>(MovieMaker.java:181) at BlackWithWhiteEllipsesVideo_CaptureMovFile.setup(BlackWithWhiteEllipsesVideo_Cap tureMovFile.java:48) at processing.core.PApplet.handleDraw(PApplet.java:1383) at processing.core.PApplet.run(PApplet.java:1311) at java.lang.Thread.run(Thread.java:613) //++++++++++++++++++++++ //My code: import processing.video.*; // Size of each cell in the grid int cellSize = 15; // Number of columns and rows in our system int cols, rows; // Variable for capture device Capture video; MovieMaker mm; void setup() { size(800, 600, P2D); //set up columns and rows cols = width / cellSize; rows = height / cellSize; colorMode(RGB, 255, 255, 255, 100); rectMode(CENTER); // Uses the default video input, see the reference if this causes an error video = new Capture(this, width, height, 15); mm = new MovieMaker(this, width, height, "Capture2.mov", 12, MovieMaker.BMP, MovieMaker.WORST); background(24, 100, 150); } void draw() { if (video.available()) { video.read(); video.loadPixels(); background(0, 0, 0); // Begin loop for columns for (int i = 0; i < cols;i++) { // Begin loop for rows for (int j = 0; j < rows;j++) { // Where are we, pixel-wise? int x = i * cellSize; int y = j * cellSize; int loc = (video.width - x - 1) + y*video.width; // Reversing x to mirror the image // Each rect is colored white with a size determined by brightness color c = video.pixels[loc]; float sz = (brightness(c) / 255.0) * cellSize; fill(255); noStroke(); ellipse(x + cellSize/2, y + cellSize/2, sz, sz); } } //add window's pixels to movie mm.addFrame(); //saveFrame(); } } void keyPressed() { if (key == ' ') { // Finish the movie if space bar is pressed mm.finish(); // Quit running the sketch once the file is written exit(); } }