Skip to main content
Participating Frequently
March 10, 2010
Question

FMS streaming

  • March 10, 2010
  • 1 reply
  • 19932 views

I have installed a FMS to a CentOS server. I created an application here but I cannot connect to it raising a "Connection Error".

I tried testing it by streaming some videos on the samples on vod. I used the "../samples/videoPlayer/videoplayer.htm" which is locally found on my computer that was included when I installed a FMS too on my local computer (Windows). When I try to load a video from my computer's FMS samples it usually works. I used the following Stream URL here:

rtmp://[MY-IP]/vod/sample.flv

But when I try to load a sample vido from the server i still get "Connection Error". I used the following URL

rtmp://[server-ip]/vod/media/mp4:sample.f4v

The file is located at /applications/vod/media/ which is as far as I know, the vod is the application's name and media is an instance name.

Am i doing the right thing here? I want to know if the problem has something to do with the server. And also, is there a sample working Stream URL on the internet that I can use to test?

TIA!

    This topic has been closed for replies.

    1 reply

    March 10, 2010

    Hi,

    Here media is not the instance name. The media subdirectory in vod directory is the streams directory. You can check this in <FMS Root>/conf/fms.ini file.

    There you will see a tag VOD_DIR which maps it to that folder.

    VOD_DIR = <FMS_Installation_Dir>\applications\vod\media

    You can place the media files in this directory and connect to it using url

    rtmp://[server-ip]/vod/mp4:sample.f4v

    In general if you need to organize streams in you app (let's say app1) you can do it this way:

    app1/streams/instance1/stream1.flv

    app1/streams/instance2/stream2.flv

    Now if you need to connect to the streams you will use

    “rtmp://server/app1/instance1/stream1.flv’ for playing stream1

    “rtmp://server/app1/instance2/stream2.flv’ for playing stream2

    notice that the streams directory name is not used in making connection.

    Please, revert back in case you still face issues ot something is not clear to you.

    Thanks,

    Abhishek

    ajibandaAuthor
    Participating Frequently
    March 10, 2010

    Thanks Abhishek.

    The media subdirectory in vod directory is the streams directory

    This line is a little confusing. Inside the vod directory, there are folders "media" and "streams". Inside the "streams" is the default instance (correct me if I'm wrong) folder named _definst_  .

    fms.ini has

    VOD_DIR = <FMS_Installation_Dir>\applications\vod\media

    and trying to do this, rtmp://[server-ip]/vod/mp4:sample.f4v

    gives me the same error.

    Another thing is based on what you said, I assume that in a directory like this: <FMS_Installation_Dir>\applications\vod\streams\_definst_\sample.mp4

    would be accessible thru rtmp://[server-ip]/vod/_definst_/mp4:sample.mp4

    I tried it yet it returns me the same error too.

    Adobe Employee
    March 10, 2010

    Are you able to play the stream locally on CentOS using following URI,

    rtmp://[server-ip]/vod/mp4:sample.f4v?

    It's very much possible that the firewall on the CentOS is ON thereby not allowing connections from remote clients. If's its ON, try disabling it and then making connection.