Skip to content

Instantly share code, notes, and snippets.

@geek-at
Created March 28, 2018 07:05
Show Gist options
  • Select an option

  • Save geek-at/dd1bfc03b75b2c21231d6b19279ea433 to your computer and use it in GitHub Desktop.

Select an option

Save geek-at/dd1bfc03b75b2c21231d6b19279ea433 to your computer and use it in GitHub Desktop.
This script will install everything needed to stream your PiCam over the network with very little CPU usage
#!/bin/bash
apt-get update
apt-get install -y git cmake autoconf bc libvpx-dev libx264-dev libjpeg-dev build-essential libtool autoconf ffmpeg #raspberrypi-kernel-headers
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz -O - | tar xvzf -
cd live
./genMakefiles linux
sudo make CPPFLAGS=-DALLOW_RTSP_SERVER_PORT_REUSE=1 install
cd /root/
git clone https://github.com/mpromonet/v4l2rtspserver.git
cd v4l2rtspserver
cmake . && make
make install
echo '#!/bin/bash' > /root/stream.sh
echo "modprobe -v bcm2835-v4l2" >> /root/stream.sh
echo "cd /root/v4l2rtspserver" >> /root/stream.sh
echo "./v4l2rtspserver" >> /root/stream.sh
cd /root
chmod +x stream.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment