GStreamer windows, Java need your opinions

Nicolas Dufresne nicolas.dufresne at collabora.com
Thu Sep 3 07:33:52 PDT 2015


Le jeudi 03 septembre 2015 à 01:30 -0700, Deven a écrit :
> Hello,
> 
> I have to develop a software for windows OS using GStreamer and I
> want to
> know some elements before my first tests/drafts.
> 
> Did you think it's better to develop into the Java language or C ?

C, as there is not complete binding for Java.

> Some advantages of Java language are portability and not use of
> Visual
> Studio...

You'd still need to build GStreamer for each platform. Java is portable
without recompiling, GStreamer is portable, but require building for
each platforms. Note that you could do the core of your work in C and
provide a thin layer (implementing JNI bindings) for the UI to be in
Java (or C#).

> One other advantage is that I also have to build my software as a
> library
> called by another Java program so it's better even if it's not
> necessarily
> (JNI) to work with java.

You need JNI, but yes, as I just mention.

> 
> Mean inconvenient is there is only a few people working with
> GStreamer Java
> what it means less support particularly about writing a gstreamer
> plugin
> into Java langage.

I would not look for bindings, but do the core multimedia work in C and
then provide a JNI layer for Java which make sense and is high level
enough.

> 
> Did you have some experiences about writing a GStreamer plugin in
> Java
> language?

I don't think this has ever been done since 1.0.

> Did you see other advantages or inconvienents of the Java for
> GStreamer ?

Java will add a certain overhead (even though it's better then Python
for sure). Other then that, the high level API approach has worked well
for me in various Android projects. On Windows we have most often
provided C# binding of our high level library (the library implementing
our use case using GStreamer).

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150903/f07ec93b/attachment.sig>


More information about the gstreamer-devel mailing list