Comment by 🐐 satch

=> Re: "Streaming Audio using Gemini" | In: s/Gemini

@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]

2024-11-18 Β· 2 months ago

8 Later Comments ↓

=> 🐐 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.

=> 🐐 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.

=> πŸ‘» 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 Β· 12 comments Β· 2024-11-18 Β· 2 months ago

Proxy Information
Original URL
gemini://bbs.geminispace.org/u/satch/21926
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
38.027975 milliseconds
Gemini-to-HTML Time
1.004989 milliseconds

This content has been proxied by September (ba2dc).