How to install Red5 Media Server on Ubuntu / Debian

→ Are you a new visitor? Please visit the page guidance for new visitors ←

How to install Red5 Media Server on Ubuntu or Debian

Red5 Media Server is a powerful video streaming solution standing its own ground to the big giant Adobe with their own Adobe Media Server, however compared to them, Red5 is free, based on Java and other open source frameworks. It provides a good solution to business of all sizes including Enterprises. Red5 includes support for the latest multi-user API’s including NetConnection, NetStream and SharedObject’s while providing a powerful RTMP / Servlet implementation. You can stream the most popular audio/video file extensions like FLV, F4V, MP4, 3GP, MP3, F4A, M4A, AAC and supports various protocols like RTMP, RTMPT, RTMPS, RTMPE.

In this article I’m going to go and show you how to install Red5 Media Server on Ubuntu or debian.

Install Red5 Media server

Well, installing it is really simple, you just need to run the command:

After this is installed, the location of the server will be in:


You will need to start your server using the command:

Your server should be listening on the below default ports:

You need to upload your Red5 application in the location:


If you load your IP address in your browser, you will see a similar page like below:

red5 default page

Red5 default page

Install demo Red5 Applications

On the same page, a bit below, you will have some sample commands you can use to install a default, ready made, application, however from what I see, these are a bit old, not updated to the new version. Below is the correct one / updated for the new version with proper links:

Once you finished this, you should be able to install some sample apps using the link:


red5 install application

Red5 install application

and as for the demo section, you can use:


and you will see a page with a few demos there.

So that’s about it to installing Red5, there’s not much to tell really, but for those looking to use this powerful server, you will need to read the docs on it. You can find them here:

Will see you again tomorrow in our next tutorial, until next time.


  • I followed these instructions exactly, but cannot get a connection when I start the installer.

    The log comes back with a message: “[Red5_Scheduler_Worker-4] WARN – Closing RTMPMinaConnection from : 45722 to null (in: 1537 out 0 ), with id 19872601 due to long handshake”

    Any ideas how to resolve this issue?

    • Do check your firewall in case you are blocking ports.

      • Thanks, I have checked. The firewall is disabled at the moment, to ensure nothing like that is in the way.

    • Thanks, I have checked. The firewall is disabled at the moment, to ensure nothing like that is in the way.

    • I just tested this up to the installer and worked alright / able to install the demo applications here. RTMP works ok, RTMPT needs to be enabled / set in the /etc/red5/red5-core.xml

      Sorry I can’t help much, haven’t played with this a lot so can not really provide proper help.

      • Thanks for the try, I have checked and rtmpt seems to be enabled.
        I have even upgraded the OS to see if that helps and nothing :S

  • Thanks, I have turned off the firewall, just in-case.
    I may just find an alternate media streaming server, as I only want to stream microphone and webcam – this seems a lot of hassle for such a minor service :S

Request an article ←