brief demo showing the original desktop being streamed over ip, as an RTP MP4 stream on the left, and the "received", decoded MP4 desktop on the right
STREAM DESKTOP as an MP4 RTP stream Gstreamer script
**************************************************************
gst-launch-1.0 -v ximagesrc use-damage=0 ! video/x-raw,framerate=30/1 ! queue ! videoconvert ! queue ! vaapih264enc bitrate=6000 ! queue ! mpegtsmux name=mux ! queue ! rtpmp2tpay ! udpsink host=(ip address of RECEIVER) port=1194 pulsesrc buffer-time=20000000 ! "audio/x-raw,channels=2,rate=48000" ! queue ! audioconvert ! queue ! opusenc bitrate=512000 ! queue ! mux. -e
RECEIVE DESKTOP Gstreamer script
**************************************
gst-launch-1.0 -v udpsrc port=1194 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MP2T, payload=(int)33" ! rtpjitterbuffer ! rtpmp2tdepay ! tsdemux name=demux demux. ! queue ! h264parse ! queue ! vaapih264dec ! queue ! videoconvert ! queue ! vaapisink demux. ! queue ! opusdec ! audioconvert ! pulsesink