![]() |
#1 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
Getting SAM Broadcaster to work with sc_trans
Hi,
I have running a station with multiple DJs running SAM. I'm running the latest builds of sc_serv and sc_trans with mp3 enabled, using winamp as a "jukebox" when there are no DJs connected. That part works great! However, I cannot get SAM to connect to sc_trans. It connects directly to the server instance fine. But no matter v1 or v2, it just will not connect to the transcoder. The problem may be that SAM doesn't have a Username field for either v1 or v2 mode, only the password field. I can connect great with Winamp and the DSP plugin, just not SAM. The error I get on sc_trans is: Connection denied to 'encoder' Which makes me wonder if it sees the username as encoder, so I tried making that the username in sc_trans config , but no luck. So, has anyone gotten SAM (version 4.9.0) to connect as a DJ source to sc_trans?? Thanks, Steve |
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
most likely you will need to enter the password as <dj_name>:<dj_password> and set SAM to work in v1 mode. where dj_name is taken from djlogin and dj_password is taken from djpassword in the config file.
this keeps cropping up from people wanting to use SAM so you'd be best showing there is interest for the 'dj / user id' support and contact spacial to let them know. -daz |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
Still problems ... :(
Hi Daz,
Thanks for your quick response. I have tried every combination imaginable to get SAM connected to sc_trans ... tried using v1 and user ![]() The frustrating thing is that sc_trans requires a username at all ... as the server (sc_serv) does not and SAM works fine direct to the server. But not to sc_trans as a DJ, which is what I really hope to do! Should I try an older build, or has anyone gotten this to work? Regards, Steve |
![]() |
![]() |
![]() |
#4 |
Join Date: Sep 2003
Posts: 27,873
|
the username is needed by sc_trans to be able to cope with multiple DJ logins and coping with the different priorities which can be set for DJ access. i can see why it's annoying but it's the best way to ensure that things will work correctly and cannot really be equated to how the DNAS works.
as you have access to sc_trans, what errors specifically is it reporting in its logs as that should give a better idea of what is actually going on. as there shouldn't be a reason for it not to work when setting SAM into v1 mode and doing the <dj_name>:<dj_password> method. -daz |
![]() |
![]() |
![]() |
#5 | |
Junior Member
Join Date: Mar 2011
Posts: 19
|
Logs ....
Hi Daz,
Yes I know, it should work in v1 mode with user ![]() I put sc_trans in debug mode and here is what it says" Quote:
Thanks, Steve |
|
![]() |
![]() |
![]() |
#6 |
Forum King
|
None of the log you've posted shows any detected activity with DJ connections.
Did you actually setup a v1 DJ port on the Transcoder? It might be better to attach your Transcoder config file with your passwords/code obfuscated with your next post. |
![]() |
![]() |
![]() |
#7 |
Forum King
|
I downloaded MySQL and SAM Broadcaster (the trial version.)
I have tested the possible connection combinations and have come to a working theory of why things are the way they are with the current version of SAM Broadcaster; It was not designed for DJ connections to the Transcoder because it is itself capable of automatic DJ stuff. Of course this statement is based on the assumption that there is no difference between the Transcoder DJ ports (v1 and v2) and the DNAS source connection protocols except the extra username parameter (which is hacked into the v1 with a colon separator in the password field.) In short, it is currently impossible to use SAM Broadcaster encoders in v2 mode to a Transcoder DJ port. You can only use v1 (aka Legacy) ports for SAM Broadcaster in its current incarnation. |
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
True ...
Hi thinktink,
Thanks for testing ... however I'm not even trying to connect SAM using v2, only v1, and yes I do have a v1 port configured. Even with the user ![]() Regards, Steve |
![]() |
![]() |
![]() |
#9 |
Forum King
|
I ran my tests on Windows XP SP3. SAM, DNAS, Transcoder, MySQL, and Abyss webserver with PHP support all on the same machine. I was able to listen through Project Thundersnow flash player with full metadata display support using the latest published versions of the SHOUTcast tools (and my SPS server to support the flash object.)
So it's kinda odd it didn't work for you on Windows to me. Maybe it has something to do with your firewall not allowing incoming connections to the DJ ports as well (just a stab-in-the-dark thought) since your last log doesn't show any DJ activity in it. |
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
Hi Thinktink,
Thanks for you advice. I'm unable to run the server on the Windows puter cause it's not local and I can't get a posix OS on it ... however, I have checked the router and all the other ports are open fine. I've tried many different ones just for kicks. However, on my FreeBSD machine, with the exact same setup, everything works perfectly, including SAM. So what I've done is to use my BSD machine as the transcoder and then the Windows machine as a relay. That's working great, so I'm happy and I think I'll stick with this setup. Still don't know why the Windows sc_trans isn't accepting the connections from DJs using v1, because Winamp using v2 works fine with it. But having the DJ access is the whole point of using the transcoder for me, so I need it to be reliable. Probably some weird quirk in the OS and/or who knows. One of those 'voodoo' things I guess! Regards, Steve |
![]() |
![]() |
![]() |
#11 |
Senior Member
Join Date: Jan 2010
Posts: 181
|
Normaly it shouldnt be a problem to run sc_trans on a windows server. But by default Windows block the Ports sc_trans need for external Dj Connections so you have to open them manualy in the firewall.
-MAD |
![]() |
![]() |
![]() |
#12 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
Yeah it shouldn't be a problem ... however the firewall is off (win xp) ... and I have tried other random ports also. All my other incoming stuff to that server works fine, so I am really baffled as to why sc_trans won't let SAM connect to it. But, it works just fine on posix/BSD so I'm happy =)
-Steve |
![]() |
![]() |
![]() |
#13 |
Join Date: Sep 2003
Posts: 27,873
|
sounds like i need to re-install SAM and see what might be going on and that does sound very strange that the BSD version is working ok - is usually the other way round i tend to find.
though just going back over the thread, SAM 4.9.0 is mentioned though isn't there newer versions of it out now - 4.9.4 or something like that? i.e. trying to work out what i really should be trying to get to test with. -daz |
![]() |
![]() |
![]() |
#14 |
Forum King
|
I tested with the trial version of SAM 4.9.4
|
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
SAM stuff
Hi,
Thanks Daz and Thinktink for your research into this. The issue with SAM is that most of the DJs have older (like 4.2.2 or below) versions of SAM, so I have to be able to accommodate them. In my tests I tried 4.2.2, 4.9.0, and an older one (forgot which exactly.) None worked with the windows sc_trans, but on FreeBSD it's all fine. As other people have apparently had no problem using SAM with sc_trans on windows, it must be something specific to this particular machine. It's running WinXP SP3 with the firewall turned off. I have complete access to it, but not physical access, or I would blow up windows and put a "real" server OS on it! The server is physically located in Denmark if that makes any difference, while me and my FreeBSD server (working perfectly) are in the US. If I had physical access to the computer in Denmark I might find something that could cause the connection problem, however that's not going to happen so I have to work with what I've got. Thanks again to all who are testing this ... I don't think sc_trans or SAM are at fault here, just some odd combination of "tech voodoo." Regards, Steve |
![]() |
![]() |
![]() |
#16 |
Junior Member
Join Date: Mar 2011
Posts: 19
|
All Fixed!
Thanks for everyone's help ... I was finally able to get sc_trans on windows working with sc_serv running on the same machine. Simple config file errors: The default stream id in sc-Trans_basic.conf is streamid_2=2 or something like that, which for my setup was wrong. Changing it to id1=1 allowed sc_trans to connect to sc_serv and work. Then, I was able to connect a Shoutcast v2 source as a DJ, but not a v1 using SAM Broadcaster which has been discussed here. It turns out that the sc_trans_dj.conf file uses the default ports:
code: I tried different ports and did port scans and realized that the legacy ports I selected were Closed, while the v2 port was open. At last I looked at the virgin config file, and realized I had added a 1 to djport ... as in which does NOT work. When I lost the 1 and hadcode: it worked perfectly. So basically a couple of sytax errors caused these problems. SAM is able to connect in legacy mode quite well, and the DJ calendar and playlist playback work perfectly too. Thanks to all who gave advice about these problems, I'm sorry that it was just a couple of syntax errors which caused the trouble.code: One question about sc_trans ... does anyone know of a script for a web page that would allow requests and 'voting' for songs that the automated system plays, as in showing a list of available tracks and then allowing users to vote on what they wish to hear, and then play that track in sc_trans? Kind of a specialized setup, but if anyone has or would share such an example of adding request capability to the "jukebox" I would be most grateful! Regards, Steve |
![]() |
![]() |
![]() |
#17 |
Join Date: Sep 2003
Posts: 27,873
|
rightio, am surprised there weren't config errors noted at the start of the sc_trans log output when there was things like 'djport1' in place. but is good that you've got SAM working ok in legacy mode on the machine now
![]() as for the other question, i'm not aware of anything out there which does that though pretty much most of sc_trans's behaviour can be 'web' controlled as needed so it could be possible to implement something to do it i would have thought. -daz |
![]() |
![]() |
![]() |
|
Tags |
sam, sc_trans |
Thread Tools | Search this Thread |
Display Modes | |
|
|