simple .flv streaming in red5-0.9.1

226 views
Skip to first unread message

Lino Moragon

unread,
Sep 17, 2010, 11:10:27 AM9/17/10
to red5in...@googlegroups.com
Hi List,

In my company we've got a red5-0.7.0 and want to upgrade to 0.9.1.

On 0.7.0 we've got the following setup:
/opt/red5-0.7.0/webapps/videos/streams/video1.flv

In the "videos" Folder there isn't any WEB-INF or META-INF folder, just
the streams folder.
We're including the videos in the webbpage like this:
file=rtmp://server:1935/videos/video1.flv. And it works nicely.

For 0.9.1 I'm using this installer version
http://www.red5.org/downloads/0_9/red5-0.9.1.tar.gz

If I now recreate the same directory structure in 0.9.1 like it was on
0.7.0 I can start the server with ./red5.sh but it won't load the
application videos and gives me a lot of messages like these:

Exception in thread "Launcher:/videos"
org.springframework.beans.factory.BeanDefinitionStoreException: Could
not resolve bean definition resource pattern [/WEB-INF/red5-*.xml];
nested exception is java.io.FileNotFoundException: ServletContext
resource [/WEB-INF/] cannot be resolved to URL because it does not exist.

I'm not aware that we did some other configuration in 0.7.0 but just
putting the .flv files in the streaming folder.
How can it be, that this won't work anymore?

Has anyone an idea of resolving this issue in the most simple way?
(without creating applications?)

As I've googled many hours now any hint or help would be greatly
appreciated.

Thanks in advance!

Kind regrads
Lino

D-Durga-Prasad

unread,
Sep 17, 2010, 11:33:53 AM9/17/10
to red5in...@googlegroups.com
The folder structure is:-
WEBAPPS
    installer
      Streams
      WEB-INF
         src
         classes
         lib
         red5-web.xml
         web.xml
         red5-web.properties

Just Check the attached files.
--

D DURGA PRASAD
Jr Technical Staff,
Computer Science Engineering Department.,
Indian Institute of Technology, Kharagpur, INDIA

Contact:
ddpr...@iitkgp.ac.in,ddpr...@cse.iitkgp.ernet.in, ddpr...@gmail.com
Mobile: +91 9474756471
Success is not final, failure is not fatal: it is the courage to continue that counts!!

red5-web.properties
red5-web.xml
web.xml

Lino Moragon

unread,
Sep 20, 2010, 3:52:53 AM9/20/10
to red5in...@googlegroups.com
Thanks, I checked it out and also could install e.g. the oflaDemo.
But how can I change the name, or make an own folder, so that I wouldn't
have to include it like this:
file=rtmp://server:1935/oflaDemo/video1.flv

but could make my own foldername:
file=rtmp://server:1935/videos/video1.flv

Anyone has an idea?

> *D DURGA PRASAD*


> Jr Technical Staff,
> Computer Science Engineering Department.,
> Indian Institute of Technology, Kharagpur, INDIA
>
> Contact:
> ddpr...@iitkgp.ac.in

> <mailto:ddpr...@iitkgp.ac.in>,ddpr...@cse.iitkgp.ernet.in
> <mailto:ddpr...@cse.iitkgp.ernet.in>, ddpr...@gmail.com
> <mailto:ddpr...@gmail.com>
> Mobile: +91 9474756471
> *Success is not final, failure is not fatal: it is the courage to
> continue that counts!!*
>

D-Durga-Prasad

unread,
Sep 20, 2010, 4:32:08 AM9/20/10
to red5in...@googlegroups.com
Its very very simple.

Let me tell you in an unusual way.

Create a copy of a working folder. Rename it. Then navigate to the xml files inside. Make the changes accordingly. Restart Red5 server. VOILA!!!
--

D DURGA PRASAD

Jr Technical Staff,
Computer Science Engineering Department.,
Indian Institute of Technology, Kharagpur, INDIA

Contact:

Lino Moragon

unread,
Sep 20, 2010, 5:26:52 AM9/20/10
to red5in...@googlegroups.com
Hi,

Thanks, I just copied the oflaDemo to videos, made some changes and it
works.
Was just wondering why it didn't work like on the 0.7.0, where I didn't
have to write any WEB-INF data at all.

Are there any security aspects that I need to take into account if I
just copy the oflaDemo?

kind regards,
Lino

> <mailto:lino.m...@highspeed.li

> <mailto:ddpr...@iitkgp.ac.in

> <mailto:ddpr...@cse.iitkgp.ernet.in

> <mailto:ddpr...@gmail.com <mailto:ddpr...@gmail.com>>

Dominick Accattato

unread,
Sep 21, 2010, 12:45:58 PM9/21/10
to red5in...@googlegroups.com
Lino,

I have no idea how it worked on 0.7 since we had always required for red5 applications to be valid web application as defined in the servlet specification. This has changed though in the latest trunk where we allow for applications to be installed as plugins as well as the traditional way we've done in the past.  Anyway, if you are placing your video files directly under the webapp context folder, then these files are also accessible via http which may or may not be intentional. Just saying that these files can also be downloaded over http.

Dominick

Lino Moragon

unread,
Sep 23, 2010, 4:39:50 AM9/23/10
to red5in...@googlegroups.com
Hi Dominick,

Thanks for the clue, but the red5 and apache are on different machines.
And on the red5 the port 80 / 443 isn't accessible from the outside.

As for the version 0.7 I don't know either.. Perhaps there is a default
config somewhere else that states all files in /webapps/<app>/streams
are to be streamed on rtmp? But I wasn't able to locate it.

Lino

Dominick Accattato

unread,
Sep 23, 2010, 8:00:34 AM9/23/10
to red5in...@googlegroups.com
It wouldn't be a config file. The only way was to implement it through code using a custom stream directory:
http://red5.org/wiki/Documentation/UsersReferenceManual/Red5CoreTechnologies/03-Customize-Stream-Paths
Reply all
Reply to author
Forward
0 new messages