Version 2 (modified by Jamie McClelland, 11 years ago) (diff)


Using Red5 on Debian Squeeze

Install Red5

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

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://, 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 publish1

Embedding a player on your web site

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

Attachments (2)

Download all attachments as: .zip