Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webini/node-gstreamer-tools
Simple wrapper for gstreamer inspection and discovering
https://github.com/webini/node-gstreamer-tools
discoverer gstreamer information inspect media node
Last synced: about 1 month ago
JSON representation
Simple wrapper for gstreamer inspection and discovering
- Host: GitHub
- URL: https://github.com/webini/node-gstreamer-tools
- Owner: Webini
- Created: 2020-01-03T18:09:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T05:34:49.000Z (almost 2 years ago)
- Last Synced: 2024-12-02T11:53:46.184Z (about 2 months ago)
- Topics: discoverer, gstreamer, information, inspect, media, node
- Language: C++
- Homepage:
- Size: 119 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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
```js
const gst = require('node-gstreamer-tools');const plugins = gst.getPlugins();
const pluginDetails = gst.inspect(plugins[0]);console.log(plugins, pluginDetails);
```
### Media inspection
```js
const gst = require('node-gstreamer-tools');gst
.discover("file://", 60) // 60 = timeout in seconds
.then(mediaInfos => {
console.log(mediaInfos);
})
.catch(e => {
console.log(e);
})
;// or
gst
.discover("http(s)://", 10)
.then(mediaInfos => {
console.log(mediaInfos);
})
.catch(e => {
console.log(e);
})
;
```## Constants
### features[].pads[].direction
https://gstreamer.freedesktop.org/documentation/gstreamer/gstpad.html#GstPadDirectionValue | Description
------|------------
0 | unknown
1 | src
2 | sink### features[].pads[].presence
https://gstreamer.freedesktop.org/documentation/gstreamer/gstpadtemplate.html?gi-language=c#GstPadPresence
Value | Description
------|------------
0 | Always
1 | Sometimes
2 | Request### features[].uriHandler
https://gstreamer.freedesktop.org/documentation/gstreamer/gsturihandler.html?gi-language=c#GstURIType
Value | Description
------|------------
0 | The URI direction is unknown
1 | The URI is a consumer
2 | The URI is a producerhttps://github.com/GStreamer/gstreamer/blob/master/tools/gst-inspect.c#L769