Tutorial

How To Setup Red5 on Ubuntu 12.10

Published on May 31, 2013
author

Bulat Khamitov

How To Setup Red5 on Ubuntu 12.10

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:

Install Red5

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.

Learn more about our products

About the authors
Default avatar
Bulat Khamitov

author

Still looking for an answer?

Ask a questionSearch for more help

Was this helpful?
 
10 Comments


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)

Kamal Nasser
DigitalOcean Employee
DigitalOcean Employee badge
August 8, 2014

@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.

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Join the Tech Talk
    Success! Thank you! Please check your email for further details.

    Please complete your information!

    Become a contributor for community

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    DigitalOcean Documentation

    Full documentation for every DigitalOcean product.

    Resources for startups and SMBs

    The Wave has everything you need to know about building a business, from raising funding to marketing your product.

    Get our newsletter

    Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

    New accounts only. By submitting your email you agree to our Privacy Policy

    The developer cloud

    Scale up as you grow — whether you're running one virtual machine or ten thousand.

    Get started for free

    Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

    *This promotional offer applies to new accounts only.