Decentralized Video Hosting

I used to frequent private torrent trackers. Megabytes was the currency on these sites. The more you uploaded, the more you could download. This ensured torrents would be well seeded and remained available with fast downloads.

Could this be adapted to Nostr with a lightning twist? A market for decentralized video hosting?

Anyone with a VPS or a home server could run a seed box, providing bandwidth and disk space for a fee. Users who require video hosting could buy "upload credit" compensating the seed box operators. In return they get decentralized censorship resistant video hosting.

People viewing content could also be involved. Clients could be able to cache and seed a certain amount of video, just like any torrent client. This would ensure that popular videos would have more sources, ensuring their wide availability as they become more popular. This way anyone can earn sats or "upload credit", just by seeding the videos they have viewed.

I'm not sure if this is realistic or even possible, but it's an idea that always sits in the back of my head.

AI thoughts, including blossom integration:

If Blossom servers act as the initial hosting layer, the workflow could evolve as follows:

* Video Upload and Initial Hosting on Blossom:

* A user uploads a video to a Blossom server. Blossom, being a federated and potentially more censorship-resistant alternative to traditional centralized hosting, provides the initial availability and distribution.

* The video is still likely broken down into chunks for more efficient distribution later.

* The Blossom server generates the content hash and metadata.

* Nostr Announcement with Blossom Location:

* The video uploader announces the video on Nostr, including the content hash and crucially, the initial location(s) on the Blossom network where the video chunks can be obtained.

* The Nostr note would also detail the terms for long-term seeding (sats/MB offered) and potential rewards for viewers who cache and re-seed.

* Initial Viewing and Caching:

* When a user wants to watch the video, their client connects to the specified Blossom server(s) to begin streaming the chunks.

* As they watch, their client can, with their consent, cache portions of the video locally.

* Becoming a Seeder (Post-Blossom):

* The client software, having cached some video chunks, can now advertise itself as a seeder for those specific chunks via Nostr or a separate peer discovery mechanism.

* They would indicate their Lightning address or a mechanism for receiving sats for providing bandwidth.

* Payment and Incentives:

* Other viewers downloading from these client-seeders would initiate micro-payments via Lightning.

* The original uploader's "upload credit" pool (funded with sats) could also be used to incentivize these longer-term seeders, even after the initial demand from the Blossom servers subsides.

Advantages of Starting with Blossom:

* Easier Bootstrapping: Blossom provides a more readily available and user-friendly initial hosting solution compared to relying solely on a completely distributed network from the outset. Uploaders wouldn't need to immediately grapple with setting up their own infrastructure.

* Potentially Faster Initial Speeds: Blossom servers, presumably well-connected, could offer good initial streaming speeds for early viewers.

* Gradual Decentralization: The system can gradually decentralize as more viewers cache and become seeders, reducing reliance on the initial Blossom servers over time.

#asknostr

Reply to this note

Please Login to reply.

Discussion

Cool concept as long as one can somehow police the stuff being stored on their hardware. Reporting systems, filters, removal, bans, etc.

Agreed. On the client side that is easy, what you watch is what you seed.

For the seed box operators it is more difficult.

Yeah, and that would be my main hang up for running one.

tldr

TLDR: Inspired by private torrent trackers, the idea is to create a decentralized video hosting market using Nostr for announcements and Bitcoin Lightning for payments.

Users buy "upload credit" (in sats) to compensate seedbox operators (running servers) for hosting video chunks.

Viewers can also earn sats by automatically caching and re-seeding videos they watch.

A potential initial step involves hosting on Blossom servers and using Nostr to coordinate the transition to a fully distributed, incentivized peer-to-peer network.

I remember a discussion awhile back where @fiatjaf liked torrents. There’s a web torrent protocol that should in theory enable torrents to play in nostr clients

I’ve also seen some bounty systems where users can pay a bounty to be served a particular file by hash

A market that matches people seeking videos with people supplying them, facilitated by sats is a unicorn idea

Just dropping this here, but might be worthwhile to look at Tribler and what they have done over the years.

Its a torrent client build and maintained by distributed computing guys are Delft technical university (so Phd's master students etc, supposedly all well documented with accompanying papers).

The core of Tribler is the addition of onion-routing, but they (atleast for a while, maybe its in the background of removed now) have made a reputation/token system based on seeding.

Its a decent client regardless, highly recommend it other than that they recently ditched the standalone application and its is interface is now in the browser which i absolutely HATE :( .

tribler.org

I saw their super app kind cool and sad "It is a proof-of-concept implementation of a DAO system using Trustchain and Bitcoin"

So a bit of background insofar i can see/know.

Johan Pouwelse is the driving force behind all of this. He had been active in the distributive computing side of things for a long time, and all the sudden Bitcoin showed up. Atleast at the time (dont know what his possition is currently) he disliked Bitcoin.

But at some point this whole "blockchain" craze came up, and he simply capitalized on that buzzword to draw attention, funds and resources to his projects by setting up a "blockchain lab" at the university. He rephrased a bunch of things so he could continue with his DAG + signatures based systems.

Now i have a lot of disagreements with how he views things, but Tribler does work well, and he had done decades of work on WoT type systems so perhaps there is something of value here; just ignore any mention of 'blockchain' and percieve it as oppotunism to capitalize on hype by a desperate proffessor :P

I haven't thought of tribler in years, I have used it before. I'll have to revisit it.

novia or bitvid but I think these are things that have been forgotten

Just use BitTorrent, this isn't that hard

Mmmmm. I wanna think on this.

The problem is we are stuck in the ideation phase. The sooner we launch a web or an app, the more clearly we will identify the challenges that may arise.

We just need a proficient dev to organize that matter.