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
Snow Leopard & Video Capture (Read 10724 times)
Snow Leopard & Video Capture
Aug 31st, 2009, 7:18pm
 
Snow Leopard & Video Capture


I have just upgraded to snow leopard for OSX and video capturing is throwing errors. I know that quicktime has been upgraded, just wanted to see if anyone else is getting this bug.

This is the error:
Code:
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1033)
at quicktime.QTSession.<clinit>(QTSession.java:94)
at processing.video.Capture.init(Capture.java:165)
at processing.video.Capture.<init>(Capture.java:152)
at processing.video.Capture.<init>(Capture.java:109)
at GettingStartedCapture.setup(GettingStartedCapture.java:33)
at processing.core.PApplet.handleDraw(PApplet.java:1383)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.UnsatisfiedLinkError: /System/Library/Java/Extensions/libQTJNative.jnilib: no suitable image found. Did find: /System/Library/Java/Extensions/libQTJNative.jnilib: no matching architecture in universal wrapper
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1878)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1771)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at quicktime.QTSession$1.run(QTSession.java:96)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: quicktime.QTSession.Gestalt(I[I)S
at quicktime.QTSession.Gestalt(Native Method)
at quicktime.QTSession.gestalt(QTSession.java:935)
at quicktime.QTSession.open(QTSession.java:641)
at quicktime.QTSession.open(QTSession.java:608)
at processing.video.Capture.init(Capture.java:165)
at processing.video.Capture.<init>(Capture.java:152)
at processing.video.Capture.<init>(Capture.java:109)
at GettingStartedCapture.setup(GettingStartedCapture.java:33)
at processing.core.PApplet.handleDraw(PApplet.java:1383)
at processing.core.PApplet.run(PApplet.java:1311)
at java.lang.Thread.run(Thread.java:637)
Re: Snow Leopard & Video Capture
Reply #1 - Sep 1st, 2009, 12:37pm
 
Don't have a solution for you unfortunately, but I'm having a similar problem with the serial libraries under Snow Leopard.  Looks like the upgrade broke something...
Re: Snow Leopard & Video Capture
Reply #2 - Sep 1st, 2009, 1:49pm
 
Hi

I believe I read that during the installation you can choose to install QuickTime 7 along with the new QuickTime X.

Apple made an API called QTkit that handles all calls to QuickTime and routes them to the correct framework (7 or X).

Maybe you just haven't installed quicktime 7 yet, look into that perhaps?
Re: Snow Leopard & Video Capture
Reply #3 - Sep 4th, 2009, 2:35pm
 
I think Quicktime 7 (the framework) is installed automatically. The option is for Quicktime 7 (the player).

Anyway, this looks like possibly a universal binary / rosetta issue?

If anyone has any advice, I'd love to hear it. This is screwing my sketches up, too.
Re: Snow Leopard & Video Capture
Reply #4 - Sep 5th, 2009, 2:08am
 
I've got the same problem but noticed that previous apps using the video library and built with processing 1.0.x on Leopard 10.5 are still working. There is like 10 seconds delay for the video init (looks like it is frozen) but after the app is working perfectly.

I'm trying to find a way to make it work for p5 now.
Re: Snow Leopard & Video Capture
Reply #5 - Sep 5th, 2009, 2:13am
 
Ok i found a way to fix this problem.

Go to /Applications/Utilities/ and open Java Preferences.app

Drag both 32bit Java 6 on top of the 64bit and the video capture will work back to normal.  Cool
Re: Snow Leopard & Video Capture
Reply #6 - Sep 6th, 2009, 12:19am
 
Processing 1.0.7 has been released and fix this problem by starting in 32bit mode on Snow Leopard.
So you can set back Java Preferences to default.

The only problem now is about exporting sketches that make use of the video library to app.

Exported Apps don't work and throw errors in the console.

Code:
Exception in thread "Animation Thread" java.lang.UnsatisfiedLinkError: quicktime.QTSession.Gestalt(I[I)S 

Re: Snow Leopard & Video Capture
Reply #7 - Sep 24th, 2009, 5:58am
 
Or if you don't want to change the default java, so you can change the java runtime options.

Use "java -d32 ..."
Screen capture works fine, but I still can't play *.mov
Re: Snow Leopard & Video Capture
Reply #8 - Oct 2nd, 2009, 10:29pm
 
Any fixes for jaylfk's comment about exported apps? I feel like changing the app runtime in java prefs to 32 bit should fix this, but it doesn't...
Re: Snow Leopard & Video Capture
Reply #9 - Oct 22nd, 2009, 8:56pm
 
same problem here...
exporting with video capture is falling also with openCV

1.0.9 dont fix the problem....
i dont want to have roll back on the SO...

waiting.....
Re: Snow Leopard & Video Capture
Reply #10 - Jan 7th, 2010, 8:43am
 
If you're using Eclipse, just changing the default java wont work. You need to add "-d32" as a VM argument in your build settings for the Processing project you're working on.
Re: Snow Leopard & Video Capture
Reply #11 - Jan 9th, 2010, 5:39am
 
I'm getting the same issue with movie playback on 10.6.2. Any knowledge of how to fix would be appreciated here.
Re: Snow Leopard & Video Capture
Reply #12 - Feb 20th, 2010, 11:28am
 
@weak, thx much for the eclipse VM tip.  i had a wee bit of trouble finding this (it's not in Project Properties), so for others, to get to this field:

right/ctrl-click on project (in Navigator)
choose Run As... > Run Configurations...
   or Debug As... > Debug Configurations...
click the Arguments tab
enter '-d32' (no quotes) in the VM arguments field.
Re: Snow Leopard & Video Capture
Reply #13 - Mar 2nd, 2010, 9:52am
 
I had the same problem with the openCV face detection on MAcOSX 10.6.2. I finally solved the problem getting the info of the Processing generated .app and checking the 32 bit mode.
Re: Snow Leopard & Video Capture
Reply #14 - Apr 12th, 2010, 8:16am
 
In short: Apple dropped the support for Quicktime Java bindings (which are used by Processing) and the future is uncertain (i.e. I wouldn'd hold my breath till it's supported again - but you never know).

Read yourself: http://lists.apple.com/archives/quicktime-java/2008/Jun/msg00018.html

Regards
Mike
[;-)
Page Index Toggle Pages: 1