πŸ’Ύ Archived View for bbs.geminispace.org β€Ί u β€Ί requiem β€Ί 21922 captured on 2024-12-17 at 15:50:29. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

Comment by πŸ’€ requiem

Re: "Streaming Audio using Gemini"

In: s/Gemini

I still think we should use other protocols for streaming media. Like RTSP or something.

πŸ’€ requiem

Nov 18 Β· 4 weeks ago

11 Later Comments ↓

🐐 satch [OP] · Nov 18 at 12:46:

@requiem agreed - this is more of a curiousity project than anything else, I definitely don't think Gemini is the right protocol for audio streaming.

I'm going to try with ogg and see if anything changes. My tests so far are on MacOS, I will test on other platforms once I get that working.

🐐 satch [OP] · Nov 18 at 13:12:

ogg vs mp3 doesn't seem to change anything for me on MacOS :/

πŸ›°οΈ lufte Β· Nov 18 at 15:07:

Are you writing your own client? If the server is sendig the file too quickly it is because you are reading it too quickly.

🐸 HanzBrix · Nov 18 at 16:14:

I find this very interesting, I was thinking of incorporating sound in a game I am making, just short fx clips, did not know ogg was required to make it stream. 😁

🐐 satch [OP] · Nov 18 at 16:46:

@lufte Testing using Lagrange

πŸš€ mbays Β· Nov 18 at 17:08:

I've found that piping to "mpv --cache-secs=5 -" works well for most audio/video formats. (I don't know which clients support piping to a command though, maybe not many.)

πŸ’Ž pista Β· Nov 19 at 15:03:

Yes, it works. Skyjake helped me with it a while ago. There is an extra setting needed in gmcapsule to allow streaming. Was able to run icecast radio via gemini.

πŸ‘» ps Β· Nov 24 at 14:39:

For server-side, imho, it simpler to use socket proxy for any http streaming server e.g. icecast

I did something similar for NEX protocol (TLS-less) with Nginx also:

# /etc/nginx/nginx.conf

stream {
        server {
                listen 1915;
                proxy_pass 127.0.0.1:1915;
        }
}

About client-side, close to work about this feature in my browser, seems Lagrange developers did great work around streaming, because this question require manual memory buffer management, multiple codecs routing, timing control and other things.

🐸 HanzBrix · Nov 24 at 14:52:

@ps Developer*, far as I know skyjake has made the whole client himself, as well as BBS, GMCapsule and Cosmos.

πŸ‘» ps Β· Nov 24 at 15:01:

@HanzBrix wondeful, the Father of Geminispace!

I spent about 1k hours for browser implementation and did nothing yet comparing to Lagrange features. Only 100% love to geminispace make this work amount possible @skyjake

πŸ’Ž pista Β· Nov 24 at 15:33:

He’s a real champion and the Gemini community is lucky to have him.

Original Post

πŸŒ’ s/Gemini

Streaming Audio using Gemini β€” How have people implemented audio streaming? I've been trying to implement this and running into lots of issues. Either the server sends audio to the client too quickly as if the client is loading a static file, or Lagrange won't play the audio at all. I am not sure how to debug this or what others have done.

πŸ’¬ satch Β· 14 comments Β· Nov 18 Β· 4 weeks ago