Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: MediaCache, Adaptive Streaming, AWS S3

  1. #1
    Join Date
    Jan 2010
    Posts
    5

    Default MediaCache, Adaptive Streaming, AWS S3

    I've setup MediaCache on a dedicated linux box to stream vod content from Amazon S3 through Wozwa 3. Let's say I have a S3 Bucket: s3.example.com and MediaCacheSource configured with prefix "s3":

    <MediaCacheSource>
    <Name>http</Name>
    <BasePath>http://s3.example.com.s3.amazonaws.com/</BasePath>
    <Prefix>s3/</Prefix>
    </MediaCacheSource>

    and an application named "vod".

    Playing mp4 files stored in this bucket with Strobe Media Playback and other Flash players works fine. If I create the f4m manifest files manually, RTMP based Dynamic streaming works as expected as well.

    Unfortunately I am having problems getting SMIL files stored on S3 to work. As I've read in other posts, it should be simple as putting the SMIL files in the same folder as the media files and point to them with a relative path.

    So I have a sample SMIL file named test.smil and two mp4 files stored on S3, all in the same folder:

    <smil>
    <head>
    </head>
    <body>
    <switch>
    <video src="mp4:1f5ad10cd0bc1cab.mp4" system-bitrate="700000"/>
    <video src="mp4:454999969cc973a9.mp4" system-bitrate="200000"/>
    </switch>
    </body>
    </smil>

    Now I am not sure how to reference the SMIL file, for example in Strobe Media Playback with SMIL_PLUGIN activated:

    * http://{streaming-server}:1935/vod/_definst_/smil:s3/test.smil/manifest.f4m
    * http://{streaming-server}:1935/vod/_definst_/s3/test.smil/manifest.f4m

    * http://{streaming-server}:1935/vod/smil:s3/test.smil/manifest.f4m
    * http://{streaming-server}:1935/vod/s3/smil:test.smil/manifest.f4m

    Neither one works. Same for m3u8 playlists. Depending on which URL I try, I get one of the following errors:

    HTTPStreamerCupertinoIndexPlaylist.indexFile[vod/_definst_/smil:/test.smil]: MediaList is empty.

    or

    WARN server comment 2012-05-20 12:35:59 - - - - - 124.148 - - - - - - - - LiveMediaStreamReceiver.connect: failure
    WARN server comment 2012-05-20 12:36:07 - - - - - 132.196 - - - - - - - - HTTPStreamerAdapterCupertinoStreamer.service: Request timeout: 8000

    In first case, wowza responds with an empty media list. Seems like the <media url…> stuff is missing...

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns="http://ns.adobe.com/f4m/1.0">
    <id>test.smil</id>
    <mimeType>video/mp4</mimeType>
    <streamType>live</streamType>
    <deliveryType>streaming</deliveryType>
    </manifest>

    Any hints? Could you please help me to investigate this problem? I'd be really happy to get this solved.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Is the bucket or item have limiited ACL access? You have to add AWS keys to /conf/MediaCache.xml. Then restart. Or give change the bucket permission to Everyone = read

    Richard

  3. #3
    Join Date
    Jan 2010
    Posts
    5

    Default

    Quote Originally Posted by rrlanham View Post
    Is the bucket or item have limiited ACL access? You have to add AWS keys to /conf/MediaCache.xml. Then restart. Or give change the bucket permission to Everyone = read

    Richard
    Thanks, Richard. All items in bucket are public. AWS Keys are set correctly. Streaming video files from S3 through Media Cache is working. Just having issues working with SMIL files. It works if I create the f4m manifest files from within my web app. I can live with that for RTMP dynamic streaming… In order to avoid additional encoding jobs I'd really like to use Wowza for adaptive streaming on mobile devices (m3u8) as well.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Hm, what is the smil plugin? I have not needed to use that to playback using a Wowza .smil file and the Flash Media Playback player. Just follow this guide:
    http://www.wowza.com/forums/content....h-Wowza-Server

    Note at bottom:
    Flash HTTP (Sanjose) Streaming

    This player can also play Flash HTTP (Sanjose) streams. Check the box labeled "In the Flash Media Playback configurator, you have to check "Are you using HTTP Streaming or Flash Access 2.0?". Then enter a URL like:
    http://[wowza-ip-address]:1935/vod/smil:sample.smil/manifest.f4m
    The correct URL for you is:
    http://{streaming-server}:1935/vod/_definst_/smil:s3/test.smil/manifest.f4m
    Richard

  5. #5
    Join Date
    Jan 2010
    Posts
    5

    Default

    Thanks again for your advice, Richard. Actually I haven't investigated the source for the smil plugin, yet: http://sourceforge.net/apps/mediawiki/osmf.adobe/index.php?title=SMIL_Support

    Unfortunately, I am still having no luck. Wowza responds with an empty media list. I'll further investigate my setup on another freshly installed self-hosted linux box plus an EC2 instance.

    Update

    Well, everything works fine on an EC2 instance. No smill_plugin needed for Strobe Media Playback. Works on my dedicated linux boxes as well: Just copied the Application.xml and MediaCache.xml settings from EC2 and tweaked according to my needs. Seems like I made a mistake while setting up MediaCache in the first step. Just wondering why it worked for mp4 files but not smill…

    Thank you very much for your patience and fast support!
    Last edited by phaex7; 05-21-2012 at 05:46 AM.

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Great! Thanks for the update

    Richard

  7. #7
    Join Date
    Feb 2011
    Posts
    10

    Default

    I am having a similar issue. I have successfully streamed from ec2/s3 using the default vods3 application. Now I am trying to use a smil file for HLS, however the server error log says:

    WARN	server	comment	2013-04-04	06:43:04	-	-	-	-	-	25.363	-	-	-	-	-	-	-	-	MediaCacheItemHTTPImpl.getItemInfo[our-vod.s3.amazonaws.com/stream.smil]: HTTP response: 307
    WARN	server	comment	2013-04-04	06:43:04	-	-	-	-	-	25.364	-	-	-	-	-	-	-	-	MediaCacheItemBase.init: Item does not exist: amazons3/our-vod/stream.smil
    WARN	server	comment	2013-04-04	06:43:04	-	-	-	-	-	25.364	-	-	-	-	-	-	-	amazons3/our-vod/stream.smiopen: java.io.IOException: MediaCacheRandomAccessReader.open: Item not in cache: amazons3/our-vod/stream.smil
    WARN	server	comment	2013-04-04	06:43:04	-	-	-	-	-	25.365	-	-	-	-	-	-	-	-	HTTPStreamerCupertinoIndexPlaylist.indexFile[vods3/_definst_/smil:amazons3/our-vod/stream.smil]: MediaList is empty.
    Yes, I have quadruple-checked the permissions for the bucket and the smil file and its all public. What else could it be?

    The smil file lives in a bucket called 'our-vod'. Along side the smil file in the 'our-vod' bucket are 3 folders: '1mb', '700kb', '300kb'. This is what the smil looks like:

    <smil>
        <head>
        </head>
        <body>
            <switch>
                <video src="mp4:1mb/AU064593-M.mp4" system-bitrate="1000000"/>
                <video src="mp4:700kb/AU064593-M.mp4" system-bitrate="700000"/>
                <video src="mp4:300kb/AU064593-M.mp4" system-bitrate="300000"/>
            </switch>
        </body>
    </smil>
    Any help would be appreciated. Thanks in advance.

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Are you using "smil:" prefix? Show the names ou are using for the smil and for one of the working .mp4 files

    Richard

  9. #9
    Join Date
    Feb 2011
    Posts
    10

    Default

    Is this what you mean?

    The smil file is called 'stream.smil' and is publicly accessable here: https://s3-ap-southeast-2.amazonaws....od/stream.smil

    The video file is called 'AU064593-M.mp4' and there is a copy (encoded accordingly) in each of the folders '1mb', '700kb', '300kb'.

    Here is one of the video files publicly accessible: https://s3-ap-southeast-2.amazonaws....AU064593-M.mp4

    This is the link construction:

    http://ec2-54-252-81-153.ap-southeas.../playlist.m3u8
    Last edited by mattbodman; 04-04-2013 at 04:49 PM.

  10. #10

    Default

    The problem is the bucket is responding with a 307

    WARN server comment 2013-04-04 06:43:04 - - - - - 25.363 - - - - - - - - MediaCacheItemHTTPImpl.getItemInfo[our-vod.s3.amazonaws.com/stream.smil]: HTTP response: 307

    and this will not work with MediaCache.

    Andrew.

Page 1 of 2 12 LastLast

Similar Threads

  1. Store live streaming content in AWS S3 and stream with AWS Cloudfront
    By droidlabour in forum Wowza Media Server 3 for Amazon EC2 Discussion
    Replies: 1
    Last Post: 08-21-2013, 03:45 PM
  2. MediaCache Configuration with AWS as <MediaCacheSource>
    By Snapster in forum AddOn: Other AddOns
    Replies: 2
    Last Post: 08-01-2012, 08:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •