Comment by πŸš€ mbays

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

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.)

=> πŸš€ mbays

2024-11-18 Β· 2 months ago

4 Later Comments ↓

=> πŸ’Ž 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/mbays/21936
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
32.865325 milliseconds
Gemini-to-HTML Time
0.676425 milliseconds

This content has been proxied by September (ba2dc).