Snippets

Mitch Allen How to Stream from a Raspberry Pi Camera to your Browser

Updated by Mitch Allen

File pistreaming.markdown Modified

  • Ignore whitespace
  • Hide word diff
 
 This was also tested on a Pi 3 running the regular version of Jessie with the same camera.
 
-$ sudo apt-get update
-$ sudo raspi-config
+    $ sudo apt-get update
+    $ sudo raspi-config
 $ mkdir projects
 $ cd projects/
 $ sudo apt-get install git
Created by Mitch Allen

File pistreaming.markdown Added

  • Ignore whitespace
  • Hide word diff
+## Steps for streaming from a NoIR camera attached to a PiZero
+--
+
+Using Raspian Jessie Lite on a PiZero 1.3 with a NoIR camera over Wireless.
+
+This was also tested on a Pi 3 running the regular version of Jessie with the same camera.
+
+$ sudo apt-get update
+$ sudo raspi-config
+$ mkdir projects
+$ cd projects/
+$ sudo apt-get install git
+$ git clone https://github.com/jacksonliam/mjpg-streamer.git
+$ cd mjpg-streamer/
+$ cd mjpg-streamer-experimental/
+$ sudo apt-get install cmake
+$ sudo apt-get install python-imaging
+$ sudo apt-get install libjpeg-dev
+$ make CMAKE_BUILD_TYPE=Debug
+$ sudo make install
+$ export LD_LIBRARY_PATH=.
+$ ./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so"
+
+On another machine (like a Mac using Chrome) browse to:
+
+http://HOSTNAME.local:8080
+
+Or:
+
+http://HOSTNAME.local:8080/?action=stream
  1. 1
  2. 2
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.