From: Philipp Spitzer Date: Mon, 25 May 2020 22:22:17 +0000 (+0200) Subject: Add gstreamer "play" example. X-Git-Url: https://git.toastfreeware.priv.at/toast/stream2beamer.git/commitdiff_plain/418dabc3d6f0a8c3caf22e8059808af46cbc56ad?ds=sidebyside Add gstreamer "play" example. --- 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