3 ms·
This is a script I used to do this with just VLC as the server AND the client. There should be a way to get it working from a browser, but it serves as a possi
by arcanemachiner 4y ago
This is a script I used to do this with just VLC as the server AND the client.
There should be a way to get it working from a browser, but it serves as a possible inspiration that runs well without having to install the kitchen sink to get it working.
The DEVICE_NUMBER may need to be changed (e.g, 0, 1, 2, 3, 4, etc.)
#!/bin/bash
# to view the stream, open with VLC: http://your-ip:8088/ http://your-ip:8088/
if [ "$1" != ""]; then
DEVICE_NUMBER=$1
else
DEVICE_NUMBER=4
fi
cvlc -vvv v4l2:///dev/video$DEVICE_NUMBER --sout '#transcode{vcodec=mjpg,acodec=none}:std{access=http,mux=mpjpeg,dst=0.0.0.0:8888}'