Skip to content

Instantly share code, notes, and snippets.

View 0-andy-0's full-sized avatar

Andrew Tonks 0-andy-0

  • University of Málaga
View GitHub Profile
@0-andy-0
0-andy-0 / streaming.md
Last active July 4, 2020 19:06 — forked from atlury/vlc-stream.sh
Cam & screen streaming from Android (with app) or PC (with vlc), with mjpeg playback via browser or vlc again

stream pc screen to http port 18223

DISPLAY=:0 cvlc --no-audio screen:// --screen-fps 1 --sout "#transcode{vcodec=MJPG,vb=800}:standard{access=http,mux=mpjpeg,dst=:18223/}" --sout-http-mime="multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a"

playback URL http://my-hostname-or-my-ip:18223, on any device, e.g.

cvlc --demux=mjpeg --network-caching=0 http://localhost:18223
midori  http://localhost:18223
brave-beta http://localhost:18223
xdg-open http://localhost:18223