Java-Gstreamer library cannot load

138 views
Skip to first unread message

Andrea Carolina Donado Porto

unread,
Nov 25, 2021, 9:16:47 AM11/25/21
to gstreamer-java
So I have been receiving this error all night, and I don't know what else should I do.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library: gstreamer
at org.freedesktop.gstreamer.lowlevel.GstNative.load(GstNative.java:56)
at org.freedesktop.gstreamer.lowlevel.GstNative.load(GstNative.java:46)
at org.freedesktop.gstreamer.lowlevel.GstAPI.<clinit>(GstAPI.java:37)
at org.freedesktop.gstreamer.Gst.getVersion(Gst.java:144)
at org.freedesktop.gstreamer.Gst.init(Gst.java:473)
I already set the environment variables.

Este correo no representa opinión o consentimiento oficial de la Universidad del Norte, por lo que esta no adquiere ninguna responsabilidad por su contenido, salvo en el caso de funcionarios en ejercicio de atribuciones reglamentarias. Puede provenir de una cuenta ofrecida a funcionarios o estudiantes, como parte del ejercicio educativo, evento en el cual tanto el mensaje como sus anexos son estrictamente confidenciales. Ha sido analizado con software antivirus; no obstante, no se garantiza que sea seguro o no contenga errores o virus, por lo que la Universidad del Norte no se hace responsable de su transmisión.

Neil C Smith

unread,
Nov 25, 2021, 9:20:25 AM11/25/21
to gstream...@googlegroups.com
Hi,

On Thu, 25 Nov 2021 at 14:16, Andrea Carolina Donado Porto
<andre...@uninorte.edu.co> wrote:
> So I have been receiving this error all night, and I don't know what else should I do.
> Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load library: gstreamer
...
> I already set the environment variables.

Have you tried with
https://github.com/gstreamer-java/gst1-java-examples/tree/master/BasicPipeline
?

That does not require environment variables. You'll need to use JDK 8
or 11 I think - I need to update the Gradle wrapper for JDK 17.

If that still doesn't work, make sure that the GStreamer installation
and JDK have the same architecture - eg. 64bit.

If still not working, please share your setup code, and details of OS,
JDK, GStreamer installation, etc.

Best wishes,

Neil

--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : Office 4 219 Kensington High Street,
Kensington, London, England, W8 6BD

Andrea Carolina Donado Porto

unread,
Nov 25, 2021, 10:41:57 AM11/25/21
to gstreamer-java
Well, I just saw a post about changing to mingw, and it worked. Also I have an old project that I'm trying to migrate to gst1-core-java.
the line is like this:
rtpvsrc.getStaticPad("src").setCaps(Caps.fromString(VIDEO_CAPS));
rtpvsrc is an element, and Video_CAPS is "application/x-rtp, media=(string)video, clock-rate=(int)90000,encoding-name=(string)VP8-DRAFT-IETF-01,width=320, height=240, rtcp-fb-nack-pli=(int)1"
How should I change this?

Andrea Carolina Donado Porto

unread,
Nov 25, 2021, 10:58:22 AM11/25/21
to gstreamer-java
I also cannot find rtpbin
Reply all
Reply to author
Forward
0 new messages