Ship GStreamer with your application

437 views
Skip to first unread message

vft...@gmail.com

unread,
Apr 23, 2018, 11:37:56 AM4/23/18
to gstreamer-java
Hi everyone,

The README says:
It is possible to ship GStreamer with your application should you not wish your users to have to install it separately.

But how can I do that? I couldn't find any documentation regarding this subject
Thanks!

vft...@gmail.com

unread,
Apr 24, 2018, 10:35:09 AM4/24/18
to gstreamer-java
After a bunch of research, I currently have GStreamer libraries in my project root folder and I'm setting jna.library.path to that.
I also run into the issue No such Gstreamer factory which I think I solved by adding the gst-plugins folders to Gst.init args --gst-plugin-path.

Now I'm getting arch: /usr/local/Cellar/gstreamer/1.14.0_1/libexec/gstreamer-1.0/gst-plugin-scanner isn't executable and I'm not sure if I'm on the right path...

Any help is welcome
Regards

Neil C Smith

unread,
Apr 24, 2018, 10:42:25 AM4/24/18
to gstream...@googlegroups.com
Hi,

What OS are you on?

You can set the plugin folder as an ENV variable.  We should map GLib's support for this, but at the moment you can use JNA Platform.

There is also a mapping to the Registry - Registry.get().scanPath() should hopefully work.

Best wishes,

Neil

--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gstreamer-jav...@googlegroups.com.
To post to this group, send email to gstream...@googlegroups.com.
Visit this group at https://groups.google.com/group/gstreamer-java.
For more options, visit https://groups.google.com/d/optout.
--
Neil C Smith
Artist & Technologist

Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org

vft...@gmail.com

unread,
Apr 24, 2018, 10:52:03 AM4/24/18
to gstreamer-java
Hi! 

I'm using macOS High Sierra, Version 10.13.3.

So, if I understood correctly, I should be able to add GStreamer to my project with something like this:
System.setProperty("jna.library.path", "gstreamer/1.14.0_1/lib");

And, instead of using the --gst-plugin-path I should do something like this?

Registry.get().scanPath("gstreamer/1.14.0_1/lib:gstreamer/1.14.0_1/libexec:gst-plugins-bad/1.14.0_1/lib:gst-plugins-base/1.14.0_1/lib:gst-plugins-good/1.14.0_1/lib");


Sorry, I'm still new to this but I really appreciate your help!
Regards

Neil C Smith

unread,
Apr 24, 2018, 10:57:48 AM4/24/18
to gstream...@googlegroups.com
On Tue, 24 Apr 2018 at 15:52 <vft...@gmail.com> wrote:
I'm using macOS High Sierra, Version 10.13.3.

There's also info on env variables there - with those or the registry scanPath option I think you'll need absolute paths.

Best wishes,

Neil

vft...@gmail.com

unread,
May 2, 2018, 10:34:13 AM5/2/18
to gstreamer-java
Thanks Neil, this helped a lot too: https://gstreamer.freedesktop.org/documentation/deploying/multiplatform-using-cerbero.html

But I ended up using a Docker container for my use case


On Monday, April 23, 2018 at 11:37:56 AM UTC-4, vft...@gmail.com wrote:

Neil C Smith

unread,
May 2, 2018, 10:42:52 AM5/2/18
to gstream...@googlegroups.com
Hi, 

Thanks. Yes one of the problems is that different use cases call for different approaches, but we should definitely try and document some options. If you feel like writing a quick wiki page on what you've done, let me know! :-) Or a blog post we can link to. 

Best wishes, 

Neil

--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gstreamer-jav...@googlegroups.com.
To post to this group, send email to gstream...@googlegroups.com.
Visit this group at https://groups.google.com/group/gstreamer-java.
For more options, visit https://groups.google.com/d/optout.

vft...@gmail.com

unread,
May 7, 2018, 1:24:45 PM5/7/18
to gstreamer-java
Hi Neil,

I wouldn't mind writing a wiki page, where I can do that?
Also, I would recommend adding this link to the README: https://gstreamer.freedesktop.org/documentation/deploying/index.html

In my case, I wanted to use GStreamer in Jenkins, but once I realized it wouldn't be possible to ship GStreamer without an installer or something, I just created a Docker container with Ubuntu and GStreamer to use as a Jenkins Pipeline Agent

Regards

Neil C Smith

unread,
May 9, 2018, 10:21:26 AM5/9/18
to gstream...@googlegroups.com
Hi,

On Mon, 7 May 2018 at 18:24 <vft...@gmail.com> wrote:
I wouldn't mind writing a wiki page, where I can do that?

Assuming you have a GitHub account, you should be able to add a page at https://github.com/gstreamer-java/gst1-java-core/wiki There aren't any yet!

Also, I would recommend adding this link to the README: https://gstreamer.freedesktop.org/documentation/deploying/index.html

Likewise, a PR to add this would be great.

Best wishes,

Neil

Vinicius Tona

unread,
May 11, 2018, 8:30:21 PM5/11/18
to gstream...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gstreamer-java+unsubscribe@googlegroups.com.

To post to this group, send email to gstreamer-java@googlegroups.com.



--
"If we can really understand the problem, the answer will come out of it, 
because the answer is not separate from the problem." - Krishnamurti

Vinícius Faria Toná
Reply all
Reply to author
Forward
0 new messages