From eb786bb54182dfafa7c177127871b71be46810b5 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 13 May 2016 12:14:09 +0200 Subject: [PATCH] improve cammieviewing --- local/bin/sphere.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/local/bin/sphere.sh b/local/bin/sphere.sh index 82ad41e..3d9b82d 100755 --- a/local/bin/sphere.sh +++ b/local/bin/sphere.sh @@ -1,12 +1,8 @@ case $1 in - klein) curl --data "command=set_pos&posX=0&posY=12" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;; - groot) curl --data "command=set_pos&posX=50&posY=10" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;; - zetel) curl --data "command=set_pos&posX=50&posY=22" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;; + klein) curl --data "command=set_pos&posX=0&posY=12" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;; + groot) curl --data "command=set_pos&posX=50&posY=10" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;; + zetel) curl --data "command=set_pos&posX=50&posY=22" kelder.zeus.ugent.be/webcam/cgi/ptdc.cgi ;; + *) curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi | mpv --no-correct-pts --fps 4.5 - ;; esac > /dev/null -foto="$(mktemp XXXXXX.jpg)" -curl http://kelder.zeus.ugent.be/webcam/video/mjpg.cgi | ffmpeg -y -ss 0 -i - -vframes 1 -q:v 2 "$foto" -feh "$foto" -rm "$foto" -