Results 1 to 3 of 3

Thread: Cannot play video from S3

  1. #1
    Join Date
    Dec 2015

    Question Cannot play video from S3


    I am trying to do a simple POC for playing videos stored in S3 using a Wowza instance running on EC2.

    I created an S3 bucket and uploaded a video. Then I launched an "Wowza Streaming Engine 4: BYOL Pro Edition (HVM)" instance that includes the vods3 application which is configured to play from S3.

    But when I try to play the video (using flv:amazons3/<bucket name>/path/to/test.flv), it fails.

    Looking at the Wowza logs, I see that when Wowza tries to access the resource in S3 using a URL of type <bucket name>, it gets a 307 response code which tries to redirect it to another S3 endpoint (<bucket-name> Wowza does not follow this redirect but treats it as an error.

    When trying the Wowza example S3 video (mp4:amazons3/wowzamediacache/sample/sample.mp4), it works fine. And indeed when I try to access this resource using, I get the resource rather than a 307 response.

    What am I missing here?


  2. #2
    Join Date
    Dec 2015


    With the help of Wowza support, I figured it out.

    S3 requires its clients to support redirects when accessing content stored in it. This is because the generic S3 URLs (starting with might hit any instance of S3 and may be redirected to the one that contains the required content. It seems like Wozwa does not handle the redirects automatically, because when looking at the logs I see the redirect replies (307, 301) are considered errors. i'm still waiting for a formal approval from Wowza, but I believe this is a bug.

    Luckily, S3 supports more explicit URLs, that look like this: So if you know the region that contains the content, using this URL you will never get a redirect. To make Wowza use these URLs, you can define a unique MediaCacheSource per region (in /usr/local/WowzaStreamingEngine/conf/MediaCache.xml, if you're running on Linux). Each region could have a MediaCacheSource with a unique name, for example amazons3-region-name. The region-specific MediaCacheSource is identical to the original amazons3 MediaCacheSource, only with a different BasePath - the one matching the specific region.

    Then, you can access the video using a stream name that relates to the specific MediaCacheSource, for example flv:amazons3-region-name/<bucket name>/path/to/test.flv.

  3. #3


    Thanks for the update and for sharing your findings with the community.



Similar Threads

  1. IOS cannot play video only without audio
    By arpan_synapse in forum General Forum
    Replies: 1
    Last Post: 09-26-2013, 05:19 PM
  2. Nokia Devices and Blacberry cannot play Live stream but Andriod and Iphone can play
    By ravish in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 09-11-2012, 06:53 AM
  3. H.263(Video)+Nellymoser(Audio) cannot play on demand with rtsp,but can play with rtmp
    By sallyliu in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 12-15-2011, 06:01 AM
  4. Cannot play live recorded video
    By marlonyao in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 11-23-2011, 01:54 PM

Posting Permissions

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