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:
RTMP: 1935
Debug proxy: 1936
HTTP servlet: 5080
RTMPT: 8088
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/* .
Restart Red5:
/etc/init.d/red5-server restart
Navigate over to your cloud server's IP port 5080 (http://198.199.91.87: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.
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!
Thanks!
Red5 stream times out after a few minutes streamig a recorded file
anyone knows how to place a password and username on livestreams ?
Hello,
why now it’s not working? after installation server is not listening on port 8088 and webapps don’t work.
sudo lsof -Pnl +M -i6
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 616 0 4u IPv6 7949 0t0 TCP *:22 (LISTEN) java 874 106 67u IPv6 8841 0t0 TCP *:9980 (LISTEN) java 874 106 124u IPv6 8868 0t0 TCP *:1935 (LISTEN) java 874 106 127u IPv6 8895 0t0 TCP *:5080 (LISTEN)
@bgs: Does port 5080 work?
Hello Kamal,
yes, I can access to http://104.131.227.215:5080/ but show this error:
HTTP Status 404 - /vod/index.html
type Status report
message /vod/index.html
description The requested resource (/vod/index.html) is not available. Apache Tomcat/6.0.35
Hi again,
I think I found the error, tomorrow I will post the changes.
Hi again,
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.
Any ideas?
Thanks you. Carlos.
This comment has been deleted
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.