Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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