diff --git a/cam2/Start.sh b/cam2/Start.sh old mode 100644 new mode 100755 diff --git a/terminal1/Start.sh b/terminal1/Start.sh new file mode 100755 index 0000000..efd3368 --- /dev/null +++ b/terminal1/Start.sh @@ -0,0 +1,13 @@ +#!/bin/bash #terminal1 sleep 20 + +#Audio von cam1 +gst-launch-1.0 -v udpsrc port=5003 caps="application/x-rtp" ! rtpjitterbuffer latency=20 do-lost=True ! rtpopusdepay ! opusdec plc=true ! alsasink device=hw:1 & + +#Audio zu cam1 +gst-launch-1.0 -vv alsasrc device=plughw:1,0 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! udpsink host=cam1 port=5002 & + +#start video output +while true; do + omxplayer --fps 60 --live --threshold 0.1 tcp://@cam1:5001 -s -r + sleep 1 +done