GStreamer/Java and Java 7

174 views
Skip to first unread message

Lucan1d

unread,
Oct 27, 2011, 2:50:14 AM10/27/11
to gstream...@googlegroups.com

Has anyone gotten this to work?

 

Thanks,

 

-Luc

Andres Colubri

unread,
Nov 1, 2011, 7:39:13 PM11/1/11
to gstream...@googlegroups.com
I just tested Java 7 u1 (jdk1.7.0_01) 64 bits on Windows 7 Professional 64 bits, and gstreamer/gstreamer-java appear to work fine. You would need 64 bits binaries of gstreamer though.
--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To post to this group, send email to gstream...@googlegroups.com.
To unsubscribe from this group, send email to gstreamer-jav...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gstreamer-java?hl=en.

Lucan1d

unread,
Nov 3, 2011, 3:26:12 AM11/3/11
to gstream...@googlegroups.com

I have tried 32-bit gstreamer-java with 32-bit Java 7 Update 1 on Windows 7 64-bit and I cannot get it to load the DLLs.  It was working fine with Java 6 and the only thing I changed was upgrading Java.

 

What's the trick in getting it to work?

 

From: gstream...@googlegroups.com [mailto:gstream...@googlegroups.com] On Behalf Of Andres Colubri
Sent: Wednesday, 2 November 2011 10:39
To: gstream...@googlegroups.com
Subject: Re: GStreamer/Java and Java 7

 

I just tested Java 7 u1 (jdk1.7.0_01) 64 bits on Windows 7 Professional 64 bits, and gstreamer/gstreamer-java appear to work fine. You would need 64 bits binaries of gstreamer though.

On 10/27/11 2:50 AM, Lucan1d wrote:

Has anyone gotten this to work?

 

Thanks,

 

-Luc

.

Andres Colubri

unread,
Nov 7, 2011, 5:00:59 PM11/7/11
to gstream...@googlegroups.com
As long the dlls and the JVM have the same arch (32 or 64) bits, then gstreamer-java should work without any special tricks.

However, I only tested Java 7 64 bits with 64 bits dlls of gstreamer.
--

Lucan1d

unread,
Nov 10, 2011, 1:00:01 AM11/10/11
to gstream...@googlegroups.com

OK, I simply cannot get this to work.

 

My setup is GStreamer 0.10.6 32-bit, Java 7 Update 1 32-bit, Windows 7 64-bit.  I have the GStreamer bin directory in my system path but when I run the examples in gstreamer-java-1.4 I always get this:

 

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library gstreamer-0.10

       at org.gstreamer.lowlevel.GNative.loadWin32Library(GNative.java:83)

       at org.gstreamer.lowlevel.GNative.loadLibrary(GNative.java:43)

       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 org.gstreamer.example.SwingMultiPlayer.main(SwingMultiPlayer.java:52)

 

That's what happens when I just run the program without specifying any DLL paths but I also get the exact same result when I run the program with the following VM argument:

 

-Djna.library.path="C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin"

 

I *really* need some help with this, I have to get it working and I have exhausted everything I can think of.

 

Any suggestions?

 

Thanks,

 

-Luc

Lucan1d

unread,
Nov 10, 2011, 1:29:31 AM11/10/11
to gstream...@googlegroups.com

I seem to have made a little progress...

 

Running the following command:

 

D:\Java\jdk\1.7.0-32\bin\java.exe -Djna.library.path="C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\bin";"C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\lib\gstreamer-0.10" -cp .;D:\Java\lib\gstreamer-java-1.4\lib\jna.jar org.gstreamer.example.SwingMultiPlayer D:\Media\nvidia.wmv

 

now gives me this error:

 

** (java.exe:12096): WARNING **: Failed to load plugin 'C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\lib\gstreamer-0.10\libgstrmdemux.dll': `C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\lib\gstreamer-0.10\libgstrmdemux.dll': The specified module could not be found.

 

** (java.exe:12096): WARNING **: Failed to load plugin 'C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\lib\gstreamer-0.10\libgstplaybin.dll': `C:\Program Files (x86)\OSSBuild\GStreamer\v0.10.6\lib\gstreamer-0.10\libgstplaybin.dll': The specified module could not be found.

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: No such Gstreamer factory: playbin

        at org.gstreamer.ElementFactory.makeRawElement(ElementFactory.java:174)

        at org.gstreamer.Element.makeRawElement(Element.java:93)

        at org.gstreamer.elements.PlayBin.<init>(PlayBin.java:248)

        at org.gstreamer.media.PlayBinMediaPlayer.<init>(PlayBinMediaPlayer.java:39)

        at org.gstreamer.swing.VideoPlayer.<init>(VideoPlayer.java:136)

        at org.gstreamer.swing.VideoPlayer.<init>(VideoPlayer.java:130)

        at org.gstreamer.example.SwingMultiPlayer$1.run(SwingMultiPlayer.java:76)

        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)

        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)

        at java.awt.EventQueue.access$000(EventQueue.java:101)

        at java.awt.EventQueue$3.run(EventQueue.java:666)

        at java.awt.EventQueue$3.run(EventQueue.java:664)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)

        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

 

The DLLs mentioned in this message do exist so what could be the problem with this?

 

Thanks,

 

-Luc

Lucan1d

unread,
Nov 10, 2011, 3:20:47 AM11/10/11
to gstream...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages