How to configure Flash Media Live Encoder (FMLE) to use Azure Live Streaming Service

The live broadcast service in Azure Media Services has started public preview in Azure China. Through this English blog, you can learn about the RTMP protocol support for live streaming services and the configuration of various client encoders. 

http://azure.microsoft.com/blog/2014/09/18/azure-media-services-rtmp-support-and-live-encoders/  . This article mainly introduces the configuration of Flash Media Live Encoder.

Preconditions:

First, you need to create a channel in your Azure Media Services account.

After the creation is successful, you can start the following configuration work to experience the Azure live broadcast service.


The configuration steps are as follows:

1. Download and install FMLE

Download a trial version of FMLE:  http://offers.adobe.com/en/na/leap/offers/fmle3.html?faas_unique_submission_id=%7b851C0F4C-F017-D77F-5D85-8D14D2C0DAD4%7d&s_cid=null

Before downloading, you need to fill out a form, just submit the form and the download will be completed.


2. Download the AAC encoder plugin

The audio output supported by FMLE by default is MP3 format. Currently, Azure does not support audio transcoding for live streams. In order to dynamically package live streams into MPEG-DASH, Smooth Streaming and HLS in Azure Live Services, we have to use AAC format audio output. Please go to the Main Concept website to download the AAC encoding plugin for FMLE, or download it from here: https://shirleystorage.blob.core.chinacloudapi.cn/shirleyshare/AACEncoderPlugIn_v1.0.6.zip .

   Note: If you download through the Main Concept website, you need to fill in your personal information and email address. The system will send the download address to the email address you filled in before you can download it.


3. Install the AAC encoder plugin

After downloading AAC Encoder in the second part, run the AACEncoderPlugIn_v1.0.6.msi file directly after decompression.


4. Modify the configuration file of FMLE (FMLE must be closed).

Find the config.xml file in the FMLE installation directory. On 64-bit Windows systems, the path to this file is: C:\ProgramFiles (x86)\Adobe\Flash Media Live Encoder 3.2\Conf\config.xml . Open the file, find the tag: <streamsynchronization>, and in the <enable> tag below it, set the value to true.

   <enable> true </enable>


5. Open FMLE and make the following settings.

    5.1 In the device list, select your camera device. My choice here is "Logitech HD Webcam C270".

    5.2 Select the encoding format, I chose "Multi Bitrate - 3 streams (1500) Kbps - H.264" here.

    5.3 Configure H.264 advanced options, set "Key Frame frequency" to 2 seconds.

    5.4 Set the frame rate to 30fps.

    5.5 Select the audio device and make the following settings.

    5.6 Check "Stream to Flash Media Server"

    5.7 Copy and paste the "Insert URL" on the Azure Management Portal to the "FMS URL" here.

    

    5.8 Name the Stream as stream%i, as shown below:

The following picture is all the configuration after completing step 5:

6. Click "Connect"

7. Click "Start"


Configuration is complete.

You can preview the live stream through the Azure Management Portal.

Preview via the Azure Management Portal:

Use the Publish URL on a real device

On the Azure Portal, there is a Publish URL like this: "http://<account_name>.origin.mediaservices.windows.net/<locator_guid>/<stream_guid>.ism/manifest". In actual playback, use this URL to get the live streaming format of Microsoft Smooth Streaming.

- On iOS devices, we need to add "(format=m3u8-aapl-v3)" after the URL. For example:  http://<account_name>.origin.mediaservices.windows.net/<locator_guid>/<stream_guid>.ism/manifest(format=m3u8-aapl-v3 )

- If you need MPEG-DASH format, you need to add "(format=mpd-time-csf)" after the URL

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326072094&siteId=291194637