3 ms·
I have a few sites I use AWS Elastic Transcoder to upload the videos to S3 and put CloudFront in front of it. It works amazing. No ads. No third-party trackin
by throwaway2016a 4y ago
I have a few sites I use AWS Elastic Transcoder to upload the videos to S3 and put CloudFront in front of it.
It works amazing. No ads. No third-party tracking. BUT it is not the cheapest solution. I have one site where there is an auto-play 5 minute HD video on the homepage and it costs $70 a month for just that video. But that's an extreme case, other lower traffic videos are very low cost (< $0.10 / month).
Obviously my workflow is very AWS centric. You could also successfully replace Elastic Transcoder with something like FFMPEG if you are open to doing more work to automate.
Still, you may want to consider one of the services optimized for video as they tend to offer lower cost and have transcoding built in.
To all the people saying to use Nginx or similar: you can do that. I strongly recommend putting a CDN in front of it, though. Because with video buffering a small change in latency can have a big effect and the CDN will make sure the video is served from geographically close edges.
- giaour 4y ago> I have one site where there is an auto-play 5 minute HD video on the homepage and it costs $70 a month for just that video. Are you serving the whole video file to every visitor? You might want to try using Cloudfront’s streaming support if you’re not already using it: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/on-demand-video.html https://docs.aws.amazon.com/AmazonCloudFront/latest/Develope...
- throwaway2016a 4y agoI should have included more context. The average visitor downloads about half the video (based on the bandwidth usage stats). Unfortunately because of the nature of the page people tend to linger. That page gets a million+ hits a month and it's already using adaptive bitrate and resolution. Which the pipeline I mentioned can support. It's just a bad design IMO but I haven't been able to convince them to change it since the client believes (and may be right) that the video increases their sales enough per month to be worth it. It's all about your use case. If they were monetizing that video they would only need a penny per view to make a profit.