Last active
August 10, 2018 12:00
-
-
Save zobar/8c7813c701b870a1e984fb9c7e783466 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshpass -p raspberry ssh pi@raspberrypi mkdir .ssh | |
sshpass -p raspberry scp ~/.ssh/id_rsa.pub pi@raspberrypi:.ssh/authorized_keys | |
ssh pi@raspberrypi ' | |
set -e | |
sudo chgrp staff /usr/src | |
sudo chmod g+ws /usr/src | |
sudo usermod --append --groups staff pi | |
sudo passwd -l pi' | |
ssh -t pi@raspberrypi sudo raspi-config | |
ssh pi@raspberrypi ' | |
set -e | |
sudo apt-get update | |
sudo apt-get upgrade --assume-yes | |
sudo apt-get install --assume-yes --no-install-recommends gtk-doc-tools libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev rpi-update | |
sudo rpi-update' | |
ssh pi@raspberrypi ' | |
set -e | |
mkdir --parents /usr/src/gst-rpicamsrc | |
curl --location --silent https://github.com/thaytan/gst-rpicamsrc/tarball/master | tar --directory=/usr/src/gst-rpicamsrc --extract --gzip --strip-components=1 | |
cd /usr/src/gst-rpicamsrc | |
./autogen.sh --prefix=/usr --libdir=/usr/lib/arm-linux-gnueabihf | |
make | |
sudo make install | |
mkdir --parents /usr/src/gst-rtsp-server | |
curl --location --silent https://gstreamer.freedesktop.org/src/gst-rtsp-server/gst-rtsp-server-1.10.4.tar.xz | tar --directory=/usr/src/gst-rtsp-server --extract --strip-components=1 --xz | |
cd /usr/src/gst-rtsp-server | |
./autogen.sh --prefix=/usr --libdir=/usr/lib/arm-linux-gnueabihf | |
make | |
sudo make install | |
sudo ./libtool --mode=install install examples/test-launch /usr/bin/test-launch' | |
nohup test-launch " | |
rpicamsrc preview=false rotation=180 | |
! video/x-h264, framerate=20/1, height=270, profile=high, width=480 | |
! rtph264pay name=pay0" < /dev/null > /dev/null 2> /dev/null & | |
gst-launch-1.0\ | |
rpicamsrc num-buffers=1200 preview=false rotation=180\ | |
! video/x-h264, framerate=20/1, height=270, profile=high, width=480\ | |
! h264parse ! mp4mux ! filesink location=test.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment