We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
quicktime - access denied (Read 1718 times)
quicktime - access denied
Aug 25th, 2007, 7:12am
 

quicktime.std.StdQTException[QTJava:6.1.5g],-5000=afpAccessDenied,QT.vers:7138000
at quicktime.std.StdQTException.checkError(StdQTException.java:38)


this happens when I try to make a movie using MovieMaker. (generative video+audio type of thing)

the same code works for other sketches, which are variations of similar visual reaction patterns but doesn't work with one particular code.

I'm using macbook OSX 10.4.8, quicktime version 7.1.3, ESS library for audio analysis and OPENGL for 3D objects.

would anyone suggest anything?

thanks,

emre.
Re: quicktime - access denied
Reply #1 - Sep 12th, 2007, 2:07pm
 
two things off the top of my head:

1) that you don't have permissions to access the file (may need to run "fix permissions" on your mac, or perhaps it's on a server).

2) the file name (or something else in the path to the file) is longer than 30ish characters, which quicktime sometimes balks at. same possibility for files with umlauts or something like that in the name.

others have run into similar problems with qtjava:
http://lists.apple.com/archives/QuickTime-java/2007/Feb/msg00076.html

might also be a good idea to update your system to the latest 10.4.x and the rest of the updates (qt 7.2 on mac doesn't seem to have as many problems as the windows version).
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();
 }
 }

Re: quicktime - access denied
Reply #3 - Dec 17th, 2009, 12:08am
 
There's a hint in the earlier reply from fry -

Quote:
2) the file name (or something else in the path to the file) is longer than 30ish characters, which quicktime sometimes balks at. same possibility for files with umlauts or something like that in the name.


I had the same issue, and noticed that my sketch folder name was quite long. I saved the sketch with a shorter name, and the error went away. Must be that the whole path to the new file, including the sketch folder for example, is limited in its char length.
Page Index Toggle Pages: 1