Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
kelvis2000
Level 7

S3/Cloudfront slow download

The download here seems to be even worse at night on my Roku (almost published) channel,
anyone have any ideas where I might change the Amazon configuration to improve download.
I used Handbrake to convert a m4v here to a mp4 so I also wonder if its the format that is the problem.

http://ds1g3wm5vt4h6.cloudfront.net/640SD/BoomBoom.mp4

http://ds1g3wm5vt4h6.cloudfront.net/640 ... hillun.mp4


Thanks
Kevin
0 Kudos
1 Reply
destruk
Level 10

Re: S3/Cloudfront slow download

It's a 2mb stream - performance/testing of cloudfront against competing cloud services in the USA give similar results (per https://media.amazonwebservices.com/FS_ ... dFront.pdf )
By default, cloudfront caches your content for 24 hours - to modify that you'll need to change the file headers for max-age -- the maximum allowed is 1 year.
Cloudfront might not be caching your file until after it has been requested once.
Cloudfront has a single endpoint, so changing the region your S3 bucket is in won't make any difference.

What you might do is create four or five separate streams for each piece of content, and use them all as 'adaptive bitrate streaming' - so those with fast connections get the highest quality file, and when the CDN slows down roku can change to a less demanding stream.
For adaptive streaming you could pick the bitrates listed in the encoding guide for SD content.
http://sdkdocs.roku.com/display/sdkdoc/ ... ndBitrates
0 Kudos