This repository contains a Docker container that, when started, will join a Amazon Chime meeting by PIN and broadcast the meeting's audio and video in high definition (1080p at 30fps) to an RTMP endpoint you specify. The broadcast participant joins the meeting in the muted state. The meeting PIN must be unlocked in order for the broadcast participant to join the meeting.
You will need Docker and make
installed on your system. As this container is running a Firefox browser instance and transcoding audio and video in real time, it is recommended to use a host system with at least 8GB RAM and 4 CPU cores, such as an m5.xlarge EC2 instance running Ubuntu Linux 18.04 LTS.
The input for the container is a file called container.env
. You create this file by copying the container.env.template
to container.env
and filling in the following variables:
MEETING_PIN
: the PIN for the Amazon Chime meeting you wish to broadcast (without any spaces in it)- Example:
1234567890
- Example:
RTMP_URL
: the URL of the RTMP endpoint,- Twitch example:
rtmp://live.twitch.tv/app/<stream key>
- YouTube Live example:
rtmp://a.rtmp.youtube.com/live2/<stream key>
- Twitch example:
To build the Docker image, run:
$ make
Once you have configured the container.env
file, run the container:
$ make run
The container will start up and join the given Amazon Chime meeting as the <Broadcast>
attendee and start streaming H.264/AAC in FLV format to the given RTMP endpoint.
When your broadcast has finished, stop the stream by killing the container:
$ docker kill bcast
If you launched an EC2 instance to host the Docker container, you may also want to stop the instance to avoid incurring cost.