gstreamer-recorder
GStreamer wrapper for recording desktop.
Requires GStreamer-1.0 with gst-launch-1.0
binary and following GStreamer1 plugins: base, good, bad, ugly.
Used by GNOME Shell Extension Cast to TV and gst-rec terminal app.
Examples
Record desktop directly to file:
var gstRecorder = ;var recorder = output: 'file' format: 'mp4' file: dir: '/tmp' name: 'My Recording' ;var duration = 10000; recorderstart;; console;
Pipe output:
var fs = ;var gstRecorder = ;var recorder = output: 'stdout' format: 'matroska' ;var destFile = '/tmp/recording.mkv';var writableStream = fs;var duration = 10000; recorderstart;; console;
Create tcp server:
var gstRecorder = ;var recorder = output: 'server' server: port: 8080 ; recorderstart;process;process; console;
Donation
If you like my work please support it by buying me a cup of coffee 😁