top of page

How to setup a Raspberry Pi Video Streaming Server in 5 Minutes

Updated: Jan 15, 2022

Raspberry Pi Streaming Video Setup

  1. If you do not already have pip installed on your Raspberry Pi, please use this command to install it:

  2. sudo apt-get install python-pip

  3. Install the picamera library by running this command:

  4. pip install picamera

  5. Install the flask Python library by running this command:

  6. sudo pip install flask

  7. Download Miguel’s Flask video streaming project by running this command:

  8. git clone

  9.  In the project folder edit the file.

  10. Comment out this line by adding a “#” to the beginning

  11. #from camera import CameraUn-comment this line

  12. from camera_pi import Camera

  13. Save the file.

  14. Run this command to find out the local IP address of your Raspberry Pi.

  15. ifconfig

  16. You will see many lines of output. You are looking for this one:

  17. inet addr: Bcast: Mask:

  18. The inet addr is your local IP address. In this case,

  19.  Start the Flask server by running this command:

  20. python

  21. You will see this, which means that the server is running on port 5000 and is ready.

  22. * Running on

  23. * Restarting with reloader

  24. Open up a web browser on your favorite device and go to this address, except replace that IP address with the one that your Raspberry Pi is running on.

  25. You should see a live view the video that your Raspberry Pi is capturing.

171 views0 comments

Recent Posts

See All

Enroll to Free Courses

No available programs
bottom of page