Chicago Fanatics Message Board
https://mail.chicagofanatics.com/

Creating a Cloud Based distribution of video (no, not porn)
https://mail.chicagofanatics.com/viewtopic.php?f=47&t=130063
Page 1 of 1

Author:  OscarTangoEcho [ Fri Jun 16, 2023 1:49 am ]
Post subject:  Creating a Cloud Based distribution of video (no, not p.o.rn)

How would one go about it? I am completely naive about this stuff...

kinda looking to figure out the costs for dedicated servers (?) if that is what I would need...that could house large amounts (such as 1K-10K total) of 1 minute videos that are full HD resolutions, perhaps several versions of both 720 and 1080, maybe even 4K...

searchable via a cloud database (perhaps a completely different issue)...and which could then be easily downloaded, (for whatever it would cost)...

So Chop, Chop, lets get at it


:alien: :drunken: :roll: :lol:

Look, I am clearly in over my already short head, so any advice about where to start would be greatly appreciated :)

Author:  Hussra [ Fri Jun 16, 2023 7:28 am ]
Post subject:  Re: Creating a Cloud Based distribution of video (no, not po

probably uploading them to an AWS s3 bucket and then throwing up a React/Vue Material UI web interface for searching/retrieving/playing/downloading.

Image


AWS s3 bucket to host / store the video files (relatively easy and way more inexpensive to generate different resolutions on upload and store all of them, rather than re-encode on demand)

CloudFront is optional--it pushes your media files out to the "edge" across Amazon's vast network and therefore closer to your end users...with the associated benefits.

if you wanna go even cheaper, instead of using CloudFront and what's likely Amazon's managed ECS for the front-end, put the front-end UI app on an EC2 instance (use a "spot" ec2 instance to get mad cheap) and you get free transfers between s3 and ec2 on AWS and then the only recurring charge would be the bandwidth as users viewed / downloaded the videos as they hit your web UI on the EC2 instance.


There are commercial services that do all of this for you; they all use some version of the above infrastructure and building it yourself on AWS is anywhere from 10x to 20x less expensive than paying pcloud or sync or Publitio or whomever.

If the idea of using AWS is intimidating, Digital Ocean's a competing cloud provider that offers services that replicate AWS's at similar or even cheaper prices (esp initially):

https://www.digitalocean.com/products/spaces

https://reelnreel.com/building-own-vide ... italocean/

And Digital Ocean's tutorials tend to be the easiest for a newbie to grok. When I started fucking with the cloud several years back, I'd often use DO's tutorials for kubernetes / docker etc even tho I was deploying to AWS. It's all the same between AWS and DO, just DO isn't necessarily a place you'd host a commercial business. Not that people don't but if you're gonna scale, you'll end up on AWS.

Notice DO makes a big deal about how their stuff is compatible with AWS. They're aware people are coming to them as a first ever cloud deployment learning experience (which they specialize in and are the best to use when first learning, saves money and they keep it simple) but eventually going to jump to AWS.

Author:  good dolphin [ Fri Jun 16, 2023 8:02 am ]
Post subject:  Re: Creating a Cloud Based distribution of video (no, not po

you should do all that and also have porn

Author:  Brick [ Fri Jun 16, 2023 8:08 am ]
Post subject:  Re: Creating a Cloud Based distribution of video (no, not po

OscarTangoEcho wrote:
How would one go about it? I am completely naive about this stuff...

kinda looking to figure out the costs for dedicated servers (?) if that is what I would need...that could house large amounts (such as 1K-10K total) of 1 minute videos that are full HD resolutions, perhaps several versions of both 720 and 1080, maybe even 4K...

searchable via a cloud database (perhaps a completely different issue)...and which could then be easily downloaded, (for whatever it would cost)...

So Chop, Chop, lets get at it


:alien: :drunken: :roll: :lol:

Look, I am clearly in over my already short head, so any advice about where to start would be greatly appreciated :)
Hussra covered a lot. I'll still to the pricing. I do Azure stuff but AWS is similar. Basically, it's expensive.
https://docs.aws.amazon.com/solutions/latest/video-on-demand-on-aws-foundation/cost.html

Most of the cost is not storage but the amount of users who are getting the content and how big that file is. 480p will be much cheaper than 1080p and 4k just isn't going to be an option unless you can sell a premium plan to your users to make up the huge increase in streaming costs. That's why Netflix and others charge you extra for 4k.

So step 1 is to figure out how many users you will have. Step 2 is to figure out how big the video you have is per minute. Basically, you take (Users) x (Size per second) x (Expected watch length) x .085 to get your expected cost.

If you don't want to try and figure out your individual situation, you can also calculate it this way using these general stats.
https://www.uscreen.tv/blog/video-storage-solutions/
720p: 900 mb an hour(15 mb per minute)
1080p: 1.4 gb an hour(23.5 mb per minute)
4k: 22 gb an hour(366 mb per minute)

Author:  a retard [ Fri Jun 16, 2023 11:49 am ]
Post subject:  Re: Creating a Cloud Based distribution of video (no, not po

:lol: Just like our IT dept. Someone asks for help and includes a disclaimer they are naïve but still get a response loaded with jargon and alphabet soup.

OscarTangoEcho wrote:
How would one go about it? I am completely naive about this stuff...


Hussra wrote:
probably uploading them to an AWS s3 bucket and then throwing up a React/Vue Material UI web interface for searching/retrieving/playing/downloading.

AWS s3 bucket to host / store the video files (relatively easy and way more inexpensive to generate different resolutions on upload and store all of them, rather than re-encode on demand)

CloudFront is optional--it pushes your media files out to the "edge" across Amazon's vast network and therefore closer to your end users...with the associated benefits.

if you wanna go even cheaper, instead of using CloudFront and what's likely Amazon's managed ECS for the front-end, put the front-end UI app on an EC2 instance (use a "spot" ec2 instance to get mad cheap) and you get free transfers between s3 and ec2 on AWS and then the only recurring charge would be the bandwidth as users viewed / downloaded the videos as they hit your web UI on the EC2 instance.


There are commercial services that do all of this for you; they all use some version of the above infrastructure and building it yourself on AWS is anywhere from 10x to 20x less expensive than paying pcloud or sync or Publitio or whomever.

If the idea of using AWS is intimidating, Digital Ocean's a competing cloud provider that offers services that replicate AWS's at similar or even cheaper prices (esp initially):

https://www.digitalocean.com/products/spaces

https://reelnreel.com/building-own-vide ... italocean/

And Digital Ocean's tutorials tend to be the easiest for a newbie to grok. When I started fucking with the cloud several years back, I'd often use DO's tutorials for kubernetes / docker etc even tho I was deploying to AWS. It's all the same between AWS and DO, just DO isn't necessarily a place you'd host a commercial business. Not that people don't but if you're gonna scale, you'll end up on AWS.

Notice DO makes a big deal about how their stuff is compatible with AWS. They're aware people are coming to them as a first ever cloud deployment learning experience (which they specialize in and are the best to use when first learning, saves money and they keep it simple) but eventually going to jump to AWS.

Author:  IkeSouth [ Fri Jun 16, 2023 12:24 pm ]
Post subject:  Re: Creating a Cloud Based distribution of video (no, not po

Don't use nextcloud to do this, that is certain.

Page 1 of 1 All times are UTC - 6 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/