From 418dabc3d6f0a8c3caf22e8059808af46cbc56ad Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Tue, 26 May 2020 00:22:17 +0200 Subject: [PATCH] Add gstreamer "play" example. --- stream2beamer.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/stream2beamer.md b/stream2beamer.md index 081cef0..3900853 100644 --- a/stream2beamer.md +++ b/stream2beamer.md @@ -11,6 +11,16 @@ IPv6+IPv4, and no TLS: ./laplace -addr "[::]:8080" -tls=false # gstreamer +* Supports RTP +* Supports webcam capture via v4l (video for linux) +* Supports screen capture via xmanager/ximagesrc +* Interesting URLs: + * WebRTC in one direction only: https://stackoverflow.com/questions/57430215/how-to-use-webrtcbin-create-offer-only-receive-video + * gstreamer to VLC via RTP: https://stackoverflow.com/questions/13154983/gstreamer-rtp-stream-to-vlc + * https://github.com/intel/gstreamer-media-SDK/issues/138 + * https://developer.ridgerun.com/wiki/index.php?title=GstWebRTC_Pipelines + * https://developer.ridgerun.com/wiki/index.php?title=GstWebRTC_-_H264-Opus_Examples#Receive_Pipeline + ## WebRTC gstreamer has a WebRTC implementation. The examples at https://github.com/centricular/gstwebrtc-demos.git work once @@ -19,10 +29,10 @@ 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) -Another maybe helpful link: https://developer.ridgerun.com/wiki/index.php?title=GstWebRTC_-_H264-Opus_Examples#Receive_Pipeline - -Also: https://developer.ridgerun.com/wiki/index.php?title=GstWebRTC_Pipelines - +## gstreamer examples + gst-launch-1.0 -v playbin uri=file:///home/philipp/tmp/GerisGame.mp4 + + # 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 @@ -80,7 +90,7 @@ The address at the source side has to be the external one of the local computer. ### Source (server) cvlc -vv --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:standard{access=http,mux=ogg,dst=0.0.0.0:8080}' GerisGame.mp4 -# Player (client) +### Player (client) vlc http://192.168.1.54:8080 -- 2.39.5