Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xythobuz/rpi-rx5808-stream
Raspberry Pi RX5808 5.8GHz video streaming server
https://github.com/xythobuz/rpi-rx5808-stream
fpv gstreamer mjpeg python raspberry-pi raspbian rx5808 spi stream systemd-service v4l2 video
Last synced: 3 days ago
JSON representation
Raspberry Pi RX5808 5.8GHz video streaming server
- Host: GitHub
- URL: https://github.com/xythobuz/rpi-rx5808-stream
- Owner: xythobuz
- Created: 2017-06-17T15:39:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T23:28:44.000Z (over 7 years ago)
- Last Synced: 2024-05-01T18:56:18.161Z (7 months ago)
- Topics: fpv, gstreamer, mjpeg, python, raspberry-pi, raspbian, rx5808, spi, stream, systemd-service, v4l2, video
- Language: Python
- Size: 139 KB
- Stars: 22
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-flying-fpv - rpi-rx5808-stream - RPI based 5,8GHz analog with diversity streaming server. (Video Receivers 📶 / Modules 🧩)
README
# 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](https://www.banggood.com/FPV-5_8G-Wireless-Audio-Video-Receiving-Module-RX5808-p-84775.html) 5.8GHz receiver modules with the [SPI modification done to it](https://github.com/sheaivey/rx5808-pro-diversity/blob/develop/docs/rx5808-spi-mod.md).
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](https://linuxtv.org/wiki/index.php/Easycap), like [this one](https://www.banggood.com/DC5V-USB-Video-Capture-Card-TV-Tuner-LED-VCR-DVD-Audio-Adapter-Converter-p-1082298.html?rmmds=search).
[![Photo 1](https://i.imgur.com/vvMfBAB.jpg)](https://i.imgur.com/vx5ThJN.jpg)
[![Photo 2](https://i.imgur.com/Ipt6x3k.jpg)](https://i.imgur.com/8iMUOLR.jpg)## 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 gitgit clone http://xythobuz.de/git/rpi-rx5808-stream
cd rpi-rx5808-stream
sudo make deps
sudo make installNow, point your browser to your Raspberry Pi on port 81 (eg. http://raspi3.local:81).
[![Screenshot Webinterface](https://i.imgur.com/Onb9Mz6.png)](https://i.imgur.com/ELHhqCN.jpg)
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.servicesudo systemctl start rpi-rx5808-stream.service
sudo systemctl stop rpi-rx5808-stream.servicesudo systemctl status rpi-rx5808-stream.service
sudo journalctl -u rpi-rx5808-stream.service
sudo journalctl -fu rpi-rx5808-stream.serviceIt 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](https://github.com/srinathava/raspberry-pi-stream-audio-video). This in turn was based on the [HTTP live streaming implementation by Jeremy Grosser](http://synack.me/blog/implementing-http-live-streaming).
The Javascript MJPEG player included in the Webinterface is [mjpeg.js made by codebrainz](https://gist.github.com/codebrainz/eeeeead894e8bdff059b).
As parts of the code are heavily based on the [Systemd Watchdog Python example by Spindel](https://gist.github.com/Spindel/1d07533ef94a4589d348), this project is also licensed under the GNU GPLv3:
Watchdog example code for teaching purposes
Copyright 2015 D.S. Ljungmark, Modio ABThis 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