compiling gstreamer to javascript

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling gstreamer to javascript

Vito De Tullio
did anyone tried to compile (for example with emscripten) gstreamer to pure
js code?
is it possible to try it in the browser?

(I am interested to make an html5-video-tag extension with gst + a custom
video codec)

--
By ZeD

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: compiling gstreamer to javascript

Sebastian Dröge-3
On Sa, 2016-06-11 at 10:25 +0200, Vito De Tullio wrote:
> did anyone tried to compile (for example with emscripten) gstreamer to pure 
> js code?
> is it possible to try it in the browser?
>
> (I am interested to make an html5-video-tag extension with gst + a custom 
> video codec)

GStreamer itself should be possible to some degree, the problem is that
you will also have to compile all dependencies of GStreamer and the
plugins you want to use, and you need to find replacements for a)
assembly code and b) platform specific APIs (dlopen() for example).

It will be possible but you'll have to put quite some effort into this
and modify the code accordingly.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: compiling gstreamer to javascript

Nicolas Dufresne-5
In reply to this post by Vito De Tullio


Le 11 juin 2016 3:32 AM, "Vito De Tullio" <[hidden email]> a écrit :
>
> did anyone tried to compile (for example with emscripten) gstreamer to pure
> js code?
> is it possible to try it in the browser?
>
> (I am interested to make an html5-video-tag extension with gst + a custom
> video codec)
>

I don't think this will work. You may try. In the past, I've seen demo exposing GStreamer to WebKit using seedkit. The project is probably unmaintained by now.

> --
> By ZeD
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: compiling gstreamer to javascript

Sebastian Dröge-3
On Sa, 2016-06-11 at 07:00 -0400, Nicolas Dufresne wrote:

>
> Le 11 juin 2016 3:32 AM, "Vito De Tullio" <[hidden email]> a
> écrit :
> >
> > did anyone tried to compile (for example with emscripten) gstreamer
> to pure
> > js code?
> > is it possible to try it in the browser?
> >
> > (I am interested to make an html5-video-tag extension with gst + a
> custom
> > video codec)
> >
> I don't think this will work. You may try. In the past, I've seen
> demo exposing GStreamer to WebKit using seedkit. The project is
> probably unmaintained by now.
That's still using native C libraries though, while compiling (a
modified version of) GStreamer with emscripten would give you a plain
JavaScript version that would run in any JavaScript engine (and thus
browser).

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: compiling gstreamer to javascript

Nicolas Dufresne-4
In reply to this post by Sebastian Dröge-3
Le samedi 11 juin 2016 à 11:35 +0300, Sebastian Dröge a écrit :

> On Sa, 2016-06-11 at 10:25 +0200, Vito De Tullio wrote:
> >
> > did anyone tried to compile (for example with emscripten) gstreamer
> > to pure 
> > js code?
> > is it possible to try it in the browser?
> >
> > (I am interested to make an html5-video-tag extension with gst + a
> > custom 
> > video codec)
> GStreamer itself should be possible to some degree, the problem is
> that
> you will also have to compile all dependencies of GStreamer and the
> plugins you want to use, and you need to find replacements for a)
> assembly code and b) platform specific APIs (dlopen() for example).
>
> It will be possible but you'll have to put quite some effort into
> this
> and modify the code accordingly.
Specially for things using assembly, like libffi which is no a hard
dependency of GLib.

>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: compiling gstreamer to javascript

Sebastian Dröge-3
On Sa, 2016-06-11 at 11:00 -0400, Nicolas Dufresne wrote:

> Le samedi 11 juin 2016 à 11:35 +0300, Sebastian Dröge a écrit :
> > On Sa, 2016-06-11 at 10:25 +0200, Vito De Tullio wrote:
> > >
> > > did anyone tried to compile (for example with emscripten)
> > > gstreamer
> > > to pure 
> > > js code?
> > > is it possible to try it in the browser?
> > >
> > > (I am interested to make an html5-video-tag extension with gst +
> > > a
> > > custom 
> > > video codec)
> > GStreamer itself should be possible to some degree, the problem is
> > that
> > you will also have to compile all dependencies of GStreamer and the
> > plugins you want to use, and you need to find replacements for a)
> > assembly code and b) platform specific APIs (dlopen() for example).
> >
> > It will be possible but you'll have to put quite some effort into
> > this
> > and modify the code accordingly.
>
> Specially for things using assembly, like libffi which is no a hard
> dependency of GLib.
You would have to implement these using JavaScript mechanisms I guess.
As another "platform" next to x86, arm, etc ;)

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment