Streaming Video with Red5 oflaDemo App

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

Print This Post Print This Post

VN:F [1.6.3_896]
Rating: 8.0/10 (47 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 (47 votes cast)

Tags: , ,

Print This Post Print This Post

14 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

Oscar

19. Apr, 2011

Can you make a video tutorial as example?,please

guillaume

01. Aug, 2011

Hi,

Any news about an updated document?

Alvin

09. Sep, 2011

Dear Admin,
I’m testing oflaDemo (rtmp) locally.
Same steps as above.
Also ok to view from “Publisher”.

I mean, i can access it locally like:
rtmp://localhost/oflaDemo/flv:toystory3.flv

My problem is, how can i see this stream from “Network PC” (other machine) ?

Like:
rtmp://192.168.1.202/oflaDemo/flv:toystory3.flv

How can i do it??
Please, i am very new with Red5.

Sandaniel

15. Apr, 2012

you can change the folder where you saved the flv video

jrmkr

11. Jun, 2012

hi abbas,

do u run oflademo using the url below?

rtmp://your-red5-server-ip:1935/oflademo

if you do that, it should be work. otherwise check the ports of the server.

Nagesh

15. Oct, 2012

How to get the red5 vides from remote system to local host

Nagesh

15. Oct, 2012

Please Help me, how to get the files from remote system to local host.

Leave a reply