| 14 Jul 2025 |
matthewcroughan - nix.zone | and when you visit in the browser on http://foo.com:8000 it proxies http, not tcp | 13:46:55 |
matthewcroughan - nix.zone | so the tcp stream proxy doesn't even get hit | 13:47:07 |
jappie | is this even allowed? | 13:47:19 |
n4ch723hr3r | cant you change one of the ports in the icecast config? | 13:47:20 |
matthewcroughan - nix.zone | No, if you make a new listen socket it seems to just create another http endpoint you can hit that has the same problem of combining tcp and http | 13:47:51 |
matthewcroughan - nix.zone | You can't bifurcate it | 13:48:05 |
matthewcroughan - nix.zone | * You can't bifurcate/split it | 13:48:11 |
n4ch723hr3r | "is that legal?" | 13:48:28 |
jappie | it just sounds so cursed lol - HTTP is what, layer 7? | 13:49:32 |
n4ch723hr3r | https://gist.github.com/virtadpt/94eb781cba3ec9c56a4f39ef6bf760f3
i found this đŸ¤¡ | 13:49:36 |
n4ch723hr3r | subs_filter_types application/xspf+xml audio/x-mpegurl audio/x-vclt text/css text/html text/xml;
subs_filter ':8000/' '/' gi;
subs_filter '@localhost' '@example.com' gi;
subs_filter 'localhost' $host gi;
subs_filter 'Mount Point ' $host gi;
| 13:49:57 |
matthewcroughan - nix.zone | I also found that, and couldn't get it working. | 13:50:06 |
matthewcroughan - nix.zone | Do you now see my predicament? | 13:50:12 |
matthewcroughan - nix.zone | The solution is to grow balls, get an IP, and run it on the internet. | 13:50:24 |
emily | you should probably just be using HLS or MPEG-DASH… | 13:50:27 |
matthewcroughan - nix.zone | Which is now what I've done | 13:50:28 |
matthewcroughan - nix.zone | Me, or icecast? | 13:50:47 |
n4ch723hr3r | ssh port forward :3 | 13:50:50 |
n4ch723hr3r | yes | 13:50:55 |
emily | or WHIP or SRT or RIST or really just anything other than Icecast | 13:51:05 |
n4ch723hr3r | you could also write a small nginx njs module to distinguish the two | 13:51:32 |
emily | you | 13:51:58 |
matthewcroughan - nix.zone | In reply to @emilazy:matrix.org you Is there a piece of software that does what icecast does that does this? | 13:52:42 |
emily | yes | 13:52:57 |
matthewcroughan - nix.zone | What one are you thinking of? | 13:53:24 |
emily | FFmpeg, Liquidsoap, probably even OBS will work fine | 13:53:44 |
n4ch723hr3r | what about subsonic? | 13:53:47 |
emily | streaming is a very mature ecosystem with lots of tooling and protocols | 13:54:00 |
emily | doing it without a video channel is no obstacle | 13:54:07 |
matthewcroughan - nix.zone | i was reading a bit into this:
https://medium.com/nts-radio-tech-blog/icecast-in-production-7313cb5c95ff | 13:54:30 |