Unable to run on raspberry-pi arm device

155 views
Skip to first unread message

Terence Jordan

unread,
Oct 1, 2013, 8:44:13 AM10/1/13
to gstream...@googlegroups.com
Hi,

I am trying to use gstreamer-java on my raspberry-pi to play a video file from java.

The code works fine on my debian x64 machine.


I am using jna-3.4

The error that i am getting is when trying to call:

args = Gst.init("Swing Player", args);


gst-launch videotestsrc ! autovideosink -> This Works..

The error i am getting.


./bin/TopperDemo.sh
MY CP:->.:lib/TopperDemo.jar:lib/gstreamer-java-1.5.jar:lib/gstreamer-java-swt-1.5.jar:lib/jffmpeg-1.1.0.jar:lib/jna-3.4.0.jar:/bin:/boot:/dev:/etc:/home:/lib:/lost+found:/media:/mnt:/opt:/proc:/root:/run:/sbin:/selinux:/srv:/sys:/tmp:/usr:/var
/home/pi/projects/TopperDemo/media/Denom/Denom.avi
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /tmp/jna/jna8916261459853140222.tmp: /tmp/jna/jna8916261459853140222.tmp: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1957)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1882)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1843)
        at java.lang.Runtime.load0(Runtime.java:795)
        at java.lang.System.load(System.java:1061)
        at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:771)
        at com.sun.jna.Native.loadNativeLibrary(Native.java:697)
        at com.sun.jna.Native.<clinit>(Native.java:127)
        at org.gstreamer.lowlevel.GNative.loadNativeLibrary(GNative.java:48)
        at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:45)
        at org.gstreamer.lowlevel.GstNative.load(GstNative.java:42)
        at org.gstreamer.lowlevel.GstNative.load(GstNative.java:39)
        at org.gstreamer.Gst.<clinit>(Gst.java:59)
        at topperdemo.MainFrameTopper.playFile(MainFrameTopper.java:162)
        at topperdemo.MainFrameTopper.jButton1ActionPerformed(MainFrameTopper.java:145)
        at topperdemo.MainFrameTopper.access$000(MainFrameTopper.java:44)
        at topperdemo.MainFrameTopper$1.actionPerformed(MainFrameTopper.java:88)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
        at java.awt.Component.processMouseEvent(Component.java:6505)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
        at java.awt.Component.processEvent(Component.java:6270)
        at java.awt.Container.processEvent(Container.java:2229)
        at java.awt.Component.dispatchEventImpl(Component.java:4861)
        at java.awt.Container.dispatchEventImpl(Container.java:2287)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
        at java.awt.Container.dispatchEventImpl(Container.java:2273)
        at java.awt.Window.dispatchEventImpl(Window.java:2719)
        at java.awt.Component.dispatchEvent(Component.java:4687)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
        at java.awt.EventQueue.access$200(EventQueue.java:103)
        at java.awt.EventQueue$3.run(EventQueue.java:694)
        at java.awt.EventQueue$3.run(EventQueue.java:692)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.awt.EventQueue$4.run(EventQueue.java:708)
        at java.awt.EventQueue$4.run(EventQueue.java:706)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)


Hope you can help.

Thanks and Regards

Terence



John van Weel

unread,
Nov 19, 2013, 9:01:56 AM11/19/13
to gstream...@googlegroups.com
Hey!

I have been trying this about a year ago, I managed to play some mp3 files using gstreamer and java.

However, I am trying again now, using a new installation, gstreamer 0.10 and java 8 and I'm getting the same exception you do. Did you find any solutions for this issue?


John

Neil C Smith

unread,
Nov 19, 2013, 12:36:37 PM11/19/13
to gstream...@googlegroups.com
Hi John,

Have you tried installing JNA from the repositories, or building it on
the Pi? The stack trace in the original post would suggest JNA is not
able to extract and load its native library from /tmp, either because
of permissions or because the included ARM build in jna.jar isn't
compatible with the Pi. Highly suspect this is an issue with JNA
configuration and nothing specifically related to GStreamer-Java.

Best wishes,

Neil

--
Neil C Smith
Artist : Technologist : Adviser
http://neilcsmith.net

Praxis LIVE - open-source intermedia development - www.praxislive.org
Digital Prisoners - interactive spaces and projections -
www.digitalprisoners.co.uk
OpenEye - the web, managed - www.openeye.info
Reply all
Reply to author
Forward
0 new messages