wiki:install-red5

Using Red5 on Debian Squeeze

Red5 is an open source implementation of a Flash Media Server. Among many other things, it allows you to stream a live video/audio feed from your computer, to a Red5 server, which then can be made available via a web plugin, to anyone.

This allows for live video streaming with end-to-end free software.

Install Red5 on your server

First, install the necessary applications:

aptitude install openjdk-6-jdk ant red5-server subversion dpkg-dev

The problem with the Debian Red5 package is that it does not come with the oflaDemo - which is the only webapp we need for video streaming.

So... we have to download the Red5 source pacakge, check out (via svn) the source for the Red 5 extras, and then compile and install ofladDemo.

Get the red5 source:

cd /usr/local/src
mkdir red5
cd red5
apt-get source red5

Now, check out the red5-examples source:

cd /usr/local/src
svn co http://red5.googlecode.com/svn/java/example/trunk red5-examples

Next, copy the oflaDemo into the red5 source webapps directory (you may need to modify the path of the red5 source directory)

cd /usr/local/src/red5/red5-0.9~svn3968/webapps/
cp -r /usr/local/src/red5-examples/oflaDemo .

Compile the oflaDemo code:

cd oflaDemo
export RED5_HOME=/usr/share/red5
ant

If it builds without a problem - copy the resulting code into the Red 5 package webapps directory:

cp -r www /usr/share/red5/webapps/oflaDemo

And lastly, start red5:

/etc/init.d/red5-server start 

Streaming to the Red5 Server

Streaming can be done via the flash program attached to this post as publish.tar.gz (provided by the Red5 developers).

Since it's a flash program, it can be accessed via any web site - on your local computer or on a server.

  • Click the View tab, specify the server you want to connect to (via an URL like: rtmp://host.org/oflaDemo, and click connect. You should see a successful connection log message).
  • Then, click the Publish tab.
  • Click the Video submenu, and choose your video source. Click apply.
  • Click the Audio submenu, and choose your audio source. Click apply.
  • Lastly, type a name for your stream and hit publish!
  • You can open multiple tabs and send the stream to multiple Red5 servers, however, that can cause instability in the browser

Embedding a player on your web site

See the attached player.tar.gz file. It includes everything you need to embed a player.

Last modified 9 years ago Last modified on Apr 29, 2010, 10:34:10 PM

Attachments (2)

Download all attachments as: .zip