this post was submitted on 01 Aug 2023
7 points (100.0% liked)

Self Hosted - Self-hosting your services.

10907 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.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

Is there a good way to share video files with only access to a static file store?

I don't want to run a transcoding server (transcoding on upload is fine), and want to keep it simple.

Thanks!

edit: I'm mostly looking to allow people to view the file in the browser rather than download, so some kind of adaptive bitrate solution would be ideal. I posted a comment below, but MPEG-DASH/dash.js looks like it might fit the bill.

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 11 months ago

It's worth mentioning that my primary use-case is for lemmy posts. I currently see a lot of people linking to streamable.com, but I'm not interested in using that service.

[–] [email protected] 2 points 11 months ago (1 children)

whenever i needed to do that i just rsync'd mp4 files to a static server and posted a link. not entirely sure what extras you'd need.

[–] [email protected] 1 points 11 months ago (1 children)

What about if you want to serve adaptive bitrate content (eg. 4k on a fast connection and 720p on a slower one). The best solution I've run across so far (posted in another comment) is encoding locally to MPEG-DASH and using dash.js from the browser to let people view the file.

I guess this has some issues if users want to download it, but I'm really just looking for a quick way to view it in the browser.

It also looks like MPEG-DASH isn't supported by iPhones yet, but everyone else supports it (and MSE might be supported in iOS 17, rounding out browser support).

[–] [email protected] 3 points 11 months ago (1 children)

fair enough. the files i upload tend to be pretty small (<25-30 MBs) so i haven't needed to think about details like dash. there are a few projects like https://github.com/ShaneIsrael/fireshare and https://github.com/Hubro/clipface i could find with a quick search but none of them try to do anything adaptive (unless you go for a full blown solution such as peertube which doesn't seem to be what you're looking for)

[–] [email protected] 2 points 11 months ago

Thanks for the reply. Yeah - for example have some documentaries of friends I'd like to share that are multi-GB, and not that "streamable" on slow connections.

I also really don't need another server to manage right now :)

[–] [email protected] 2 points 11 months ago

id also like to know this

[–] [email protected] 1 points 11 months ago

Granted I posted here and simultaneously kicked off my search, but it looks like locally encoding to MPEG-DASH and having a static page using something like dash.js might be the way to go?