Playing video on Mac using GSVideo library not working

edited October 2014 in Library Questions

Just trying to run the loop example in GSVideo 1.0.0 on a MacOsX 10.9.5 and I get this:

error, disabling movieEvent() for station.mov
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at codeanticode.gsvideo.GSMovie.invokeEvent(Unknown Source)
    at codeanticode.gsvideo.GSMovie$2.rgbFrame(Unknown Source)
    at org.gstreamer.elements.RGBDataAppSink$AppSinkNewBufferListener.newBuffer(RGBDataAppSink.java:162)
    at org.gstreamer.elements.AppSink$2.callback(AppSink.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:384)
    at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:414)
Caused by: java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
    at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
    at java.awt.image.BufferedImage.<init>(BufferedImage.java:331)
    at processing.core.PImage.getNative(PImage.java:322)
    at processing.core.PImage.resize(PImage.java:616)
    at codeanticode.gsvideo.GSMovie.read(Unknown Source)
    at Loop.movieEvent(Loop.java:52)
    ... 14 more

Works fine on PC. I've tried assigning the width and height of the movie using getSourceWidth()/Height(), but it doesn't work. This shouldn't be a hard thing to do. Has anyone ever played back video using GSVideo on a Mac? Is it possible, yes or no? Is there something I'm missing?

Tagged:
Sign In or Register to comment.