From 5a30888890976274c020c68fe64631aac1c91fb1 Mon Sep 17 00:00:00 2001 From: "twalz@hs-mittweida.de" Date: Sun, 2 Sep 2018 12:51:35 +0200 Subject: [PATCH] mv cam1/ cam2/ --- cam2/Start.sh | 16 ++++++++++++++++ cam2/interfaces | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 cam2/Start.sh create mode 100644 cam2/interfaces diff --git a/cam2/Start.sh b/cam2/Start.sh new file mode 100644 index 0000000..179be10 --- /dev/null +++ b/cam2/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/cam2/interfaces b/cam2/interfaces new file mode 100644 index 0000000..438c103 --- /dev/null +++ b/cam2/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