Gathering detailed insights and metrics for gstreamer-superficial
Gathering detailed insights and metrics for gstreamer-superficial
Gathering detailed insights and metrics for gstreamer-superficial
Gathering detailed insights and metrics for gstreamer-superficial
npm install gstreamer-superficial
Typescript
Module System
Min. Node Version
Node Version
NPM Version
69.9
Supply Chain
98.8
Quality
76
Maintenance
100
Vulnerability
100
License
C++ (90.12%)
Python (7.13%)
CMake (2.75%)
Total Downloads
32,875
Last Day
1
Last Week
49
Last Month
326
Last Year
6,462
134 Stars
109 Commits
46 Forks
13 Watching
1 Branches
12 Contributors
Latest Version
1.7.4
Package Id
gstreamer-superficial@1.7.4
Unpacked Size
0.98 MB
Size
0.96 MB
File Count
28
NPM Version
8.1.2
Node Version
17.1.0
Cumulative downloads
Total Downloads
Last day
-88.9%
1
Compared to previous day
Last week
22.5%
49
Compared to previous week
Last month
-69.9%
326
Compared to previous month
Last year
-30.9%
6,462
Compared to previous year
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
security policy file not detected
Details
Reason
project is not fuzzed
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 2024-12-23
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