How to use the gstreamer-superficial.Pipeline function in gstreamer-superficial

To help you get started, we’ve selected a few gstreamer-superficial examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dturing / node-gstreamer-superficial / examples / streaming / server.js View on Github external
#!/usr/bin/env node
var gstreamer = require('gstreamer-superficial');
var pipeline = new gstreamer.Pipeline("videotestsrc ! theoraenc ! oggmux ! appsink max-buffers=1 name=sink");


var clients = [];
var headers;

var appsink = pipeline.findChild("sink");

appsink.pull( function(buf) {
//	console.log("BUFFER size",buf.length);
	for( c in clients ) {
		clients[c].write( buf );
	}
}, function(caps) {
//	console.log("CAPS",caps);
	if( caps.streamheader ) headers = caps.streamheader;
} );

gstreamer-superficial

Superficial GStreamer binding

MIT
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis

Popular gstreamer-superficial functions

Similar packages