Menu
Amazon CloudFront
Developer Guide (API Version 2016-09-29)

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.

Note

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

  1. Sign in to the computer that you'll use to broadcast the live stream.

  2. Open a web browser, and go to the Adobe Flash Media Live Encoder page.

  3. Download and install Flash Media Live Encoder.

    Note

    Flash Media Live Encoder is free, but to download it, you need an Adobe account (also free).

  4. Open the Flash Media Live Encoder config.xml file in a text editor. The default installation location depends on your operating system:

    • 32-bit Windows: C:\Program Files\Adobe\Flash Media Live Encoder 3.2.

    • 64-bit Windows: C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\Conf.

    • Macintosh: Applications:Adobe:Flash Media Live Encoder 3.2.

  5. In config.xml, set the value of the following <enable> element to true:

    <flashmedialiveencoder_config> 
       ...
       <mbrconfig>
          ...
          <streamsynchronization>
             ...
             <!-- "true" to enable this feature, "false" to disable. --> 
             <enable>true</enable>
    
  6. Save the file.

  7. Run Flash Media Live Encoder.

  8. On the Encoding Options tab, for Preset, select High Bandwidth (800 Kbps) — H.264.

  9. On the Encoding Options tab, under the Audio check box, for Format, select AAC.

  10. 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.

  11. 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.xml file. The default value of <FragmentDuration> is 4000 milliseconds (4 seconds).

  12. Click OK to save the setting and return to the main page. The selection for the Preset list changes to Custom.

  13. Open the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation/.

  14. Check the checkbox for the stack that you created for live streaming.

  15. In the bottom pane, click the Outputs tab.

  16. Copy the value of the AMSURL key, for example, rtmp://ec2-00-11-22-33.us-west-1.compute.amazonaws.com/livepkgr.

  17. 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.

  18. In the AWS CloudFormation console, copy the value of the Stream key, for example, livestream?adbe-live-event=liveevent.

  19. In Flash Media Live Encoder, in the Stream setting, paste the value of the Stream key that you copied from the AWS CloudFormation console.

    Note

    If you anticipate having to stop and restart the live stream, enter the following value in the Stream field instead:

    livestream?adbe-live-event=liveevent&adbe-record-mode=record

    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.

  20. Uncheck Save to File.

  21. Click Connect to connect to your Adobe Media Server instance.

  22. Click Start to start encoding and publishing your live stream to the livepkgr application on your Adobe Media Server instance.

Next: Embedding Strobe Media Playback for an Amazon CloudFront Live HTTP Stream in a Web Application