Setting Up Adobe Flash Media Live Encoder to Publish a Live Stream
Adobe Media Server on Amazon Web Services includes an application called livepkgr that packages published streams for delivery using HTTP Dynamic Streaming (HDS) and HTTP Live Streaming (HLS).
The following procedure shows how to set up Adobe Flash Media Live Encoder (FMLE) to publish your live stream to the livepkgr application on Adobe Media Server 5.0.
The Windows version of Flash Media Live Encoder doesn't support the AAC audio format. To add support for AAC, Adobe recommends that you purchase the MainConcept AAC encoder.
To specify live-streaming settings in Flash Media Live Encoder
Sign in to the computer that you'll use to broadcast the live stream.
Open a web browser, and go to the Adobe Flash Media Live Encoder page.
Download and install Flash Media Live Encoder.
Flash Media Live Encoder is free, but to download it, you need an Adobe account (also free).
Open the Flash Media Live Encoder
config.xmlfile in a text editor. The default installation location depends on your operating system:
C:\Program Files\Adobe\Flash Media Live Encoder 3.2.
C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\Conf.
Applications:Adobe:Flash Media Live Encoder 3.2.
config.xml, set the value of the following
<flashmedialiveencoder_config> ... <mbrconfig> ... <streamsynchronization> ... <!-- "true" to enable this feature, "false" to disable. --> <enable>true</enable>
Save the file.
Run Flash Media Live Encoder.
On the Encoding Options tab, for Preset, select High Bandwidth (800 Kbps) — H.264.
On the Encoding Options tab, under the Audio check box, for Format, select AAC.
In the Video section of the Encoding Options tab, click the wrench icon to the right of the Format list to open the Advanced Encoder Settings dialog box.
In the Advanced Encoder Settings dialog box, for Keyframe Frequency, select 4 Seconds.
You can also use a multiple of the value of the <FragmentDuration> element in the
applications/livepkgr/events/_definst_/liveevent/Event.xmlfile. The default value of <FragmentDuration> is 4000 milliseconds (4 seconds).
Click OK to save the setting and return to the main page. The selection for the Preset list changes to Custom.
Open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.
Check the checkbox for the stack that you created for live streaming.
In the bottom pane, click the Outputs tab.
Copy the value of the AMSURL key, for example, rtmp://ec2-00-11-22-33.us-west-1.compute.amazonaws.com/livepkgr.
In Flash Media Live Encoder, in the Stream to Flash Media Server section, in the FMS URL setting, paste the value of the AMSURL key that you copied from the AWS CloudFormation console.
In the AWS CloudFormation console, copy the value of the Stream key, for example, livestream?adbe-live-event=liveevent.
In Flash Media Live Encoder, in the Stream setting, paste the value of the Stream key that you copied from the AWS CloudFormation console.
If you anticipate having to stop and restart the live stream, enter the following value in the Stream field instead:
If you publish a live stream in record mode (
adbe-record-mode=record), and then stop the stream and restart it, Adobe Media Server will delete the previous stream and start a new stream instead of appending to the previous stream when you restart. However, if you don't use record mode and you stop the live stream, you have to reconfigure live streaming before you can restart the stream.
Uncheck Save to File.
Click Connect to connect to your Adobe Media Server instance.
Click Start to start encoding and publishing your live stream to the livepkgr application on your Adobe Media Server instance.