Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1001 Bytes

README.md

File metadata and controls

47 lines (27 loc) · 1001 Bytes

Picamera h264 Web Streaming

Demo of h264 live streaming from Raspberry Pi using Python and Broadway.js.

Broadway.js is a JavaScript h264 decoder which can decode raw h264 produced by PiCamera. This allows 720p real time video streaming to a web browser even from Raspberry Pi Zero!

Demo usage

  1. Clone this repository
git clone https://github.com/Onixaz/picamera-h264-web-streaming.git
cd picamera-h264-web-streaming
  1. Create Python3 virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install dependencies
pip install picamera ws4py
  1. Launch the server
python server.py
  1. Navigate to http://your-raspberrypi-ip:8082 on your PC/smartphone and the stream should appear.

Tested with Chrome and Firefox on Windows 10 and Chrome for Android (Nokia 6.1).

Based on