Przeglądaj źródła

added go.sh (needs qa) and raspivid 630 streaming scripts

Harlan Iverson 7 lat temu
rodzic
commit
401e7608e3
2 zmienionych plików z 83 dodań i 0 usunięć
  1. 78 0
      scripts/go.sh
  2. 5 0
      scripts/stream-raspivid-360.sh

+ 78 - 0
scripts/go.sh

@@ -0,0 +1,78 @@
+#!/bin/bash
+
+
+# Add user to video group for access to rasppi cam
+sudo usermod -aG video $USER
+
+
+# Install basics
+sudo apt-get install git screen
+
+
+# Install development stuff
+sudo apt-get install \
+  docker.io \
+  bluefish
+
+sudo usermod -aG docker $USER
+
+
+
+# Checkout projects
+
+
+mkdir -p $HOME/p
+cd $HOME/p
+
+
+## TinyDC
+git clone https://github.com/harlanji/tinydatacenter
+alias lein=$HOME/p/tinydatacenter/lein-docker/lein.sh
+
+
+cd tinydatacenter
+
+
+cd rtmp-proxy-docker
+./build.sh
+cd ..
+
+
+cd lein-docker
+./build.sh
+cd ..
+
+
+
+cd cryogen-docker
+./build.sh
+cd ..
+
+cd ..
+
+
+## Cryogen (local fork)
+
+git clone https://github.com/harlanji/cryogen-core
+cd cryogen-core
+lein install
+
+
+cd ..
+
+## iSpooge Live
+git clone https://github.com/harlanji/ispooge
+
+
+cd ispooge
+scripts/build.sh
+
+cd ..
+
+
+read -p "Reboot now? " -n 1 -r
+echo
+
+if [[$REPLY =~ ^[Yy]$ ]]; then
+  sudo reboot
+fi

+ 5 - 0
scripts/stream-raspivid-360.sh

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+raspivid    -w 480 -h 360    \
+            -n -o - -t 0  -fps 30 -b 6000000 \
+            | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://localhost:33935/ispoogedaily_local/ispoogedaily_360