This commit is contained in:
livecam 2020-08-14 20:11:34 +02:00 committed by Florian Schlegel
parent b32876ebbe
commit 80e62c0ef4
1 changed files with 4 additions and 2 deletions

View File

@ -17,7 +17,8 @@ export DISPLAY=:0
(
while true; do
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 ! videoscale ! video/x-raw,width=1024,height=786 ! glimagesink \
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 ! videoscale ! video/x-raw,width=1024,height=786 ! glimagesink \
udpsrc address=:: port=5003 ! b.recv_rtcp_sink_0 \
b.send_rtcp_src_0 ! udpsink host=cam1 port=5002 sync=false async=false &
GSTPID=$!
@ -62,7 +63,8 @@ PIDS="$PIDS $!"
(
while true; do
gst-launch-1.0 -e rtpbin name=b rtp-profile=avpf do-retransmission=true \
udpsrc address=:: port=5004 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 ! videoscale ! video/x-raw,width=1024,height=786 ! xvimagesink \
udpsrc address=:: port=5004 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 ! videoscale ! video/x-raw,width=1024,height=786 ! xvimagesink \
udpsrc address=:: port=5006 ! b.recv_rtcp_sink_0 \
b.send_rtcp_src_0 ! udpsink host=cam2 port=5005 sync=false async=false &
GSTPID=$!