Skip to main content
Participant
July 23, 2007
Question

Streaming an FLV file using Media Server

  • July 23, 2007
  • 1 reply
  • 591 views
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 😎 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
    This topic has been closed for replies.

    1 reply

    barrm2Author
    Participant
    July 24, 2007
    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...
    Participating Frequently
    July 24, 2007
    I have found that having too many sub directories will stop the server from streaming.
    Try the following directory:
    applications\videoTest\streams\_definst_\myVideo.flv.