Raspberry Pi video streamer based off of miguelgrinberg/flask-video-streaming using Flask-RESTful to work with robsmall/raspi-video-streamer-app or web clients
APACHE-2.0 License
Flask-RESTful API to create and serve up a live-stream from a raspberry pi to web and android clients.
Original code borrowed/altered from miguelgrinberg/flask-video-streaming.
Android client is available at robsmall/raspi-video-streamer-app.
Install virtualenv on the pi as root
$ sudo pip install virtualenv
Then, create a .env
virtual environment
$ virtualenv .env
and use it
$ source .env/bin/activate
Then, install all the requirements for the pi
$ pip install -U -r requirements-pi.txt
Set the CAMERA
environment variable to use the pi camera for android
$ export CAMERA=pi_android
Now you are good to run the app using
$ python app.py
Instead of running the app directly using python, run
$ gunicorn --threads 5 --workers 1 --bind 0.0.0.0:5000 app:app
pi_android
, hook everything else up to work properly too.simple_mjpeg-server.py
script.video_feed.py