17 comments

[ 2.4 ms ] story [ 50.7 ms ] thread
I built TinyIce as a vibing side project to spin up an Icecast2-compatible server in seconds, because I was frustrated with IceCast. One static Go binary, embedded assets, auto-generated creds on first run, built-in ACME (Let’s Encrypt), relays, multi-tenant admins, Prometheus metrics, and a modern web UI.
The HTTPS is still a problem for some streaming music sites. e.g. streamingsoundtracks.com runs HTTP.
Running my own icecast2 server, I recently ran into a problem[1] where TLS connections don't shut down properly. It's actually a problem with the libshout client library's poor TLS support. I posted a patch to that issue, but it's hard to tell if there's anyone still looking at issues or actively developing the project over there. The last update to libshout was 3 years ago, and it was just a documentation cleanup.

1: https://gitlab.xiph.org/xiph/icecast-libshout/-/issues/2337

(comment deleted)
Icecast still exists? Blast from the past. Does it work reliably yet?
I've had years of uptime with icecast at home.
Dose it work behind a reverse proxy such as nginx? Especially for the m3u8 files?
That should work! :) Just added m3u/m3u8 support.
Thanks for sharing! Would love to see configurable ACME settings for use in a homelab where I'm already running my own ACME CA.
I've just added better docs, the CI/CD pipeline is now releasing binaries for all major platforms and custom ACME URLs are supported.
I tried streaming with icecast2 during pandemic and always got dropped connections in tens of minutes. It drove me mad. And it's impossible to detect in advance, receivers skip for seconds till new connection is made. From packet captures it appears as dropped ack packets. It was https so copyright filters are unlikely.

Are there different solutions, different protocols, ideally supported by browser in some simple manner? Is streaming over websocket possible?

Very cool project!

When I was still working at a large corporation, I built an internal "social" radio station using Icecast2. I'd broadcast my favorite music like Pink Floyd and Radiohead to my coworkers via a simple Rails web app, and we'd chat about music, work, and everything in between on the same web app. That was a long time ago, and I no longer have that environment (a big company with lots of similar-minded young people), but live-streaming music with friends will always be a soft spot in my heart.

I've added several improvements over the last couple of days.