Old 22nd January 2014, 18:53   #1
splattersix
Junior Member
 
Join Date: Jan 2014
Posts: 7
Calendar/ DSP Plugin - DJ/ID & Password not working correctly.

Hey guys, I'd like to pick some brains on setting up a shoutcast server correctly if I may. I have spent 2 days now trying, testing and reading documentation (over and over) and yet Im still having problems. I am at my wits end now, so need some help and advice and hoping some of the seasoned shoutcast veterans can possibly offer a solution.

My server is a dedicated server (8GB RAM, Quadcore) running Centos 6.5. I have the latest versions and drops of sc_serv, sc_trans and the Shoutcast DSP plugin for Winamp (as well as latest winamp running).

I have sc_serv sorted and running, not a problem. In fact I even have sc_trans up and running which is connecting to sc_serv as a source for a playlist and its working fine. What isn't working for me is the calendar.xml and dj_login / dj_pass / dj_port part of it.

I was under the impression (from what I have read in the documentation) that you can use sc_trans as a source for a playlist, then when you have calendar.xml setup alongside the dj_login part of the sc_trans config, You should be able to just enter your dj login and password in the fields in shoutcast DSP plugin, enter the server details and connect. The playlist should fade out.. the live stream fade in.. and the opposite when the dj disconnects.

But alas it isn't working. When I put dj_login and dj_pass details in the DSP boxes and try to connect (on the shoutcast v2 port I am using), console says bad password. When I leave the dj_login in the box and enter the stream password, it tries to connect, but says I am unable to connect as a source is already running.. * Scratches head *. I thought the whole point of having dj_login / dj_pass was so that you didn't have to give your DJ the stream password..

As it stands I will have to get a DJ to manually kick the source (via PHP) before they can connect - which totally defeats the point of the calendar etc in the first place.

I give details of my config files below

sc_serv.config
code:
banfile=/home/strictjungle/shoutcast/logs/bans/sc_serv.ban
maxuser=200
listenertime=0
autodumpusers=0
srcip=ANY
destip=ANY
log=1
screenlog=1
logfile=/home/strictjungle/shoutcast/logs/server/sc_serv.log
logclients=1
songhistory=20
portbase=8004
adminpassword=adminpass
password=pass
allowrelay=1
allowpublicrelay=1
ripfile=/home/strictjungle/shoutcast/logs/rips/sc_serv.rip
streamid=1
;streamauthhash=
streammaxuser=200
streamadminpassword=adminpass
streampassword=pass
streampublicserver=never
streamallowrelay=1
streamallowpublicrelay=1
streamriponly=0
streamautodumptime=30
streamautodumpusers=0
streamlistenertime=0
streambanfile=/home/strictjungle/shoutcast/logs/bans/sc_serv.ban
streamripfile=/home/strictjungle/shoutcast/logs/rips/sc_serv.rip
streamw3clog=/home/strictjungle/shoutcast/logs/w3c/sc_w3c.log
w3clog=/home/strictjungle/shoutcast/logs/w3c/sc_w3c.log
publicserver=never



sc_trans.config
code:
;CALENDAR EVENTS
calendarfile=/home/strictjungle/shoutcast/assets/calendar.xml
calendarrewrite=0

;DJ SUPPORT
djport=8005
djport2=8004
djlogin_1=liveshow
djpassword_1=showpass
djpriority_1=1

;ENCODER OPTIONS
encoder=mp3
mp3quality=1
bitrate=192000
samplerate=44100
channels=2

;LOGGIN OPTIONS
log=1
screenlog=1
logfile=/home/strictjungle/shoutcast/logs/trans/sc_trans.log

;METADATA CONTROL
streamtitle=Strictly Jungle
streamurl=http://www.strictlyjungle.ca
genre=Drum and Bass
aim=strictlyjungle
irc=strictlyjungle
icq=strictlyjungle
public=0
usemetadata=0

;MP3 ENCODING
unlockkeyname=xxxxxxxxxx
unlockkeycode=xxxxxxxxxxx

;NETWORK OPTION
outprotocol=3
serverip=100.00.00.01
serverport=8004
password=pass
streamid=1

;PLAYLIST CONTROL
playlistfile=/home/strictjungle/shoutcast/assets/playlist.lst
shuffle=1
xfade=1
xfadethreshold=15



calendar.xml
code:
<?xml version="1.0" encoding="UTF-8"?>
<eventlist>
<event type="dj">
<dj archive="0">liveshow</dj>
<calendar />
</event></eventlist>



Winamp Shoutcast DSP Plugin settings

Server Address: 100.00.00.01
port: 8004
stream id: 1
DJ / User ID: liveshow
Password: showpass

Use shoucast v1 mode unticket
Encoder settings and all others are fine.

If anyone needs additional info please advise. Any help much appreciated as Im going bald right now
splattersix is offline   Reply With Quote
Old 24th January 2014, 04:22   #2
gaurav_verma22
Junior Member
 
Join Date: Aug 2011
Posts: 16
Hey Man I have a similar problem at http://forums.winamp.com/showthread.php?t=374705 and I am also waiting for a response
gaurav_verma22 is offline   Reply With Quote
Old 31st January 2014, 23:55   #3
splattersix
Junior Member
 
Join Date: Jan 2014
Posts: 7
Quite amazed on the lack of response given to this considering how large the shoutcast / winamp community is. I think I've been patient enough. I was hoping someone somewhere would have some idea as to where the problem may lie.

Hoping for some help, no matter how vague.. *bump*
splattersix is offline   Reply With Quote
Old 2nd February 2014, 10:28   #4
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 576
All what you really need you can find in the WIKI:

http://wiki.winamp.com/wiki/SHOUTcas..._Specification

You must add the playlist and the djs as event in the calendar.xml. Make sure the djs have a higher prio than the playlist. Otherwise the djs can't drop the playlist. In my example the playlist have the lowest prio. So every dj can dpop it. You can set different prios between the djs, maybe dj001 have prio 9 and the dj002 have prio 8. So dj002 can't kick dj001.


code:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>

<event type="dj">
<dj archive="0" priority="9">dj001</dj>
<calendar />
</event>

<event type="dj">
<dj archive="0" priority="9">dj002</dj>
<calendar />
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="1" priority="0">default</playlist>
<calendar starttime=":00:00" duration=":00:00" repeat="0" />
</event>

</eventlist>




To set the passwords for the djs you can type it in your trans conf or you can create a separate conf-file like djlogins.conf and this one you can include at the end of the trans conf file:

include=/home/shoutcast/conf/djlogins.conf

code:
djlogin_1=dj001
djpassword_1=xxxxxxxx
djpriority_1=9

djlogin_2=dj002
djpassword_2=yyyyyyy
djpriority_2=9



The same you can do for the playlist filenames at the end of the trans conf file:

include=/home/shoutcast/conf/transplsfiles.conf

code:
playlistfilename_1=default
playlistfilepath_1=playlists/default.lst

neralex is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump