14 lines
473 B
Bash
Executable File
14 lines
473 B
Bash
Executable File
#!/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
|