3
submitted 1 year ago by sdekna@alien.top to c/main@selfhosted.forum

I am thinking of building a media-sharing platform... Big part of the platform will be storing/playing media, so wanted to ask if there are any open source solutions any of you can think of that I can use for this, or to kick start me in some direction.

Thanks.

you are viewing a single comment's thread
view the rest of the comments
[-] noodleswind@alien.top 1 points 1 year ago

It exists: https://github.com/mediacms-io/mediacms

Also, I am building one. Demo available at https://subatic.com

I developed a pipeline to create slow/fast gif, seeking thumbnail and transcode to various resolutions.

Also I sorted out u/NikStalwart concern using cloudflare R2.

Math below.

It costs $0.36 to serve a million files, regardless of size.

An average of 3 sec hls segment, so I can serve 3 million seconds (833.33 hours) for 0.36$.

1$ = ~ 2316 hours.

Average video is 10 minutes give or take.

So, 14,000 streams of a a video for 1$ or 72$ for a million streams.

and the pricing can be reduced by increasing hls segment post first minute of video since initial buffering needs to be quick. I have done the math for that as well, it all comes down to ~10$ for a million views.

[-] sdekna@alien.top 1 points 1 year ago

what you did here my friend is called epic! 😎 loads of thanks!

[-] NikStalwart@alien.top 1 points 1 year ago

Are there any TOS considerations for using R2 instead of Cloudflare's Stream platform?

[-] noodleswind@alien.top 1 points 1 year ago

the above calculation is with hls segments, but if you go the simple route and create mp4 videos, the cost to serve a million views can come down to 0.36$.

load more comments (-1 replies)
this post was submitted on 25 Oct 2023
3 points (100.0% liked)

Self-Hosted Main

504 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS