all groups > macromedia flash flashcom > july 2007 >
You're in the

macromedia flash flashcom

group:

Streaming an FLV file using Media Server


Streaming an FLV file using Media Server barrm2
7/23/2007 12:00:00 AM
macromedia flash flashcom:
Hi,

I'm trying to get started with FMS2, with a view to being able to stream (not
prgressively download) a bunch of FLV videos. I have the developer edition of
FMS installed on a server (we are intending to buy the Pro version once this is
working) and an FLV file, test.flv

I have created a folder as follows:

C:\Program Files\Macromedia\Flash Media Server 2\applications\VideoTest

In the FMS2 console, I have created an instance of VideoTest called
myVideoTest.

Now, this is where I am unsure. I have read about creating a "streams" folder
where the FLV file should reside, and I have tried a number of different
variations, e.g.

applications\VideoTest\myVideoTest\streams\myVideo.flv
applications\VideoTest\streams\myVideoTest\myVideo.flv

Then, I have created a new Flash document (using Flash Professional 8) and
added a new Video component and tried variations of the following code:

nc = new NetConnection();
nc.connect("rtmp://<server IP>/VideoTest/myVideoTest");
ns = new NetStream(nc);
my_video.attachVideo(ns);
ns.setBufferTime(0);
ns.play("myVideo");

But this doesn't work - just a blank screen and occasionally an error saying
it can't open the URL.

I've also tried using an FLVPlayback component and tried setting the content
path to rtmp://<server IP>/VideoTest/myVideoTest/myVideo.flv but that fails to
find the movie.

What do I need to do to stream FLV videos using FMS2?

Thanks,

Matt

Re: Streaming an FLV file using Media Server barrm2
7/24/2007 12:00:00 AM
Seems that I can get this to work using a video component witht he FLV files in
applications\VideoTest\streams\myVideoTest. Still won't work with an
FLVPlayback component though.

Trying a different approach (live streaming) , I have followed the great
tutorial at
http://www.adobe.com/devnet/flashmediaserver/articles/webcasting_fme_05.html

However, when I try the final step - setting the content path of the
FLVPlayback component (rtmp://<serverIP>/myLiveApp/instance1) - it says it
failed to load the flv. Media Encoder is encoding the input form the camera,
and the instance appears in FMS, so I don't know where it's failing...
Re: Streaming an FLV file using Media Server bosscat
7/24/2007 3:51:30 PM
I have found that having too many sub directories will stop the server from streaming.
Try the following directory:
Re: Streaming an FLV file using Media Server mauriciobarreto
7/26/2007 1:54:24 PM
Hello Barm,

I'm with the same problem with the difference that i installed the FMS2 in a
Red Hat Linux Enterprise Version 4. I tryed stream some simple videos but i
failed. Only a few stream on demand videos. I don't know where i have to put
the files, what directorys i have to use...

Did you resolv the problem?

Thanks,

Mauricio Barreto
Re: Streaming an FLV file using Media Server barrm2
7/26/2007 2:11:50 PM
Mauricio,

I'm still struggling, but I'm working through what looks like a promising tutorial here:

http://www.mcalister.cc/ddd/flv/index.html

I'll post again if it works...

Re: Streaming an FLV file using Media Server mauriciobarreto
7/27/2007 12:00:00 AM
Hello Matt,

Any new notice i will post here too.

Thanks,

Re: Streaming an FLV file using Media Server mauriciobarreto
7/31/2007 12:00:00 AM
Hello Matt,

I obtained success in the FMS's operational. I putted some videos in the
server and obtained a good result in the on demand sttreaming. Any doubt you
can have my help.

Thanks for all,

Maur?cio Barreto
AddThis Social Bookmark Button