In between commit - don't know what I did, it's to long ago ;)

This commit is contained in:
Kevin Frantz
2018-05-29 19:38:33 +02:00
parent 2c90bc7db6
commit aaefa64556
3 changed files with 27 additions and 13 deletions

View File

@@ -1,7 +1,21 @@
#!/bin/bash
#Streamt ein Video auf Vaio
# @param string $1 Client-Ip
# @author kf
# @since 2017-10-22
#
# Streamt ein Video auf Vaio
#/opt/vc/bin/raspivid --hflip --vflip -t 0 -o - | nc 192.168.178.30 5001
#Auf Vaio muss
#
# Auf Vaio muss
# nc -l -p 5001 | mplayer -fps 31 -cache 1024 -
# ausgefuehert werden
/opt/vc/bin/raspivid -w 640 -h 480 --hflip --vflip -t 0 -o - | nc 192.168.178.30 5001
clientname="$1.fritz.box"
# main
if [ "$#" -gt "0" ]
then
sudo /opt/vc/bin/raspivid -w 640 -h 480 --hflip --vflip -t 0 -o - | nc $1 5001
else
head -n 11 camera.sh
echo "Es wurden nicht alle benoetigten Parameter uebergeben"
fi