Music servers as relays, enabling more home hosting

One of the things that discourages artists and labels from hosting their own music on their own websites (and especially videos), is the cost of storage on web hosting services. What if there was a way to host media files on a computer in your studio instead?

Imagine an instance of FunkWhale, @bandwagon, FairCamp or @mirlo could just provide front-of-house, pulling media files from studio-based computers as needed to serve site visitors/customers. The studio computer would need some software that enabled it to maintain a passive connection to the FoH server, eg letting it know when if its IP address changes. Maybe the Nomad protocol offers some ideas about how to do this?

BitTorrent/ WebTorrent might also be useful here as a transport for media files?

4 Likes

The thing about storing file locally is that most people’s internet provider only allow async transfer. The downstream connection provides a much more robust speed than the upstream connection. My numbers are approximately 150 MBPS down and approximately 6 MBPS up. And nobody will want to wait on a 6 MBPS connection. And synchronous lines cost many times as much as storage in the cloud.

1 Like

storage is cheap, web hosting could be too, if you want to host on open.audio more than 3gb, a small donation could do the trick. I guess the issue is more the interest you have in publishing on this platforms : it takes time, you probably don’t know them, not a lot of people use them. Most artists use distributors which have contracts with institutions that can handle this contracts. This is free/cheap, don’t take time and ensure you reach your audience.
A compromise for independent artists is to release in CC NC (creative commons non commercial), this allows their songs to be streamed in non commercial platforms and they don’t have to do anything, user can upload the songs themselves on the non commercial platform they prefer, or to share them on usb sticks

That’s why I think BitTorrent/WebTorrent could be useful. A sufficiently large BitTorrent swarm can serve a video file fast enough to be watched on the web in realtime, using WebTorrent. It can’t certainly serve audio files fast enough for audio streaming or downloads.

There is an organisational challenge in getting enough people to seed the file for that to work reliably. But the same is true for making media files downloadable over BitTorrent in general, and that seems to be a solved problem in most cases.

Buying storage is cheap, or at least it used to be. But leasing “cloud” storage is often prohibitively expensive. Especially because the costs usually increase the more often “cloud” storage is accessed by site visitors. A number of PeerTube instances have shut down due to storage costs. I’ve even heard of Mastodon instances shutting down for the same reason.

Given the way the “AI” bubble is driving up the price of SSD storage, for the same reason it’s making RAM ludicrously expensive, I think we can expect both buying storage and leasing “cloud” storage to get more expensive, not cheaper. For at least the next few years. So it makes sense to find creative ways to make more use of the storage we already own.

Also “the cloud” is just other people’s computers. Why do those computers have to be in a hyperscale datacentre, owned by a corporation who will charge through the nose for letting us use them? There are plenty of perfectly functional computers being thrown in the trash every year.

1 Like

my personal experience is that hosting something on my home costed me more money on electricity than it costed me to run on a datacenter, but yeah maybe this will change with the AI eating all our ressources. Bittorrent has also the limitation that you often want to control access to the file when you’re an artist (unless you release under CC).

1 Like

I’m guessing you don’t have solar panels yet, nor any other form of renewable generation on the property?

Fair point. But I can imagine people saying the same thing about HTTP in the 1990s, and insisting we stick with FTP for file downloads ; ) Perhaps as with HTTP, there’s a way to use a BitTorrent-style transport behind a paywall?

But even if there isn’t, the method I’m proposing could still work (if it worked at all) by only using BitTorrent for free downloads/ streams (CC or otherwise, but CC makes sense), and use HTTPS for stuff with a price tag, of which there will be far less downloads/ streams, no?

A workable relay design would separate storage from authorization. While it’s awake, the home server could publish a manifest and encrypted chunks to the relay. The front end could then check the listener’s access and issue short-lived tokens. The relay could use those tokens to serve byte ranges, allowing downloads to resume without requiring the studio machine to stay online. This is a design suggestion, not functionality I know these projects already implement.

Maybe password protected directories? Just a thought.