From f21565c4bfc279fb6c189b7e16c471db5bb31e30 Mon Sep 17 00:00:00 2001 From: Florian Schlegel Date: Mon, 10 Aug 2020 21:04:55 +0200 Subject: [PATCH] =?UTF-8?q?Videostream=20fehlertolerant=20per=20RDP=20?= =?UTF-8?q?=C3=BCbertragen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme_neu.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/readme_neu.txt b/readme_neu.txt index 78f4efe..d836fb5 100644 --- a/readme_neu.txt +++ b/readme_neu.txt @@ -38,4 +38,8 @@ reboot && exit Videostream bereitstellen ------------------------- -gst-launch-1.0 -v -e uvch264src ltr-buffer-size=5 ltr-encoder-control=5 initial-bitrate=8000000 average-bitrate=8000000 peak-bitrate=15000000 max-mbps=15000000 iframe-period=1000 device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-h264,width=1280,height=720,framerate=30/1,profile=high ! queue ! h264parse ! mpegtsmux ! queue! tcpserversink host=0.0.0.0 port=5001 +gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf uvch264src device=/dev/video0 name=src auto-start=true src.vidsrc ! video/x-raw,framerate=30/1,profile=high ! videoscale ! video/x-raw,width=1920,height=1080 ! videoconvert ! x264enc tune=zerolatency bitrate=5000 speed-preset=superfast key-int-max=15 ! rtph264pay ! rtpulpfecenc percentage=50 percentage-important=75 ! rtprtxqueue max-size-packets=1000 ! b.send_rtp_sink_0 b.send_rtp_src_0 ! udpsink host=terminal1 port=5001 udpsrc address=:: port=5001 ! b.recv_rtcp_sink_0 b.send_rtcp_src_0 ! udpsink host=terminal1 port=5002 sync=false async=false + +Videostream empfangen +--------------------- +gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf do-retransmission=true udpsrc address=:: port=5001 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! b.recv_rtp_sink_0 b. ! rtpulpfecdec ! rtph264depay ! decodebin ! videoconvert ! fbdevsink device=/dev/fb0 udpsrc address=:: port=5002 ! b.recv_rtcp_sink_0 b.send_rtcp_src_0 ! udpsink host=cam1 port=5001 sync=false async=false