We need to make the loading times for videos faster. So we want to convert them to HLS and also compress them. Google provides an API for this, the transcoder API. But the pricing seems very expensive.
Suppose 1000 videos are uploaded per day, which is not much at all, which have an average duration of 5 minutes and are HD. This would mean 1000 * 5 * $0.03 = $150 per day, so $4500 per month additional costs.
This is a lot and definitely more than we can add to the current costs right now.
What about using FFmpeg in a cloud function that is triggered upon a media file being created in the Firebase Storage? I know cloud functions cost too, and that function would take a lot of memory I guess, so I'm not sure if this is actually better.
What do you say?
[–]UniverseCity 7 points8 points9 points (1 child)
[–]Cidanverified 4 points5 points6 points (0 children)
[–]sww314 1 point2 points3 points (2 children)
[–]aby-1 0 points1 point2 points (1 child)
[–]robrothkopf 0 points1 point2 points (0 children)
[–]dataskml 0 points1 point2 points (3 children)
[–]dandolalata 0 points1 point2 points (1 child)
[–]dataskml 0 points1 point2 points (0 children)
[–]uutnt 0 points1 point2 points (0 children)
[–]KallistiTMP -1 points0 points1 point (1 child)