Skip to content

xythobuz/rpi-rx5808-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi RX5808 5.8GHz video streaming server

This short Python script uses GStreamer to convert a video stream from an V4L2 USB device into a webbrowser-compatible MJPEG stream. This is presented on a webinterface that allows interacting with an RX5808 5.8GHz video receiver via SPI.

Hardware

Use one of the popular cheap RX5808 5.8GHz receiver modules with the SPI modification done to it.

To convert the analog video into a digital signal, use one of the many Video4Linux compatible USB devices, as described in more detail on the LinuxTV pages, like this one.

Photo 1 Photo 2

Quick Start

On a Raspberry Pi, with a recent Raspbian installed and the USB video grabber and SPI RX5808 connected, run the following commands:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git

git clone http://xythobuz.de/git/rpi-rx5808-stream
cd rpi-rx5808-stream
sudo make deps
sudo make install

Now, point your browser to your Raspberry Pi on port 81 (eg. http://raspi3.local:81).

Screenshot Webinterface

See the beginning of the rpi-rx5808-stream.py file for all the customizable parameters. You can just run sudo make install again after any changes to reinstall and restart the service.

You can check the status, output and control the service with these commands:

sudo systemctl daemon-reload
sudo systemctl enable rpi-rx5808-stream.service

sudo systemctl start rpi-rx5808-stream.service
sudo systemctl stop rpi-rx5808-stream.service

sudo systemctl status rpi-rx5808-stream.service
sudo journalctl -u rpi-rx5808-stream.service
sudo journalctl -fu rpi-rx5808-stream.service

It will automatically be restarted by systemd after crashes.

License

Large parts of the included Python server script are based on the work of srinathava in the raspberry-pi-stream-audio-video project. This in turn was based on the HTTP live streaming implementation by Jeremy Grosser.

The Javascript MJPEG player included in the Webinterface is mjpeg.js made by codebrainz.

As parts of the code are heavily based on the Systemd Watchdog Python example by Spindel, this project is also licensed under the GNU GPLv3:

Watchdog example code for teaching purposes
Copyright 2015 D.S. Ljungmark, Modio AB

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA