Streaming Video with Red5 oflaDemo App

Posted on 27. Aug, 2009 by joshhrob in Server, Streaming

Print This Post Print This Post

VN:F [1.6.3_896]
Rating: 8.0/10 (28 votes cast)

This is a quick and dirty demo to get started with the Red5 server.

In this demo, we will show how to stream video using the oflaDemo app that ships with the Red5 server.

The first step is to install/activate the app via the Red5 web GUI.

Open a browser and navigate to http://IPADDRESS:5080 and click on the link: Click here to install demos

TVERSITY-2009-08-25-22-17-12

On the installation screen, select oflaDemo and press the Install button

TVERSITY-2009-08-25-22-17-39

The streaming files go in the directory /usr/share/red5/webapps/oflaDemo/streams/

To make sure this directory is writable, log in via the console and execute the following command:

sudo chmod 777 /usr/share/red5/webapps/oflaDemo/streams/

MyRed5Server-2009-08-25-22-15-49

Copy the flv file to be streamed to the red5 server. In this example we use WinSCP (Any SCP/SFTP will do ie filezilla, etc).

TVERSITY-2009-08-25-22-20-37

Now configure a flash video player to point to the red5 server. In this example we will use the Longtail JW Player, which can be configured automatically using the wizard on their website.

TVERSITY-2009-08-25-22-23-23

There are 2 flash variables that are required. file is the flv file, and streamer is the url to the red5 server and the application path. In this example we will use ESXi.flv and rtmp://builddocs.com/oflaDemo

TVERSITY-2009-08-25-22-23-10

Here is the working demo:

Please leave questions or comments below.

VN:F [1.6.3_896]
Rating: 8.0/10 (28 votes cast)

Tags: , ,

Print This Post Print This Post

7 Comments

skyhyc

27. Oct, 2009

hi
I have installed demos,and there is a HTML file named “publisher.html”
in Red5\webapps\root\demos,
could you tell me how to use this file to receive a flv video from RED5 server?

joshhrob

29. Oct, 2009

Open your browser and goto: http://YOURIPADDRESS:5080/demos/publisher.html

You must have flash installed.

In the Name field enter the name of a flv file and
the location field should point to your Red5 server.

Assuming you are pointing to the oflaDemo app you would copy the flv file in \webapps\oflaDemo\streams and use rtmp://localhost/oflaDemo for the Location.

Amy

03. Jun, 2010

hi
I have installed demos,and there is a HTML file named “publisher.html”
in Red5\webapps\root\demos,
could you tell me how to use this file to receive a flv video from RED5 server?

abbas

11. Jun, 2010

Web i run the oflaDemo from the demos it give the error
(3395) NetConnection.onStatus:
description = No scope ‘oflaDemo’ on this server.
code = NetConnection.Connect.Rejected
level = error

Lox

22. Mar, 2011

Hi i have the demos all installed and working,(dont ask me how as i am very new to red5 … and server root acess in gen) but i cant seem to get it to work in the way that i would like…..

I just want to be able to display a live cam feed in a flash player, no sound , no recording , no play back , just plane simple cam.

Rob

22. Mar, 2011

Lox, you will need a client to broadcast the stream from your cam to the Red5 server. I believe you can use VLC for this (http://www.videolan.org/vlc/). Goto File -> Streaming. Under network put the address of the Red5 server (rtmp://yourserver/oflaDemo). Then select your camera under Capture device.

admin

22. Mar, 2011

We will be updating these docs soon for Red5 0.9.1. We will try to include some tutorials for this

Leave a reply