added script for terminal 1 (fixes #1)

This commit is contained in:
Florian Schlegel 2020-07-09 20:25:56 +02:00
parent a34dcf7fc7
commit 4310046f9e
2 changed files with 13 additions and 0 deletions

0
cam2/Start.sh Normal file → Executable file
View File

13
terminal1/Start.sh Executable file
View File

@ -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