Giter VIP home page Giter VIP logo

rpi-rx5808-stream's Introduction

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

rpi-rx5808-stream's People

Contributors

xythobuz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.