Global Feed Post Login
Replying to Avatar franzap

I just built a tool.

Video on-demand from encrypted chunks on multiple Blossom servers 🤯

If you have (or can install) nak, nodejs, ffmpeg can you check it works for you?

nak req --id ec1688e87843e8774d1813c371fe65af890be090bdb831f03ceefdd2144ad679 wss://relay.damus.io | npx --yes github:franzaps/n2m3u8 | ffmpeg -f hls -allowed_extensions ALL -protocol_whitelist file,http,https,tcp,tls,crypto,fd -i - -f mpegts - | mpv -

This:

- Fetches a nostr event with hashes of video chunks

- Input into my tool that finds the working chunks in Blossom servers and outputs a HLS playlist

- Input to ffmpeg that decrypts and decodes the stream

- Input to video player. (Replace mpv with vlc or other video player, can also save to a video file)

Volume UP!

#asknostr #blossom #devstr

Avatar
bordalix 7mo ago 💬 1

I don't get it: why encrypt the segments when you put the AES key on the nostr event?

Reply to this note

Please Login to reply.

Discussion

Avatar
franzap 7mo ago 💬 3

It's a POC so don't take too seriously.

But having a the key separate from the content gives Blossom operators plausible deniability which is massive.

Avatar
bordalix 7mo ago

Gotcha

Thread collapsed
Avatar
Niel Liesmons 7mo ago

Oooh

Thread collapsed
Thread collapsed