Skip to main content
Known Participant
April 6, 2010
Question

How to change a default media folder location

  • April 6, 2010
  • 1 reply
  • 921 views

Hi All,

I need to change the default location of VOD media files from /opt/adobe/fms/applications/vod/media.

what I did:

1. Created a dir test under default "media" dir
2. Placed my f4v files inside "test" dir
3. Modified applications.xml as follows:

<Application>

<StreamManager>

<VirtualDirectory>

      <!-- Specifies application specific virtual directory mapping for recorded streams.   -->

<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
<Streams>/;<FMS Installed Directory>\applications\vod\media\test</Streams>
</VirtualDirectory>

4. Used the following smil file

<smil>
    <head>
        <meta base="rtmp:/vod/" />
    </head>
    <body>
<switch>
  <video src="mp4:file_1_300.f4v" system-bitrate="300000"/>
  <video src="mp4:file_1_500.f4v" system-bitrate="500000"/>
  <video src="mp4:file_1_700.f4v" system-bitrate="700000"/>
  <video src="mp4:filel_1_1000.f4v" system-bitrate="1000000"/>
  <video src="mp4:file_1_1500.f4v" system-bitrate="1500000"/>
        </switch>
    </body>
</smil>

It doesn't work. it works only, if I place f4v files inside "media" dir directly.

What am I missing here?

Thanks

    This topic has been closed for replies.

    1 reply

    calmchessplayer
    Inspiring
    April 6, 2010

    you need to setup virtual directories in application.xml looks like this

    <!-- This section specifies virtual directory mappings for file      -->
      <!-- objects in the script. By using virtual directories, you can    -->
      <!-- specify file directories for different applications. If the     -->
      <!-- beginning portion of a file path matches the virtual directory  -->
      <!-- that is specified, then the storage location of the file maps   -->
      <!-- to the location specified by the virtual directory mapping. To  -->
      <!-- specify a virtual directory mapping, you first specify the      -->
      <!-- virtual directory, followed by a semi-colon, followed by the    -->
      <!-- actual file location. <virtual dir>;<actual dir>                -->
      <FileObject>
       <!--
       <VirtualDirectory>/flashapps;C:\dev\Code\Flash\tincan\flashapps\</VirtualDirect ory>
       -->
      </FileObject>

    andyG928Author
    Known Participant
    April 6, 2010

    It doesn't work that way.... I am getting a lot of contradicting advices (ex. http://forums.adobe.com/thread/607805?tstart=0), but cannot make it work so far. Are there any docs describing how to set up virtual dirs in details with a right syntax?

    andyG928Author
    Known Participant
    April 6, 2010

    Adobe FMS help (http://help.adobe.com/en_US/FlashMediaServer/3.5_AdminGuide/WS5b3ccc516d4fbf351e63e3d119f2925e64-7fc7.html) shows the same syntax of Application.xml as I have been using. What is wrong with my file?

    Thanks