LiveCam/cam2_alt/Start.sh

17 lines
771 B
Bash
Executable File

#!/bin/bash
#Cam2
#sleep 20
#Audio von Terminal1
gst-launch-1.0 -v udpsrc port=5002 caps="application/x-rtp" ! rtpjitterbuffer latency=20 do-lost=True ! rtpopusdepay ! opusdec plc=true ! alsasink device=hw:1 &
#Audio zu Terminal1
gst-launch-1.0 -vv alsasrc device=plughw:2,0 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! udpsink host=terminal2 port=5003 &
#start video stream
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=cam2 port=5001