W
W
Wasya UK2021-06-29 16:36:32
Node.js
Wasya UK, 2021-06-29 16:36:32

Why doesn't GSTREAMER work in Node.js?


I downloaded the livecam module, installed gstreamer and checked the variable in the environment, rebooted the PC and it still doesn’t work (Have you encountered such a problem, if so, what could be the problem ?

const LiveCam = require('livecam');
const webcam_server = new LiveCam
({
    'ui_addr' : '127.0.0.1',
    'ui_port' : 11000,
 
    'broadcast_addr' : '127.0.0.1',
    'broadcast_port' : 12000,
 
    'gst_tcp_addr' : '127.0.0.1',
    'gst_tcp_port' : 10000,
    
    'start' : function() {
        console.log('WebCam server started!');
    },
    
    'webcam' : {
        'grayscale' : true,
        'width' : 800,
        'height' : 600,
        'fake' : false,
        'framerate' : 25
    }
});

webcam_server.broadcast();

As a result I get:
==================================================
Unable to locate gst-launch executable.
Look at https://github.com/sepehr-laal/livecam
You are most likely missing the GStreamer runtime.
==================================================

60db21aa712f9664556659.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question