karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

Is it possible to set streamURL for a mount point in config file? #345

Closed john-a-harris closed 1 year ago

john-a-harris commented 3 years ago

Is it possible to set the StreamUrl for a stream in the 'mount' section of the server configuration? I can set via a metadata update call (although not via the admin UI, it seems), but since I'm only wanting a static url (for a channel logo), I'd rather set it once in the config if possible. Can anyone help?

hotenov commented 3 years ago

If you really mean stream-url which is displayed on Admin UI as server_url - YES, you can. Set it in mount section of icecast.xml for your mount, for example:

<mount type="normal">
    <mount-name>/example-complex.ogg</mount-name>
    <stream-url>http://some.place.com</stream-url>
</mount>

You can override (or specify) another mount attributes (settings), see in documentation.

john-a-harris commented 3 years ago

Thanks for the response, but no, I do mean 'StreamURL'. See an example output from ffprobe:

Input #0, aac, from 'https://stream.radioparadise.com/aac-128': Metadata: icy-br : 128 icy-description : DJ-mixed blend of modern and classic rock, electronica, world music, and more. Always 100% commercial-free icy-genre : Eclectic icy-name : Radio Paradise (128k aac) icy-pub : 1 icy-url : https://radioparadise.com StreamTitle : Sonny Chillingworth - Moe 'Uhane (Dream Slack Key) StreamUrl : http://img.radioparadise.com/covers/l/B0000030MF.jpg Duration: N/A, bitrate: 128 kb/s Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 128 kb/s

The icy-url equates (I think) to 'stream-url'. 'StreamUrl' is part of the metadata, as far as I understand it.

hotenov commented 3 years ago

With example, it's more clear :)

Unfortunately, image for stream is available only in Shoutcast configuration file. Not for Icecast for now. UPD: about Shoutcast I may be wrong because I don't use it.

karlheyes commented 1 year ago

tags like that (ie inline metadata) if possible are settable via the admin metadata hook , eg url=...