Skip to main content
Known Participant
December 31, 2012
Question

File location for .f4v files for Multi-Bitrate HDS/HLS VOD?

  • December 31, 2012
  • 1 reply
  • 1385 views

Questions about how to use Multi-Bitrate HDS/HLS VOD:

1. After completing a stream and using the f4vpp tool to flatten the .f4f stream files into a .f4v file for HDS/HLS VOD, where do I need to put the .f4v files on the FMS?

example I have flattened 3 files: sample_300kbps.f4v, sample_500kbps.f4v, sample_700kbps.f4v.

I put the .f4v, .f4m, and .m3u8 files in the 'FMS/webroot/vod' directory.

2. Do these manifest files look correct?

sample.f4m

<manifest xmlns="http://ns.adobe.com/f4m/2.0">

<media href="../hds-vod/sample_300kbps.f4v.f4m" bitrate="300"/>

<media href="../hds-vod/sample_500kbps.f4v.f4m" bitrate="500"/>

<media href="../hds-vod/sample_700kbps.f4v.f4m" bitrate="700"/>

</manifest>

sample.m3u8

#EXTM3U

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=300000

/hls-vod/sample_300kbps.f4v.m3u8

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=500000

/hls-vod/sample_500kbps.f4v.m3u8

#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000

/hls-vod/sample_700kbps.f4v.m3u8

4. I access the VOD stream using the following strobe media playback swf.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=10,0,0,0"

    width="512"

    height="384" align="middle">

    <param name="movie" value="StrobeMediaPlayback.swf"></param>

    <param name="FlashVars" value="http://FMS/vod/sample.f4m&autoPlay=true"></param>

    <param name="allowFullScreen" value="true"></param>

    <param name="allowscriptaccess" value="always"></param>

    <embed src="StrobeMediaPlayback.swf"

           type="application/x-shockwave-flash"

           allowscriptaccess="always"

           allowfullscreen="true"

           width="512"

           height="384"

           FlashVars="src=http://FMS/vod/sample.f4m&autoPlay=true">

    </embed>

</object>

5. The VOD stream plays fine but the Apache HTTPD.exe service maxs the CPU out to 100% and renders the server unusable. This happens with only a few connections accessing the various streams, not like a 100 or so people connecting and watching them.

I need to resolve this issue so our customers can watch archived streams on demand after the live stream is over.

Thanks for any help is resolving this problem with FMS 4.5.3

Dave

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    January 2, 2013

    1. Here you don't need to flatten the video.

    2. You can try enbling the mod_cache if on linux or add a proxy caching server infront. You can use apache for the same. Here is the guide on how to configure apache for caching http://httpd.apache.org/docs/2.2/caching.html

    You need to add following (if not already) in the httpd.conf

    LoadModule cache_module modules/mod_cache.so

    <IfModule mod_cache.c>

        LoadModule disk_cache_module modules/mod_disk_cache.so

        <IfModule mod_disk_cache.c>

            CacheEnable disk /hds-vod

            CacheEnable disk /hls-vod

            CacheRoot cacheroot

            CacheMaxFileSize 10000000

            CacheLock On

        </IfModule>

    </IfModule>