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.
IndexProgramming Questions & HelpProcessing Implementations › Quicktime Permissions in ruby-processing
Page Index Toggle Pages: 1
Quicktime Permissions in ruby-processing (Read 2764 times)
Quicktime Permissions in ruby-processing
Apr 27th, 2009, 1:26am
 
Trying to use the MovieMaker class from the video library within ruby-processing has thrown this error at me:
quicktime.std.StdQTException[QTJava:7.6.0g],-5000=afpAccessDenied,QT.vers:7608000
     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)
...

Just wondering if anyone else has run up against this, or if you have suggestions of where else I can look to try solving this. I'm concerned that I might need to recompile the .jar for the video library or come up with a different means of creating movies (like saving every frame and assembling in another program).

I confirmed that I can create movies using the MovieMaker class from within the Processing IDE. It's only when I try to load it in ruby-processing that a permission error is thrown.

I included the library like this:
Code:

class Chart < Processing::App
 
 load_libraries :video
 import 'processing.video.MovieMaker'
 
 def setup
   @do_record = false
   @mm = MovieMaker.new( self, width, height, "drawing.mov", 30, MovieMaker::H264, MovieMaker::HIGH )
 ...
 end
...
end


Thanks.
Re: Quicktime Permissions in ruby-processing
Reply #1 - Apr 27th, 2009, 5:34am
 
Hi David.

I, unfortunately, run into an altogether different problem trying to use the MovieMaker class (which I hadn't tried before). It seems like Apple has dropped support for their Java-Quicktime library on 64-bit machines, and so you need to use a 32-bit version of Java to make it work on a Mac -- see this post:

http://processing.org/discourse/yabb2/num_1236220041.html

But your error looks different than mine, so I'll try it on a 32-bit machine later today and see if it works any better there. Thanks for bringing the issue up.
Re: Quicktime Permissions in ruby-processing
Reply #2 - Apr 27th, 2009, 6:37pm
 
David -- The MovieMaker works just fine for me on a 32-bit machine, no tricks or hacks required. Here's a video, followed by the sketch that made it:

http://s3.amazonaws.com/jashkenas/misc/drawing.mov

http://gist.github.com/102869

Give that sketch a try and let me know what happens. If it doesn't work, please post back your platform and environment details.
Re: Quicktime Permissions in ruby-processing
Reply #3 - Apr 27th, 2009, 10:52pm
 
That indeed works for me. Adding certain compression scheme and quality arguments causes QuickTime to complain (H264 especially). I'll just omit them for now.

I'll repost here if I figure out what exactly was triggering the problem.

Thanks
Re: Quicktime Permissions in ruby-processing
Reply #4 - Apr 28th, 2009, 2:35am
 
I had trouble with H264 too (although with a different system and regular Processing), I made a little test script to check all available formats for my installation: Test of MovieMaker video type.
Maybe this can help.
Page Index Toggle Pages: 1