From 6168fd6dc82fd6b2f4e02383f6a9e2be76ae5306 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Sun, 7 Jun 2020 17:15:21 +0200 Subject: [PATCH] add some information about websocat and v4l2loopback --- stream2beamer.md | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/stream2beamer.md b/stream2beamer.md index 41e74ab..712396d 100644 --- a/stream2beamer.md +++ b/stream2beamer.md @@ -29,12 +29,6 @@ The examples at https://github.com/centricular/gstwebrtc-demos.git work once has been set (see https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/811) -## websockets - -connecting to websockets (plus gstreamer and v4l2sink) - -https://michael.stapelberg.ch/posts/2020-06-06-iphone-camera-linux-v4l2loopback/ - ## gstreamer examples gst-launch-1.0 -v playbin uri=file:///home/philipp/tmp/GerisGame.mp4 @@ -58,6 +52,26 @@ https://michael.stapelberg.ch/posts/2020-06-06-iphone-camera-linux-v4l2loopback/ * https://github.com/xfxf/video-scripts/blob/master/michael/youtube-live.sh (and others in the same repo) +## websockets + +connecting to websockets (plus gstreamer and v4l2sink) + +https://michael.stapelberg.ch/posts/2020-06-06-iphone-camera-linux-v4l2loopback/ + + # send + laplace / chromium + + # receive + websocat --insecure "wss://localhost:8080/ws_connect?id=cranky_kind_chipmunk" + +## more v4l2loopback/v4l2sink + + # send + gst-launch-1.0 videotestsrc ! v4l2sink device=/dev/video42 + + # receive + cvlc v4l2:///dev/video42 + # VLC Note that you have to close VLC and open it again for new streaming as VLC leaves the connections open (I spent hours figuring out why http based streaming doesn't work - `netstat -4 --ip` is nice -- 2.39.5