Results 1 to 3 of 3

Thread: MediaCache Configuration with AWS as <MediaCacheSource>

  1. #1
    Join Date
    Sep 2011
    Posts
    16

    Default MediaCache Configuration with AWS as <MediaCacheSource>

    Maybe someone here can come up with a good answer for me.

    Using:
    rtmp://myotherserver.com/mediacache
    mp4:mcache/wwmt/wwmt_weather.mp4

    This works fine (using my servers):
    Code:
                    <MediaCacheSource>
                            <Name>mcache</Name>
                            <BasePath>http://myserver.com:8080/video/</BasePath>
                            <Prefix>mcache/</Prefix>
                            ...
    Using the same:
    rtmp://myotherserver.com/mediacache
    mp4:mcache/wwmt/wwmt_weather.mp4

    This doesn't work:
    Code:
                    <MediaCacheSource>
                            <Name>mcache</Name>
                            <BasePath>http://mybucketname.s3.amazonaws.com/</BasePath>
                            <Prefix>mcache/</Prefix>
                            ...
    The balance of the <MediaCacheSource> node is the same for both.
    The videos are stored with the same folder structure in each place.
    A simple http request with wget from the wowza server this configuration is on to http://mybucketname.s3.amazonaws.com...mt_weather.mp4 retrieves the file fine, as does http://myserver.com:8080/video/wwmt/wwmt_weather.mp4.
    I've also tried http://s3.amazonaws.com/mybucketname...mt_weather.mp4 which pulls the file fine (and set <BasePath> to http://s3.amazonaws.com/mybucketname/, which still does not work )

    The end goal is that if myserver.com goes down I can switch to using aws s3 as my storage server without modifying the players, just the MediaCache.xml and restart wowza.

    Thanks in advance!
    Mike
    Last edited by Snapster; 07-11-2012 at 09:04 AM.

  2. #2
    Join Date
    Sep 2011
    Posts
    16

    Default

    Any help?

  3. #3
    Join Date
    Dec 2007
    Posts
    25,681

    Default

    Take a look at (below) the MediaCacheSource from an EC2 instance that enables the "vods3" application.

    Code:
    <MediaCacheSource>
                            <Name>amazons3</Name>
                            <BasePath>http://s3.amazonaws.com/</BasePath>
                            <Prefix>amazons3/</Prefix>
                            <BaseClass>com.wowza.wms.plugin.mediacache.impl.MediaCacheItemHTTPImpl</BaseClass>
                            <ReaderClass></ReaderClass>
                            <DefaultBlockSize>262144</DefaultBlockSize>
                            <MaxTimeToLive>1200000</MaxTimeToLive>
                            <MinTimeToLive>600000</MinTimeToLive>
                            <ReadAhead>true</ReadAhead>
                            <ReadAheadThreshold>50</ReadAheadThreshold>
                            <IsPassThru>false</IsPassThru>
                            <Properties>
                                    <Property>
                                            <Name>maxPoolSize</Name>
                                            <Value>25</Value>
                                            <Type>Integer</Type>
                                    </Property>
                                    <Property>
                                            <Name>httpReadTimeout</Name>
                                            <Value>6000</Value>
                                            <Type>Integer</Type>
                                    </Property>
                                    <Property>
                                            <Name>httpConnectionTimeout</Name>
                                            <Value>6000</Value>
                                            <Type>Integer</Type>
                                    </Property>
                                    <Property>
                                            <Name>httpReadRetries</Name>
                                            <Value>3</Value>
                                            <Type>Integer</Type>
                                    </Property>
                                    <Property>
                                            <Name>httpSendBufferSize</Name>
                                            <Value>8000</Value>
                                            <Type>Integer</Type>
                                    </Property>
                                    <Property>
                                            <Name>httpReceiveBufferSize</Name>
                                            <Value>65000</Value>
                                            <Type>Integer</Type>
                                    </Property>
                                    <Property>
                                            <Name>isAmazonS3</Name>
                                            <Value>true</Value>
                                            <Type>Boolean</Type>
                                    </Property>
                                    <Property>
                                            <Name>s3BucketNameInDomain</Name>
                                            <Value>true</Value>
                                            <Type>Boolean</Type>
                                    </Property>
                                    <!-- Uncomment and set properties if streaming from S3 authenticated -->
                                    <!--
                                    <Property>
                                            <Name>awsAccessKeyId</Name>
                                            <Value></Value>
                                    </Property>
                                    <Property>
                                            <Name>awsSecretAccessKey</Name>
                                            <Value></Value>
                                    </Property>
                                    -->
                            </Properties>
                    </MediaCacheSource>
    Richard

Posting Permissions

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