I'm getting some strange behaviour from gstreamer, and some of it seems related to windows 10. I was wondering if you'd have any suggestions?
The setup I'm using;
- GStreamer 1.14.4 (I've tried some previous versions too, mainly 1.10) 64 bit version
- jdk 1.8.172 64-bit (tried other versions too)
- gst1-java-core 0.93 (tried some previous versions, and built the latest snapshot)
I'm using gstreamer in a netbeans platform application.
The setup is working when running in windows 7. Tried it on about 4 different computers.
It's not working when running in windows 10. Tried on ~3 different computers.
It's also only working on the win 7 computers when running the packaged application. Not when running it from netbeans (run or debug).
The PlayBinVideoPlayer example works on the win10 computer. (But gets stuck in a deadlock if I'm using web radio in chrome...)
The exceptions I'm getting are these:
If running on win 10 from netbeans:
java.lang.IllegalArgumentException: No such Gstreamer factory: playbin
at org.freedesktop.gstreamer.ElementFactory.makeRawElement(ElementFactory.java:221)
at org.freedesktop.gstreamer.Element.makeRawElement(Element.java:86)
at org.freedesktop.gstreamer.elements.PlayBin.<init>(PlayBin.java:133)
If running on win 10 from packaged application:
java.lang.Error: Invalid memory access
at com.sun.jna.Native.invokeInt(Native Method)
at com.sun.jna.Function.invoke(Function.java:419)
at com.sun.jna.Function.invoke(Function.java:354)
at com.sun.jna.Library$Handler.invoke(Library.java:244)
at org.freedesktop.gstreamer.lowlevel.GNative$Handler.invoke(GNative.java:195)
at com.sun.proxy.$Proxy60.gst_element_set_state(Unknown Source)
at org.freedesktop.gstreamer.Element.setState(Element.java:192)
Another curious thing is, usually Gst.init() fails with this exception the first time i call it. If I call it again it succeeds.
java.lang.NoSuchFieldError: SIZE
at org.freedesktop.gstreamer.Gst$NativeArgs.<init>(Gst.java:87)
at org.freedesktop.gstreamer.Gst.init(Gst.java:292)
at org.freedesktop.gstreamer.Gst.init(Gst.java:262)
Any ideas or suggestions on what I should try next?