by Apreche · 4y ago · 0 comments
The most basic pipeline for doing it is going to look something like this:
1) Upload the original video to a storage bucket.
2) Have some compute service transcode the video file to create other renditions.
3) Store those renditions in a different storage bucket.
4) Put a CDN service in front of the transcoded renditions.
Get ready for a nice bandwidth bill if anyone actually watches your videos!
Streaming a library of 500 GB of HD videos over the course of one month with approximately 72,000 minutes of viewing time to a global market.
Total cost: $78.00/month
[0] https://www.cloudflare.com/en-gb/products/cloudflare-stream
Translate Bunny’s pricing <https://bunny.net/stream/> to these numbers: $1/200GB delivered (assuming the volume network—the standard network is 2–12× the price, but I would not expect it to be justified) plus $5/500GB/month stored, and transcoding is included in those rates.
Bunny is cheaper to deliver below 26⅔ Mbps, and cheaper to store where the sum of all transcoded forms is below 66⅔ Mbps. This will almost always be cheaper, normally much cheaper. It depends on the content, but your 1080p60 video is almost always under 10Mbps, probably under 5Mbps, not uncommonly well under 2Mbps. Your bill with Bunny will probably be less than a third of your bill with Cloudflare, and for typically more static sorts of content (e.g. programming tutorials), probably less than a tenth.
(I am presuming the products are roughly equivalent. This may or may not be true. I have used neither.)
I should also mention that Cloudflare’s sample pricing uses grossly unrealistic rates: they translate “500 GB of HD videos” into “1,200 minutes of video content”, which means 55 5⁄9 Mbps. “HD” tends to mean 1080p these days, though it does still get used for 720p too. (Some label 1440p and 2160p/4K as HD too, but I’d say they’re beyond it.) I accuse Cloudflare of using a rate that’s around four times too high. They don’t go into detail on their “typical public cloud provider” costs so I don’t know how realistic the rest is, but given how they’ve started with something that makes them look implausibly cheap, I’m not impressed.
But yeah, "marketing driven" price
Where does it say this? I can't find it.
> Streaming a library of 500 GB of HD videos over the course of one month with approximately 72,000 minutes of viewing time to a global market.
> Storage: $6.00 - Storage costs are based on 1,200 minutes of video content at $5 per 1,000 minutes stored.
This 100%
I looked into it before and understandably, the badnwidth you can be using up for a relatively small amount of videos is always going to be pretty expensive. It is also not always easy to know in-advance, and do you want to suddenly get a 10x bill or have to cut-off your users when it gets expensive?
If you can afford to charge, then obviously it's different, otherwise YouTube's annoying advertising is paying for you...
2) Why? There are plenty of blogs walking you through how to use FFMPEG to generate multibitrate HLS packages. I get faster than realtime encoding making 5 different bitrates.
2->1) Now you're only storing the highly compressed versions instead of the original (at whatever compression chosen for that)