Skip to main content
Participant
May 17, 2011
Question

Am I able to stream from sub folders within the VOD?

  • May 17, 2011
  • 1 reply
  • 1385 views

Hi guys,

I have Flash Media Server 3.5 on a Windows server, but I don't no much about how to make it work. Until know we have only used it for live streaming.

I have let myself guide through the beginners pages and they're helpful, testing everything locally (applications/babyvultures/streams/_definst_/vultures.mp4).

The problem is when I copy my project to the server; same structure, but no video. If I move the file to the applications/vod/media, and change the path in the script, there is no problems.

So the big question is: am I able to have sub folders within the applications/vod ?

The thing is, that I want to publish videos from different sites that is also located on the server, and what I thought I could do, was to make sub folders, one for each site and then people can access their streaming folder via FTP, being able to publish their own videos with the advantage of rtmp streaming.

Is it a limit in FMS? Or is there a solution?

Thank in advance

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 18, 2011

    I did not get your use case clearly, if you are asking if one can stream from sub folders - yes they can very well do it. Can you exactly tell what is your use case and where exactly things are not working. Also why you want people to have FTP access? When you say someone can publish thier videos do you mean publish thier webcam or you meant upload thier videos hence want FTP access?

    Participant
    May 18, 2011

    My case is that I have FMS 3.5 (not FMIS) installed on a webserver with a bunch of sites who each have their videos, (some more than others).

    Right now they all publish their videos via each their site root or videos folder with progressive download, so to improve the viewers experience and to decrease the level uploaded Gb from the server, I want to use the FMS with RTMP streaming.

    On the webserver we have a few sites, who has a large quantity of videos and very long ones, and they need to have a sub folder structure to administrate their videos, so it could look like this:

    FMSroot/

            applications/

                         vod/

                             site1/

                                   folder1

                                   folder2

                                   folder3/

                                           subfolder1

                             site2/

                                   folder1

                                   folder2

                                   folder3/

                                           subfolder1

    I am not planning to make something very complicated with scipts and such. Just a Joomla site and a module where I type in the address of the videos.

    I have tested with Adobe Flash, and the beginners samples, to make a script that shows a video from applications/BabyVultures/streams/_definst_/, but I cannot make it work unless I place the video in the VOD.

    I have the same problem publishing videos thruogh a Joomla module - I cannot get access to the video.

    The funny thing is that, in the Flash Administration Console, it detects and accepts the request, but yet nothing happens.

    What is confusing is the MEDIA folder inside the VOD, but it is not part of the stream path name.

    What should be the path of the file: vod/subfolder/video.f4v or vod/media/subfolder/video.f4v or something else?

    Thanks in advance

    Nikhil_Kalyan
    Participating Frequently
    May 18, 2011

    Hi,

    There is a slight difference between the already existing VOD application and other applications, and this difference is in terms of the url to be used for streaming.

    Under vod folder, there is a  'media' folder created to keep all the video files. This media folder is already mapped with the variable VOD_DIR in fms.ini file (under the conf folder in the fms installation directory). This means, any file(s) kept under the media folder can be directly accessed with the rtmp url such as rtmp://server-name/vod/file.flv . For the rest of the applications, this variable and the media folder are not set and hence you have to go through the streams/_definst_ folder structure.

    So, if you want to use media folder, keep the files under it and you are ready to go. If you dont want to use the media folder, then change variable VOD_DIR in fms.ini to point to your media directories (your web sites) and restart the server, you should be able to playback without issues.


    Please let us know if that helped.

    Thank you !