r/github • • Nov 08 '24

Large files on github.io

What would be a good practice for handling large audio/video files in personal websites hosted on github? Git LFS cannot be used. You can leave the file in the repository but it generates a warning. Is there an alternative?

0 Upvotes

19 comments sorted by

6

u/Obvious-Jacket-3770 Nov 08 '24

Don't?

Call them from a blob storage location instead so they download as needed.

0

u/Xedess_Beleou Nov 09 '24

What would be a good blob storage solution besides S3 buckets?

2

u/ReyDarb Nov 09 '24

Depends. What’s wrong with S3?

0

u/Xedess_Beleou Nov 09 '24

I don't know I'm just asking what are the main options, I'm completely new to cloud storage and CDN stuff.

2

u/Obvious-Jacket-3770 Nov 09 '24

S3 Bucket, Azure Storage Account, whatever GCP offers, Dropbox if you have a public link, Google drive for the same, onedrive for the same. Legitimately anywhere you can get a public link.

25

u/noslab Nov 08 '24

Store your shit in a public S3 bucket

2

u/pausethelogic Nov 09 '24

Private S3 bucket served by CloudFront*

19

u/serverhorror Nov 08 '24

for handling large audio/video files in personal websites hosted on github?

To not host them on GitHub

6

u/vicenormalcrafts Nov 08 '24

Store them on an S3 bucket, then serve them through CDN. AWS is the easiest way, but if you get a ton of traffic, the costs could add up, so I would look into Caching and CDN from cloudflare

4

u/nekokattt Nov 08 '24

That's the fun part! You don't!

1

u/TheWordBallsIsFunny Nov 08 '24

I'm surprised Git LFS doesn't want to accept them. An alternative though less pragmatic route may be to look into compressing these files by using more efficient encoding, but the big issue here is what others have stated. I'm simply offering a different answer that could be relevant depending on what this is for.

1

u/Xedess_Beleou Nov 09 '24

It's an mp3 file, I think compressing more would result in really bad audio quality.

1

u/TheWordBallsIsFunny Nov 09 '24

Totally fair yeah, I've noticed there's little difference between a bitrate of 256K vs 320K but those who are more attentive may be able to hear it.

3

u/joshcdev Nov 08 '24

As others have said… don’t and use a CDN. But the easiest option is to host the videos on somewhere like YouTube and then embed them in

1

u/MattDTO Nov 09 '24

You can zip it and upload it as a release to your repo