diff --git a/cam1/Start.sh b/cam1/Start.sh new file mode 100644 index 0000000..179be10 --- /dev/null +++ b/cam1/Start.sh @@ -0,0 +1,16 @@ +#!/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 + diff --git a/cam1/interfaces b/cam1/interfaces new file mode 100644 index 0000000..438c103 --- /dev/null +++ b/cam1/interfaces @@ -0,0 +1,15 @@ +# interfaces(5) file used by ifup(8) and ifdown(8) + +# Please note that this file is written to be used with dhcpcd +# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' + +# Include files from /etc/network/interfaces.d: +source-directory /etc/network/interfaces.d + +#LiveCam2 +auto eth0 +iface eth0 inet static +address 192.168.1.103 +broadcast 192.168.1.255 +netmask 255.255.255.0 +gateway 192.168.1.1