Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benwilber/boltstream
Boltstream Live Video Streaming Website + Backend
https://github.com/benwilber/boltstream
Last synced: 6 days ago
JSON representation
Boltstream Live Video Streaming Website + Backend
- Host: GitHub
- URL: https://github.com/benwilber/boltstream
- Owner: benwilber
- License: apache-2.0
- Created: 2020-12-07T01:17:08.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-14T14:25:19.000Z (over 3 years ago)
- Last Synced: 2024-08-02T20:48:04.625Z (3 months ago)
- Language: Python
- Size: 41.4 MB
- Stars: 1,745
- Watchers: 47
- Forks: 131
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Boltstream
Self-hosted Live Video Streaming Website + BackendReference website: [https://boltstream.me](https://boltstream.me)
This is the result of a series of blog posts that I made [here](https://benwilber.github.io/nginx/rtmp/live/video/streaming/2018/03/25/building-a-live-video-streaming-website-part-1-start-streaming.html)
Join us on Libera.Chat! [#boltstream](https://web.libera.chat/#boltstream)
## Features
* Live stream via RTMP with a stream key to your RTMP ingest server
* Any number of simultaneous live streams
* Playback via standard HLS
* Restrict playback with HLS segment encryption (AES-128)
* Pay-per-view
* Pay-per-minute :-)
* Capture VODs (recordings) of live streams
* Live-clipping of VODs via nginx-vod-module
* Timed metadata via WebVTT
* Synchronized chat room messages
* Synchronized play-by-play live sports events## Core Components
* [Django](https://www.djangoproject.com/)
* Web application
* [nginx](https://nginx.org/)
* Web server
* [nginx-rtmp](https://github.com/arut/nginx-rtmp-module)
* RTMP ingest
* Actually, we use a [fork](https://github.com/sergey-dryabzhinsky/nginx-rtmp-module) that adds a number of features that we use. The original nginx-rtmp hasn't been updated in years.
* [nginx-vod-module](https://github.com/kaltura/nginx-vod-module)
* HLS VODs
* Live clipping
* [FFMPEG](https://ffmpeg.org/)
* Various video encoding/packaging## Optional Components
* [SportRadar](https://www.sportradar.com/)
* Realtime sports play-by-play data synchronized to your live streams
* [ACRCloud](https://www.acrcloud.com/)
* Audio content recognition (Shazaam for your live streams)
## Getting StartedClone this repo!
There is a [Terraform](https://terraform.io/) configuration for deploying this infrastructure on [DigitalOcean](https://www.digitalocean.com/).
First, edit `ansible/site.yml` and update all the variables like ``.
You will also need to modify some variables in `terraform/terraform.tfvars`, and then from within the `terraform` directory, just run:
```bash
$ make apply
```At the end of the Terraform deployment (might take 10-15 minutes), you will have a full self-hosted live video streaming platform with your own RTMP ingest and playback endpoints.
Happy Streaming!
## Running Locally
If you're interested in running the Django app locallly, then you can do:
```shell
# Set up Python virtualenv
$ make venv
$ source venv/bin/activate# Install Python dependencies
$ make deps# Apply database migrations (db.sqlite3) and load the initial data
$ make cleandb# Run the Django development server
$ make run
```You can log in with the default user at:
Website|Username|Password
:--|:--|:--
[http://localhost:8000/sign-in](http://localhost:8000/sign-in)|`boltstream`|`boltstream`## Help Wanted!
I put this stack together about a year ago and haven't been able to push much further on it.
Ideally it could be deployed in Docker (I don't know anything about Docker or Kubernetes). The nginx and Django stuff seems like it could be pretty easy to containerize.
Help me package this up! We need more federated live-streaming platforms! It can't just always be Twitch.tv, YouTube, and Facebook!