Skip to content
forked from ngrie/rtmpie

Out-of-the-box RTMP streaming server with a clean and powerful web interface

License

Notifications You must be signed in to change notification settings

keyiflerolsun/rtmpie

 
 

Repository files navigation

RTMPie

RTMPie is a management web interface for the RTMP NGINX module.

RTMPie screenshot

Features

  • Get information about streams (live/offline, viewer count) in realtime
  • Simple user management
  • Stream key management to prevent unauthorized clients from streaming to the server
  • Kick the current publisher from a stream
  • Integrated stream player
  • Stream recording (coming soon)
  • Restrict stream playback to authenticated users (coming soon)

Installation

The official installation method is using Docker and Docker Compose. Please install both tools according to their documentation.

If you want to make RTMPie available under a publicly accessible domain (e.g. demo.rtmpie.de), make sure to set up the necessary DNS settings before continuing.

When Docker is installed, proceed with installing RTMPie:

# Create a directory for the installation and change the working directory
mkdir /opt/rtmpie
cd /opt/rtmpie

# Download the small installer script
wget -q -O setup.sh https://github.com/keyiflerolsun/rtmpie/blob/main/setup.sh?raw=True

# Make the script executable
chmod  x setup.sh

# Run the installer and answer the questions
bash setup.sh

# Start the containers
docker compose up -d

The webinteface will be available after a few seconds and you can login using the default credentials admin / admin.

Usage

Stream a Video

To stream a video to your RTMP server, use the following command. This example uses ffmpeg to take an input stream and transcode it to RTMP format, then sends it to your RTMP server at the specified address.

ffmpeg -re -i 'https://meclistv-live.ercdn.net/meclistv/meclistv_720p.m3u8' \
	-c:v libx264 -preset medium -b:v 1M -s 1280x720 -c:a aac -b:a 128k -f flv \
	'rtmp://127.0.0.1/live/test?key=5c24303c30494b198e6519ccde445758'
  • Replace the input URL with your video source,
  • the RTMP URL with your stream server address,
  • and the key parameter with your stream secret key.

Watch the Stream

You can either watch the stream by clicking on the preview image on the admin interface. If you want to embed the stream anywhere else, you can access the flv stream via the following URL.

http://127.0.0.1:8080/live?stream={slug}
  • {slug} has to be replaced by the stream name

Credits

RTMPie was built using the following projects:

About

Out-of-the-box RTMP streaming server with a clean and powerful web interface

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Vue 55.1%
  • PHP 30.1%
  • JavaScript 9.5%
  • Dockerfile 2.5%
  • Shell 1.5%
  • Twig 1.1%
  • CSS 0.2%