Skip to main content
Participating Frequently
June 1, 2012
Answered

Problem in accessing the media files from another server

  • June 1, 2012
  • 1 reply
  • 1970 views

Currently I am working in a project with streaming video on demand and using FMS 4.5.


Let’s say the FMS is installed on one machine say ‘121.123.35.34’ and there is another server ‘100.54.88.222’ where all the media files belong. Now we need to point to this third server to play videos from FMS.I have done the below changes:

In the fms.ini file: set the VOD_DIR2 = \\100.54.88.222\myvideos

In the application.xml: Added the stream: <Streams>/hr;${VOD_DIR2}</Streams>

From my application accessing the path of flv as:source= “rtmp:// 121.123.35.34:1935/vod/hr/test” . Not able to access the video.


Note: If I will point to say ‘C:hrvideos’ in VOD_DIR2, then I am able to access the videos using the same URL.


I also tried mapping the shared path to the FMS machine and then given the mapped drive path in the VOD_DIR2, but this also doesn’t work.

Please let me know:

  1. If we need to configure any other parameter to stream videos from another server.
  2. VOD_COMMON_DIR: I modified this similar TO VOD_DIR to location 'C:hrvideos', I am able to stream the videos using rtmp, but not abl eto stream with http.

          Please let me know  can we stream using http also as we need this to run f4m manifest file.

          http://121.123.35.34:8134/vod/hr/sample.mp4.

          http://121.123.35.34:8134/vod/hr/sample.f4m

         


Thanks,

Anjali

    This topic has been closed for replies.
    Correct answer ShivenK

    Hi Shiven,

    For rtmp: I tried mapping the network drive, but not able to access the video, it only shows buffering.

    For http:I tried this in the local system by pointing to C:\hrvideos.

    Modified the VOD_COMMON_DIR and HttpStreamingContentPath for hds-vod to C:\hrvideos , and tried to access  the path: http://121.123.35.34:8134/vod/test.mp4 . Checked the apache logs and found the error 'File doesn't exist'. It was looking for the files in the '../webroot/vod'. To resolve this I modifed the DocumentRoot field of the httpd config to 'C:\hrvideos' . Then I am able to stream the video using http.

    Please suggest if this is ok, or is there any harm in modifying the DocumentRoot field.


    Also suggest can we map the network drive(\\100.54.88.222\myvideos) to the DocumentRoot .

    Thanks & Regards,

    Anjali Rawat


    Hi,

    For RTMP: Try mapping to a different server.

    For HTTP: Yesy you can modify the DocumentRoot but then it will look for content in that folder for all types of requests and not just HDS VOD.

    To configure only HDS-VOD, set the HttpStreamingContentPath correctly:

    Change this HttpStreamingContentPath "../webroot/vod" to HttpStreamingContentPath "C:/hrvideos"

    Note that the location is now absolute and has forward slashes. Same way you can put in a network address.

    Thanks

    1 reply

    Inspiring
    June 1, 2012

    Hi,

    I think you have set the parameters correctly.

    Try removing /hr and I think the streams should play.

    Change this <Streams>/hr;${VOD_DIR2}</Streams> to <Streams>/;${VOD_DIR2}</Streams>

    And play through this: rtmp:// 121.123.35.34:1935/vod/test

    The reason being, that the player is not able to evaluate whether hr is the mapping or is a vod instance.

    For your other query on mapping a directory similarly for Http VOD. Yes you can do that.

    For that you have to change the HttpStreamingContentPath in the hds-vod section of your httpd.conf

    You can even set to a network address if you so desire.

    Thanks,

    Shiven



    rawataAuthor
    Participating Frequently
    June 4, 2012

    Hi Shiven,

    I followed the steps suggested by you:

    1) Changed the stream:

    <Streams>/hr;${VOD_DIR2}</Streams> to<Streams>/;${VOD_DIR2}</Streams>

    But not able to access the video with rtmp:// 121.123.35.34:1935/vod/test


    2) For http streaming, changes the HttpStreamingContentPath in hds-vod in the httpd config file, and tried to stream the video like:

    http:// 121.123.35.34:8134/vod/test.mp4 or

    http:// 121.123.35.34:8134/hds-vod/test.mp4

    But not able to load the video.

    Please suggest?

    Thanks & Regards,

    Anjali Rawat

    Inspiring
    June 4, 2012

    Hi,

    I tried it at my end and it works.Thats all the setting you need.

    Why dont you try mapping your network drive.

    For HDS, are you able to atleast download the files by hitting these links in the browser? If you are, then your mapping is correct/

    Also check your Apache logs.

    Thanks,

    Shiven