Live Streaming With Flash Media Encoder & Red5

Online live streaming is one of the top ranks that Adobe Flash holds at the moment. Although you will find many web-based flash recorders and live streaming applications, none can match the Adobe Flash Media Live Encoder. As i have noticed FMLE has a much superior encoding quality as compared to any swf based encoder.

So after my experiment last week on OSMF and red5 i decided to give FMLE a try with Red5 open source media server. However i was disappointed that it didn’t work with the latest version of FMLE and red5 0.8.  However it was great to see that Flash Media Live Encoder 2.0 (older version) worked great with Red5. So here is a look at how we get Red5 to work with Flash Media Live Encoder 2.0 for  some great results .

Setting up Red5 With Flash Media Live Encoder

  1. Download Flash Media Live Encoder 2.0 form Adobe here.
  2. FMLE Download Page
  3. Install FMLE on your computer.
  4. FMLE Installation
  5. Launch and prepare Flash Media Live Encoder with Red5. Here i assume that you already have red5 installed and running (Red5 0.8 minimum) If you haven’t installed red5 yet, you can download it from its Google code page. After getting red5 running ensure that you have a valid red5 application in webapps directory. You can install it using the Red5 installer or generate one from Here . I use midiDemo as a sample rtmp application, which comes with Red5.
    FMLE Main Interface

    Next , once you have the server side application ready, launch FMLE from installed location. When FMLE is up , change the FMS URL to point to Red5 rtmp application rtmp://localhost/midiDemo (for our example) and then set  stream name to, “livestream (for our example). Then press Connect to make connection with Red5 application.  For camera resolution i used 176×144.

    Rest of the settings,staying default we simply press “Start”  button at the bottom to start broadcasting.

  6. View Broadcast with a flash client. – Now that things are rolling, its time for us to test our broadcast in a flash based client. So for this example we will use the Publisher sample application with comes bundled with Red5. So navigate to http://localhost:5080/demos/publisher.html, (assuming you installed red5 with normal procedure) and you will see the publisher application.
    Red5 Publisher Sample Application

    Here we will first change the rtmp url in Location: field  to rtmp://localhost/midiDemo and press Connect button to connect to server. If you have setup red5 correctly and its running you will get a “NetConnection.Connect.Success” message in the debug window, ensuring that the connection is ready. Next we need to change th stream name to point to the same name as  Flash Media Live Encoder is using to broadcast on. So we change the Name: field to “livestream for our example. Then press “Play“.  You should now be able to see your broadcast in the Red5 sample application.

  7. Red5-Publisher-Viewer
    Red5 Publisher Recieving Stream
Note: Since FMLE is not recommended to be used with anything other than FMS, hence performance and expected results cannot be guaranteed. However if  you want to try out,  definitely give it a go. How+ever i have noticed that FMLE drops the capture device after a while (Tested on Red5 o.8)
4 Comments
  1. Chris says:

    Red 5 comes actually without midiDemo and i dont know how to install it 🙁

  2. rashdan says:

    hi, is there any other way to view the live stream without using publisher? for example plain html or java. please help me. thank you in advanced.

If you have trouble getting emails from this domain, please check your email spam & mark messages from flashvisions.com as 'Not Spam'

Comments are closed