Skip to content
Ziyan Zhou edited this page Dec 9, 2017 · 6 revisions

NGINX RTMP + FFMPEG + WebRTC P2P (2016, 2017)

See livebox project. Will post more detail later.

SRS (2014, 2015)

See blog post.

Flash Media Server on EC2 (2012, 2013)

This section describes how to setup live stream FMS on AWS. This should be done right before the event to avoid paying hourly high fee.

Overview

Follow the instruction here: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/LiveStreamingAdobeMediaServer5.0.html

Use the links here to create the full stack in the desired region. Singapore seems to have the least issues. http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AMS5.0CreatingLiveStreamingStack.html

Server-side

Things that needs to be done on the FMS server via SSH:

  1. Remember to edit /mnt/webroot/crossdomain.xml to allow viewing from "*". This needs to be done before cloudfront caches the file. Otherwise, you need to invalidate the cache.
  2. The bitrate settings are here: /mnt/applications/livepkgr/events/definst/liveevent/Manifest.xml

Client-side

Things that needs to be done on the client:

  1. There is some XML config that need to be changed (very important, otherwise the live stream always resume from the top) http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AMS5.0FlashMediaLiveEncoder.html
  2. The stream name should be: livestream%i?adbe-live-event=liveevent&adbe-record-mode=record
  3. H.264 settings need to change to 4s keyframes