![]() |
How to relay multiple streams from the internet?
Hi guys,
I have successfully setup a Shoutcast server to relay one internet radio station from the internet on the company intranet via an old Windows Server 2003 box I had spare. But I can't make sense of how to relay additional streams via the same server. I have read the Wiki and tried to find an existing forum post trying to solve the same problem but I am yet to find a solution. Here is the contents of my sc_serv_relay.conf file. NOTE: I realise I have commented out the second attempt at adding another stream. I did that so I don't get errors when running it as I am using as a relay currently. code: Any tips or advice would be greatly appreciated. Cheers, Andrew |
that example is broken (likely due to being from an older version of the config examples). use streamrelayurl_2=xxx, streamrelayurl_3=yyy and so on as needed, ensuring you change the number after the underscore (as needs to be done for all of the mutli-config options otherwise it's treated as stream #1).
|
Thanks for your reply DrO.
This was a new install with the latest version of SC from the webiste, downloaded just before Christmas so if its old and broken its because its the way it came. Also the Wiki examples I was trying to follow seemed to mirror these config files so I had no reason to suspect my config files were old and broken. =( Maybe the current release files and the Wiki need to be updated to reflect this? So is the streamrelayurl_X=YYY the only part that is broken? Everything else was fine? I will try your suggestions now anyway. Thanks again. |
So I modified my conf as you suggested DrO and it now loads without error but the PLS file it serves up only has the first stream.
Here is the relevant part of my conf. streamid_1=1 streampath_1=/triplej streamrelayurl_1=http://shoutmedia.abc.net.au:10326 streamid_2=2 streampath_2=/tripler streamrelayurl_2=http://s2.station*************:9020/3RRRFM ;streamauthhash_2=<enter_your_auth_key_here> |
I should add that when executing SC with the command "sc_serv.exe sc_serv_relay.conf" I get a little error window with the title "Error" and the message "sc_serv.conf" and an OK button. Nothing else. I cant figure out what in that config is broken. I have tried commenting out lines 2 and/or 5 but it didn't help.
code: Any ideas or suggestions? Thanks again. |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Thanks DrO,
Sorry for the late response. This had to be put on the backburner for a bit. :) This is the output from sc_serv.exe -v. code: I have just done some more testing and fiddling and it looks like it might just be a problem with the second station I was trying to relay. The error shown in the admin GUI is 471 Quote:
code: I have added a 3rd station and it seems to be working fine along side the 1st and 2nd. I have also stumbled across how to get to the additional stream in the web GUI. By modifying the "sid" value in the URL. :) The codec the station I am having issues with, is using OGG Vorbis and the other two that are working are using HE-AAC. To the best of your knowledge, is there anything I can do to get it working? It 'listens' fine. I just have issues relaying it. Thanks for all your help DrO. And apologies for my noobness. Cheers! |
Quote:
all i can do is just add a few checks to prevent against trying to listing an OGG based stream. and the bitrate issue is because the Icecast server is providing it as "Quality 0" which is not at all what is expected i.e. it's not just a numeric value so that's why the bitrate aspect also fails as it's not relevant to what the DNAS is needing to use for the formats it supports. |
OK cool. I really appreciate your help DrO.
You make it sound like you are the only dev on this project?? Is that true? A check for listening to OGG streams sounds like a great idea. :) On a slightly off-topic but related note, is there a way to customise the index page that shows me all the streams I am relaying, so that instead of saying "stream 1, stream 2..." etc. it shows the name I specified in the the "streampath_X" settings? It would make it a lot more user friendly. :) Thanks again. |
Quote:
|
yeah, that's much better. I was just starting small and simple in the hope that it might seem super easy and get implemented quicker. :p
What you suggested sounds much better but also (to the uninitiated) much harder. Actually, thats already done on the Admin status page. Would it be as simple as just copy some of the code from the admin status page over to the index.html? |
1 Attachment(s)
Quote:
|
YES! Amazing! :)
(I think I might be buying you some beers!) |
Quote:
|
what's in the screenshot is from working code as part of my development build of the DNAS. it's not publically available but will be included as part of the next public DNAS release.
|
Quote:
|
| All times are GMT. The time now is 15:58. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.