From f376e4cf744b43401c0cb2ce91166a974b452101 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Wed, 3 Jun 2020 23:19:34 +0200 Subject: [PATCH] More gstreamer examples. --- stream2beamer.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/stream2beamer.md b/stream2beamer.md index eefe5b7..b3394d4 100644 --- a/stream2beamer.md +++ b/stream2beamer.md @@ -32,6 +32,17 @@ has been set (see https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issue ## gstreamer examples gst-launch-1.0 -v playbin uri=file:///home/philipp/tmp/GerisGame.mp4 + # send + gst-launch-1.0 ximagesrc ! videoconvert ! videoscale ! video/x-raw,width=800,height=600 ! vp8enc ! rtpvp8pay ! udpsink host=239.255.12.42 port=5004 + # receive + gst-launch-1.0 udpsrc address=239.255.12.42 port=5004 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)VP8-DRAFT-IETF-01, payload=(int)96, ssrc=(uint)2990747501, clock-base=(uint)275641083, seqnum-base=(uint)34810" ! rtpvp8depay ! vp8dec ! autovideosink + + # send + gst-launch-1.0 -v ximagesrc ! videoconvert ! videoscale ! video/x-raw,format=I420,width=800,height=600,framerate=25/1 ! jpegenc ! rtpjpegpay ! udpsink host=239.255.12.42 port=5004 + # receive + gst-launch-1.0 udpsrc address=239.255.12.42 port=5004 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink + + * https://stackoverflow.com/questions/33747500/using-gstreamer-to-capture-screen-and-show-it-in-a-window/33822024#33822024 * http://www.einarsundgren.se/gstreamer-basic-real-time-streaming-tutorial/ * https://gist.github.com/tetkuz/0c038321d05586841897 -- 2.39.5