!tCyGickeVqkHsYjWnh:nixos.org

NixOS Networking

903 Members
Declaratively manage your switching, routing, wireless, tunneling and more.263 Servers

Load older messages


SenderMessageTime
14 Jul 2025
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone* I think I'll make a minimal icecast example if I ever figure this out14:47:43
@saiko:knifepoint.net@saiko:knifepoint.netit probably reacts to one of these https://github.com/NixOS/nixpkgs/blob/nixos-25.05/nixos/modules/services/web-servers/nginx/default.nix#L10714:48:53
@saiko:knifepoint.net@saiko:knifepoint.net(Host or X-Forwarded-Host)14:49:27
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneAnother thing is that icecast is http 1.0 afaik14:49:58
@n4ch723hr3r:nope.chatn4ch723hr3ralso: arent those proprietary extensions to icecast against its license (GPLv2 or later)14:50:05
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonewe enable http2 on all nginx virtualhosts by default14:50:14
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @matthewcroughan:defenestrate.it
https://icecast.foo.com/stream doesn't work via a nginx proxy, because the stream is not http
But it has to be http, right? Otherwise it won't work for the web client
14:50:14
@n4ch723hr3r:nope.chatn4ch723hr3ri looked up http/3 just now bcs i wondered that as well and found a proprietary fork/wrapper14:50:31
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneIt isn't, and I don't know why it works14:50:36
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI just know that when I proxy it, the client (nginx in that case) gets 502 bad gateway because..14:50:55
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneThis is the error you get14:51:11
@n4ch723hr3r:nope.chatn4ch723hr3ralso icecast development seems kind of slow14:54:15
@n4ch723hr3r:nope.chatn4ch723hr3rimage.png
Download image.png
14:54:26
@n4ch723hr3r:nope.chatn4ch723hr3r4 commits this year .__.14:54:39
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonehttps://hls.somafm.com/14:57:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone

While there are many players that support HLS, many still do not support metadata display (e.g. Artist, Title).

14:58:02
@n4ch723hr3r:nope.chatn4ch723hr3rmetadata is usually done seperately via json14:58:34
@n4ch723hr3r:nope.chatn4ch723hr3ror websockets if you want to be fancy14:58:46
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneI can see why people aren't bothering then14:58:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneicecast sorted that out a long time ago14:58:52
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneand why it remains a bit of an experiment14:59:11
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneInternet radio is a solved problem when you use icecast, and more of an experiment and unfinished when you use HLS14:59:32
@n4ch723hr3r:nope.chatn4ch723hr3ri'd say its DIY if you dont use icecast15:00:05
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zone
mpv 'https://hls.somafm.com/hls/groovesalad/FLAC/program.m3u8'
● Audio  --aid=1  (flac 2ch 48000 Hz 983 kbps) [default]
AO: [pipewire] 48000Hz stereo 2ch s16
A: 00:00:01 / 00:00:29 (7%) Cache: 27s/3MB
Exiting... (Quit)
15:00:28
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zonewhereas if you use the non-hls stream, MPV will show you all the metadata15:00:42
@n4ch723hr3r:nope.chatn4ch723hr3roh true thats a thing that you'd have to look into seperately15:01:15
@n4ch723hr3r:nope.chatn4ch723hr3rprobably a big problem is that there isnt much interest in this anymore since spotify and youtube became so popular15:01:33
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneYes, internet radio itself as a category requires more development, even though HLS is the superior way to achieve it, it's unfinished as you can see by my mpv command above15:02:00
@emilazy:matrix.orgemilympv just doesn't implement HLS timed metadata. the stream does have it.15:02:03
@matthewcroughan:defenestrate.itmatthewcroughan - nix.zoneYes, that's what I mean by unfinished15:02:20

Show newer messages


Back to Room ListRoom Version: 6