Category Archives: rtmp hosting

testing a red5 live streaming rtmp, plus creating a player for the rtmp

We created an app for live streaming here.

Now we going to test it and create a player code so we can start streaming to our site.

Do you have fmle installed on your computer? You need to download it from adobe.

Lets test it first, go to

enter the rtmp of your app. the rtmp is

rtmp://server IP/app



Enter this URL on the long string and click connect, now click “Publish” your camera will start,  and now click “Play” if the 2 players show the same thing you are on. Everything is good.

OK, now we have to work on “stream name”. We talked about rtmp, and we tested it, the testing site if you go back to it

it has a stream name, “testing” this must be on both the publishing and on the player.

so it must be on the FMLE and on the player code.


(click on the image to have a better view)

the FMLE on the left you have your settings, frame per second, bitrate, your camera, format.

on the red5 server your bitrate should be about 320kbps higher then that you need a lot of RAM and server resources.

lets configure the fmle as the image shows.

on the right on the FMS URL enter the rtmp and on the stream enter your chosen stream name, in this case I entered “live” see image.

click connect, and then below click “Start”

you now streaming to your server.


Now creating a player for this stream. Go to

at the bottom on the “Streamer” enter the rtmp:


and on “Stream / File Name” enter the stream name, which we used on the FMLE, “live”

Click  “Generate Code!”

Take the “Preview & Embed” code, paste on your site and that’s it.

You can also use an image on the player, it will show before the user click to play,  enter the image URL on “Overlay Poster”

Red5 Webapps Online Application Generator

The Red5 Webapps Online Application Generator is a very simple but effective utility to generate Red5 application online. This application gives you the power to create red5 applications without having any knowledge of programming. You can generate streamer applications, with live broadcasting, streaming, recording and shared-Object capabilities in a single click. No compiling/editing needed.

The application takes configuration inputs using a simple flash based front end, and generated red5 application for you by injecting those informations into a application template at runtime.

The generator is located here Red5/Webapps Application Generator.

How to use:

1. Select a Red5 application from the drop down list of available applications. You can read the description of the application in the description box, once you have selected a application.

2. Then enter the name of your rtmp application in the text input box provided below the application list drop down. (no spaces). This will be the context name that you will connect to : rtmp://server/appname

3. Below the description box, you will find the Stream Directory Path option. Use this to select between absolute/relative path schemes. This will set the location for recording/playing streams using the application. In many cases where you may want the streams directory to be on a location other than the default streams folder under red5, you can use absolute path scheme to specify the path to your custom streams directory.

To select a path scheme select one of the radio buttons .

4. Enter appropriate relative/absolute paths in the text input boxes.

For absolute path scheme on linux file systems , use : /home/……

For absolute path scheme on windows use : c:/…..

* Relative path schemes remain same for linux and windows , though you wont use ../ to traverse backwards in either.

5. Press Generate & Download button to generate the specific application from its application template.

6. Press ok when your are prompted to download your application.

7. You may also want to read the description text to kn ow more about the selected application before generating your own copy.

Keep checking back for newly added Red5 applications at:

How To Install RED5 version 0.8 or 0.9 on CENTOS

RED5 is open source flash server written in java supports streaming audio/video, recording client streams, shared objects, live stream publishing etc. In this short steps you can install red5 server on your virtual server or dedicated.

This is post is being modified on 27th August 2013, the installation is for the Red5 version 0.8. as no one will use the 0.9…
Download and Install Java

RED5 server depends on Java, so lets install it first using yum:

# yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
Download and Install Ant (Apache Project)

Ant will need to compile RED5 server code. Ant comes in binary form, so just download and install it in /usr/local directory. This step may cause problems because they all always updating the apache ant and changing the name of it, so sometimes the binary is called apache-ant-1.8.0RC1-bin.tar.gz sometimes apache-ant-1.8.0-bin.tar.gz so you will have to get the correct link, go to (link not working) and find what they have, get the one which ends on tar.gz, should be about 9-10 mega file, so edit the link down to the correct one;

# cd /usr/src
# wget (working link today 8/27/2013)
# tar zxvf apache-ant-1.9.2-bin.tar.gz
# mv apache-ant-1.9.2/ /usr/local/ant
Export Variables for Ant and Java

# export ANT_HOME=/usr/local/ant
# export JAVA_HOME=/usr/lib/jvm/java
# export PATH=$PATH:/usr/local/ant/bin
# export CLASSPATH=.:$JAVA_HOME/lib/

Also export these variables in /etc/bashrc to become available for every user login or for any terminal opens.

# echo export ANT_HOME=/usr/local/ant >> /etc/bashrc
# echo export JAVA_HOME=/usr/lib/jvm/java >> /etc/bashrc
# echo export PATH=$PATH:/usr/local/ant/bin >> /etc/bashrc
# echo export CLASSPATH=.:$JAVA_HOME/lib/ >> /etc/bashrc
Download and Install RED5 Server

Now we come to the main part, which one you want? 0.8, 0.9, 0.7?? (using the 0.8 version)

you can find the various versions available at:

if for example you want version 0.8, then the command would be:

# cd /usr/local
# mkdir red5
# cd /usr/local/red5
# wget
# tar -zxvf red5-0.8.0.tar.gz
# sh &
wait 2 minutes before you close the cmd window, then use:
# CTRL + A + D

if you just close the cmd window the red5 will stop, you must log off using the CTRL + A + D

When Red5 is running you should be able to access http://your-server-domain-or-ip:5080/ .

If it works first thing go to http://your-server:5080/installer/and install admin. Then to http://your-server:5080/admin/register.html and register an username and password. Then you can check application statistics anytime from http://your-server:5080/admin/ with server ip and the registered username, password.


You need to restart every time you add or update files in the /usr/local/red5/webapps folder where all applications should be installed.

RTMP and video streaming

RTMP path is not a link for streaming videos, it is a path to a a folder on red5 which will allow your red5 application to connect to red5 on our servers. Did I make it a bit clear?

for example lets take this application:

for this application to work we uploaded a folder called videowhisper to red5/webapps folder inside the server then on this script there is a file called settings.php and we entered this rtmp path which was:

now do you see how it works?

red5 hosting or Real Time Messaging Protocol (RTMP) hosting

Real Time Messaging Protocol (RTMP) is a protocol for streaming audio, video and data over the Internet, between a Flash player and a server. A special software is required to run on server side for accepting and serving the rtmp connections from flash clients. We provide managed RTMP hosting based on RED5.

Red5 is shared on our shared hosting plans that means although you can use red5 to stream your videos you will not have access to the red5 folder. Most scripts based on red5 need to upload a folder inside red5/webapps.

This folder is important because it will be on the RTMP path, ex.


Contact us so we can upload your folder to red5/webapps and then give you the rtmp path.

RTMP Hosting