1.1.3 • Published 3 years ago

node-gstreamer-tools v1.1.3

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

Installation

Support only linux yet. Contributions are welcome.
System dependencies : libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev (>= 1.14)

To install run npm i node-gstreamer-tools

Examples

Plugins inspection

const gst = require('node-gstreamer-tools');

const plugins = gst.getPlugins();
const pluginDetails = gst.inspect(plugins[0]);

console.log(plugins, pluginDetails);

Media inspection

const gst = require('node-gstreamer-tools');

gst
  .discover("file://<media path>", 60) // 60 = timeout in seconds
  .then(mediaInfos => {
    console.log(mediaInfos);
  })
  .catch(e => {
    console.log(e);
  })
;

// or 

gst
  .discover("http(s)://<url>", 10)
  .then(mediaInfos => {
    console.log(mediaInfos);
  })
  .catch(e => {
    console.log(e);
  })
;

Constants

features[].pads[].direction

https://gstreamer.freedesktop.org/documentation/gstreamer/gstpad.html#GstPadDirection

ValueDescription
0unknown
1src
2sink

features[].pads[].presence

https://gstreamer.freedesktop.org/documentation/gstreamer/gstpadtemplate.html?gi-language=c#GstPadPresence

ValueDescription
0Always
1Sometimes
2Request

features[].uriHandler

https://gstreamer.freedesktop.org/documentation/gstreamer/gsturihandler.html?gi-language=c#GstURIType

ValueDescription
0The URI direction is unknown
1The URI is a consumer
2The URI is a producer

https://github.com/GStreamer/gstreamer/blob/master/tools/gst-inspect.c#L769

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago