Gathering detailed insights and metrics for xeue-gstreamer
Gathering detailed insights and metrics for xeue-gstreamer
Gathering detailed insights and metrics for xeue-gstreamer
Gathering detailed insights and metrics for xeue-gstreamer
npm install xeue-gstreamer
Typescript
Module System
Min. Node Version
Node Version
NPM Version
71.5
Supply Chain
98.8
Quality
87.6
Maintenance
100
Vulnerability
100
License
C++ (90.12%)
Python (7.13%)
CMake (2.75%)
Total Downloads
138
Last Day
2
Last Week
5
Last Month
18
Last Year
138
MIT License
136 Stars
109 Commits
48 Forks
12 Watchers
1 Branches
12 Contributors
Updated on May 19, 2025
Latest Version
1.9.1
Package Id
xeue-gstreamer@1.9.1
Unpacked Size
1.00 MB
Size
0.96 MB
File Count
30
NPM Version
10.9.2
Node Version
22.14.0
Published on
Jun 17, 2025
Cumulative downloads
Total Downloads
Last Day
100%
2
Compared to previous day
Last Week
-28.6%
5
Compared to previous week
Last Month
200%
18
Compared to previous month
Last Year
0%
138
Compared to previous year
2
1
Superficial GStreamer binding
This is a superficial binding of GStreamer to Node.js. It does not attempt at being a complete binding, and will hopefully one day be replaced by (or implemented with) node-gir.
1const gstreamer = require('gstreamer-superficial'); 2const pipeline = new gstreamer.Pipeline(`videotestsrc ! textoverlay name=text 3 ! autovideosink`); 4 5pipeline.play();
Then, you can find an element within the pipeline, and set its properties:
1const target = pipeline.findChild('text'); 2 3target.text = 'Hello'; 4Object.assign(target.text, { 5 text: 'Hello', 6 'font-desc': 'Helvetica 32', 7})
(see also examples/basic-pipeline.js)
Pipeline also knows .stop()
, .pause()
and .pollBus()
,
the elements returned by .findChild()
getting and setting all properties the real GObject
s do, appsinks also support .pull()
(see below).
There is a simple .seek(position, flags)
function. Normally you should pass 1 for flags (GST_SEEK_FLAG_FLUSH). See Flags and Seek Docs.
You can query the pipeline's duration and current position with .getDuration()
and .getPosition()
(both might return -1). All time position values are in Seconds.
(see also examples/seek.js)
You can asynchronously handle bus messages using Pipeline.pollBus(callback):
1pipeline.pollBus(msg => { 2 console.log(msg); 3});
(see also examples/bus.js)
You can feast off GStreamer's appsink to handle binary data. .pull starts a background work queue and calls your callback whenever a buffer is (or caps are) available:
1const appsink = pipeline.findChild('sink'); 2 3function onData(buf, caps) { 4 if (caps) { 5 console.log('CAPS', caps); 6 } 7 if (buf) { 8 console.log('BUFFER size', buf.length); 9 appsink.pull(onData); 10 } 11 12 // !buf probably means EOS 13} 14 15appsink.pull(onData);
(see examples/appsink.js)
should be working as implemented in examples/streaming/
run server.js (requires express) and point your browser to http://localhost:8001. (Tested only with Chromium).
This handles retaining the streamheader to feed first to every newly connected client.
gstreamer-superficial was originally written by Daniel Turing, and has received contributions from various individuals as seen on github and in package.json.
libgstreamer-plugins-base1.0-dev
libgstreamer1.0-dev
nan
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 6/19 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More