Warning: This project is in "Alpha" status and is being updated frequently with breaking changes.
PyRestreamer is a simple app built with FFMPEG, Streamlink, Docker, and Python to re-stream video content from DASH or HLS streams to RTMP. One possible use case is to allow re-broadcasting content from sources that only provide DASH or HLS endpoints to other services and endpoints that require RTMP.
The general idea is that you specify the times you would like to be actively re-streaming, and then PyReStreamer will automatically start streaming at the specified time and stop after the specified duration. FFMPEG is used under the hood, so you can output anything supported by FFMPEG.
This app was specifically built to automate restreaming from Living as One to PhoneLiveStreaming.com.
PyReStreamer is designed to be deployed in a Docker container. As such, you'll need a host running Docker Engine to get started. Once you've got that up and running, these steps will get you started:
docker pull billdeitrick/pyrestreamer
/opt/pyrestreamer
on my Docker host.docker run -d --name pyrestreamer --restart unless-stopped --env-file /path/to/.env -v /path/to/logging.yml:/opt/app/logging.yml billdeitrick/pyrestreamer