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
Thread
Login to reply
Replies (13)
Love it, really well done ๐
โก
I have not. Thanks!
@florian you were aware of this one?
Nope, doesn't surprise me though, that @Kieran is way ahead of everyone ๐
Putting each segment into it's own NOSTR event makes a lot of sense for live streaming but for videos that would be an unnecessary overhead.
There is also a chunked blobs BUD10 draft ๐.md but that is more for generic files with fixed blob sizes.
Agree.
Also Hzrd likes the idea of just linking to the m3u8 instead of having an event replicating it. The m3u8 should have relative paths that are the hashes
What a way to Rick roll everyone ๐
It's like Space Monkey from 2011 is back ๐
View quoted note โ
Space Monkey (company) - Wikipedia
Yooo
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
View quoted note →