Skip to main content
Known Participant
March 31, 2010
Resuelto

Directory tree under media folder - is it possible

  • March 31, 2010
  • 5 respuestas
  • 1012 visualizaciones

Hi All,

I am using SMIL file for managing f4v files:

<smil>
    <head>
        <meta base="rtmp:/vod/" />
    </head>
    <body>
<switch>
  <video src="mp4:intro_300.f4v" system-bitrate="300000"/>
  <video src="mp4:intro_500.f4v" system-bitrate="500000"/>
  <video src="mp4:intro_700.f4v" system-bitrate="700000"/>
  <video src="mp4:intro_1000.f4v" system-bitrate="1000000"/>
  <video src="mp4:intro_1500.f4v" system-bitrate="1500000"/>
        </switch>
    </body>
</smil>

It works fine, as long as I keep all f4v files under vod/media/ default folder. I need to organize somehow a structure of my media as it is over 400 files. How can i do this? I tried:

1) creating directories under vod, i.e. vod/test1 with  <meta base="rtmp:/vod/test1/" /> and placing f4v files directly in test1

2) the same as above but placing f4v files under vod/test1/media/

it doesn't work. is there a way of placing individual f4v files into different directories under vod/ root?

Please, advise.

thanks

Andy

    Este tema ha sido cerrado para respuestas.
    Mejor respuesta de SE_0208

    Instead of doing all those combinations, keep you .smil file as it.

    Place your media files wherever you want them to be and just configure all those locations in Application.xml of your VOD application.

    Say for example you want to have media files in "test1" and "test2" folder under media folder of VOD, you can do following, Open Application.xml and do following changes

    <Streams>/;<FMS Installed Directory>\applications\vod\media\test1</Streams>

    <Streams>/;<FMS Installed Directory>\applications\vod\media\test2</Streams>

    So your Application.xml would look like this:

    <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\test1</Streams>

    <Streams>/;<FMS Installed Directory>\applications\vod\media\test2</Streams>

    </VirtualDirectory>

    So no need to change your .smil file , you can get it working it this way.

    5 respuestas

    SE_0208Respuesta
    Participating Frequently
    March 31, 2010

    Instead of doing all those combinations, keep you .smil file as it.

    Place your media files wherever you want them to be and just configure all those locations in Application.xml of your VOD application.

    Say for example you want to have media files in "test1" and "test2" folder under media folder of VOD, you can do following, Open Application.xml and do following changes

    <Streams>/;<FMS Installed Directory>\applications\vod\media\test1</Streams>

    <Streams>/;<FMS Installed Directory>\applications\vod\media\test2</Streams>

    So your Application.xml would look like this:

    <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\test1</Streams>

    <Streams>/;<FMS Installed Directory>\applications\vod\media\test2</Streams>

    </VirtualDirectory>

    So no need to change your .smil file , you can get it working it this way.

    Known Participant
    April 1, 2010

    Thank you. Let me test this...

    Known Participant
    April 6, 2010

    It doesn't work. Probably there are some more settings we are missing here