By Bulat Khamitov
Red5 is a popular program written in Java that lets you stream audio/video files (FLV/F4V/MP4/3GP/MP3/F4A/M4A/AAC), record streams (FLV), and supports various protocols (RTMP/RTMPT/RTMPS/RTMPE).
To get started, we will spin up Ubuntu 12.10 x64 cloud server:
apt-get install -y red5-server
This will install Red5 to /usr/share/red5
To start red5:
service red5-server start
Your server will now listen on these default ports:
Debug proxy: 1936
HTTP servlet: 5080
At this point you are all done installing Red5, and now you need to add your Red5 application to /usr/share/red5/webapps
You can develop your own application using Eclipse IDE. There are many commercial applications available for Red5, as well as free applications.
There is also an online Red5 App Generator available here.
It will let you create RTMP streaming application:
Here is an example of how to install a free Red5 Chat application:
cd /usr/share/red5/webapps wget "http://downloads.sourceforge.net/project/freered5chat/red5chat_v2.2_Freedevelopment.net.zip" unzip red5chat_v2.2_Freedevelopment.net.zip mv red5chat_v2.2_Freedevelopment.net/* .
Navigate over to your cloud server's IP port 5080 (http://184.108.40.206:5080/flash/ in our case):
And you are all done!
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.Sign up now
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi Digital Ocean, Thanks for the great tutorial. You can also review Ant Media Server. Ant Media Server Low Latency solutions are awesome. Ant Media Server Github Page: https://github.com/ant-media/Ant-Media-Server Ant Media Server Google Group: https://groups.google.com/forum/#!forum/ant-media-server Also review website: https://antmedia.io Best Wishes
Don’t use this anymore, instead of that, install red5-server directly from tarball. Refer this
I receive this error: Sub-process /usr/bin/dpkg returned an error code (1) The Red5 server then fails to start.
Can anyone help me?
How do I sign in to chat?
apt-get red5 package does not come with demos and installers, and a box with the 404 in the middle of the page will appear because no vod directory in included from the package, either (see http://askubuntu.com/questions/274329/install-red5-server-on-an-ubuntu12-04-server). Namely, to install red5 package on ubuntu will result in painful experience because essentially no demos / installer is given, and it won’t even work after you successfully installed and started the server (for me and many others struggling in the forum, at least).
Instead, try install on CentOS by following this thread: http://tecadmin.net/installing-red5-media-server-on-centos-6/. Red5 has migrated to GitHub along with its latest release package: https://github.com/Red5/red5-server/releases. Red5 requires jdk8 to run, so install java by following this thread http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6/ except download jdk8 instead of 7, otherwise Red5 won’t work. After installing and setting up environment variables of jdk8 install red5 and start the server, and you should be up and running, with all demos/installer apps readily available. I did this in less than 10 mins.
I build a Android and iOS app like Pandora or Spotify… I need a software to stream the music… The user search for artist and choose the song like and play the track? Red 5 works for that? Connecting to the server and take the song? Example: http:127.0.0.0:5085/usher_track_1.mp3
Hi, I followed all these instructions but I can’t get the server to work at all! I get the box with the 404 in the middle of the page, and after installing the Red5 Chat application, I get the flash screen, but it doesn’t seem to connect. I have been scouring the web for solutions, but I keep finding so much out of date information and finally ended up at the red5-server git repo, which seems to be way more complicated than specified in these instructions.
Is the apt-get distribution broken now or am I just too much of a noobie to figure this out?
Many thanks for any help!
BGS, did you figure out the errors? I have the exact same issue as you and it started by fixing rtmp via jee.xml file.
This comment has been deleted
Red5 is now listening on port 8088, to fix this, on file /etc/red5/jee-container.xml uncomment block
Now the problem is with this error:
o.a.c.startup.DigesterFactory - Could not get url for /javax/servlet/resources/j2ee_1_4.xsd
Have a lot of lines with ‘o.a.c.startup.DigesterFactory - Could not get url for /javax/servlet/xxx’.
This appears here /var/log/red5/red5.log and also on /var/log/red5/error.log.
Thanks you. Carlos.