View Single Post
Old 4th July 2010, 16:49   #123
shakamedia
Junior Member
 
Join Date: Apr 2010
Posts: 33
I've tried my best to edit the sc_serv beta file. Below is what I come up with. Now my question is
1. Where do I put the information that I have edited?

When I open up the sc_serv2drop/win32 folder and extract the files there is no config file.

sc_serv2
portbase=8000
password=<mypassword>
adminpassword=<mypassword>
publicserver=never
autosourcedumptime=60
maxuser=32
listnertime=0
autodumpusers=0



log=1
logfile=/tmp/sc_serv.log
screenlog=1
w3cenable=1
w3clog=/temp/sc_w3c.log
webclientdebug=1
yp1debug=1
yp2debug=1
shoutcastsourcedebug=1
uvox2sourcedebug=1
uvox3sourcedebug=1
uvox4sourcedebug=1
shoutcast1clientdebug=1
shoutcast2clientdebug=1
shoutcast3clientdebug=1
shoutcast4clientdebug=1
relayshoutcastdebug=1
relaydebug=1
streamdatadebug=1
httpstyledebug=0
statsdebug=0
microservdebug=1
threadrunnerdebug=0


flashpolicyfile=crossdomain.xml


buffertype=1
adaptivebuffersie=1
bufferhardlimits=16777216


metainterval=8192


uvoxcipherkey=foobar


namelookups=1



maxheaderlinesize=2048
maxheaderlinecount=100


yp2=0
ypaddr=yp.shoutcast.com
ypport=80
yppath=/yp2
yptimeout=60
ypmaxretries=13
ypreportinterval=300
ypminreportinterval=10


banfile=sc_serv.ban
savebanlistonexit=1


ripfile=sc_serv.rip
saveriplistonexit=1
riponly=0


srcip=
dstip=
titleformat=
urlformat=


introfile=
backupfile=
specialfiletmpdir=/tmp/
maxspecialfilesize=30000000


configrewrite=1
songhistory=20
cpucount=0
unique=$
include=


allowrelay=1
allowpublicrelay=1
relayreconnecttime=60
maxhttpredirects=7
relayport=
relayserver=


requirestreamconfigs=1



streamid_0=1
streamauthhash_0=abcd
streampath_0=/bitrate/96



streamid_1=2
streamauthhash_1=abcd
streampath_1=/bitrate/96



streamid_2=3
streamauthhash_2=abcd
streampath_2=/bitrate/96




streamid_3=4
streamauthhash_3=abcd
streampath_3=/bitrate/96
streamrelayurl_3=


Below is the sc_trans script. Please check the file and make any recommendations or corrections. Again when I extract the sc_trans/win32 there is no config file
Q.1 Where do I put the information I edited?




serverport_0=8000
serverport_1=8000
serverport_2=8000
serverport_3=8000

serverrip_0=www.server1.com
serverrip_1=www.server2.com
serverrip_2=www.server3.com
serverrip_3=www.server4.com


<or can I do the following:>


serverport_0=8000
serverport_1=80
serverport_2=8080
serverport_3=8000

serverrip_0=www.server1.com
serverrip_1=www.server2.com
serverrip_2=www.server3.com
serverrip_3=www.server4.com

///////////logging options

log=1
logfile=/tmp/sc_trans.log
screenlog=1
shuffledebug=0
shoutcastdebug=0
uvoxdebug=0
gaindebug=0
playlistdebug=0
mp3encdebug=0
mp3decdebug=0
resamplerdebug=0
rgcalcdebug=0
apidebug=0
calendardebug=0
capturedebug=0
djdebug=0
flashpolicyserverdebug=0
fileconverterdebug=0
sourcerelaydebug=0
sourceandpointmanagerdebug=0


/////////flash security

flashpolicyfile=crossdomain.xml
flashpolicyserver=843


////////metadata control

streamtitle=
streamurl=
genre=
aim=
irc=
icq=
public=0
usemetadata=1
metadatapattern=*/%N.*
displaymetadatapattern=%R[-]%A[-]%N


////////playlist control

playlistfile=
shuffle=1
xfade=9
xfadethreshhold=10
playlists=/export/home/friends/playlist
archive=/export/home/friends/playlist/archived/

//////multi options

playlistfilename_0=
playlistfilepath_0=

playlistfilename_1=
playlistfilepath_1=

playlistfilename_2=
playlistfilepath_2=

playlisfilename_3=
playlistfilepath_3=


/////////calendar events

calendarfile=calendar.xml
calendarrewrite=1



///////live capture

capture=1
capturedevice=
captureinput=
capturesamplerate=44100
capturechannels=2



///////dj support

djport=8080
djport2=80
djcipher=foobar
autodumpsourcetime=60
djbroadcasts=/home/hdc/uploads/recorded/
djcapture=1
djfilepattern=_year_month_day_hour_minute



///////dj multi support ( one set for each dj ) just example, of course will change password and login.

djpassword_0=noise
djlogin_0=dj A
djpriority_0=1


djpassword_1=noise
djlogin_1=dj B
djpriority_1=1


djpassword_2=noise
djlogin_2=dj C
djpriority_2=1


djpassword_3=noise
djlogin_3=dj D
djpriority_3=1




////////mp3 encoding enabled

unlockkeyname=
unlockkeycode=


///////encoder options (multi)


encoder_0=mp3
bitrate_0=96000
samplerate_0=44100
channels_0=2
aacbitstreanformat_0=0
mp3quality_0=1
mp3mode_0=1


encoder_1=mp3
bitrate_1=96000
samplerate_1=44100
channels_1=2
aacbitstreanformat_1=0
mp3quality_1=1
mp3mode_1=1


encoder_2=mp3
bitrate_2=96000
samplerate_2=44100
channels_2=2
aacbitstreanformat_2=0
mp3quality_2=1
mp3mode_2=1


encoder_3=mp3
bitrate_3=96000
samplerate_3=44100
channels_3=2
aacbitstreanformat_3=0
mp3quality_3=1
mp3mode_3=1


//////////network options ( multi )

endpointname_0=
outprotocol_0=1
servrip_0=
serverport_0=8010
password_0=foobar
uvoxstreamid_0=1
uvoxuserid_0=
uvoxauth_0=
uvoxradiometadata_0=
uvoxnewmetadata_0=1
uvoxmetadatafudgefactor_0=0.0 seconds
shoutcastmetadatafudgefactor_0=0.0 seconds


endpointname_1=
outprotocol_1=1
servrip_1=
serverport_1=8010
password_1=foobar
uvoxstreamid_1=1
uvoxuserid_1=
uvoxauth_1=
uvoxradiometadata_1=
uvoxnewmetadata_1=1
uvoxmetadatafudgefactor_1=0.0 seconds
shoutcastmetadatafudgefactor_1=0.0 seconds


endpointname_2=
outprotocol_2=1
servrip_2=
serverport_2=8010
password_2=foobar
uvoxstreamid_2=1
uvoxuserid_2=
uvoxauth_2=
uvoxradiometadata_2=
uvoxnewmetadata_2=1
uvoxmetadatafudgefactor_2=0.0 seconds
shoutcastmetadatafudgefactor_2=0.0 seconds


endpointname_3=
outprotocol_3=1
servrip_3=
serverport_3=8010
password_3=foobar
uvoxstreamid_3=1
uvoxuserid_3=
uvoxauth_3=
uvoxradiometadata_3=
uvoxnewmetadata_3=1
uvoxmetadatafudgefactor_3=0.0 seconds
shoutcastmetadatafudgefactor_3=0.0 seconds




///////replay gain control

applyreplaygain=0
defaultreplaygain=0.0
djreplaygain=0.0
capturereplaygain=0
replaygaintmpdir=%TMP%
replaygainrunahead=2
replaygaindontwrite=0
enhancereplaygain=6.0


////other

adminport=8000
adminuser=<my password>
adminpassword=<my password>
vuimagedirectory=""
vuimagesuffix=jpg
vuimagesuffix=bmp
vuimagesuffix=png
vuimagesuffix=tif
vuimagemimetype=image/jpeg
vuimagemimetype=image/bmp
vuimagemimetype=image/png
vuimagemimetype=image/tiff
configrewrite=0
serverbackupfile=
serverintrofile=


//////////admin weblet commands

quit=SIGKILL
rotatelogs=SIGHUP
nextsong=SIGWINCH
loadplaylist=SIGUSR1
toggleshuffle=SIGUSR2
kickdj?duration=03:00:00
vumeterleft=
vumeterright=
restart=restart sc_trans
vu.bin=
timeshift?t=#
writecongig=


////////metadata support



///////filename metadata extraction

useMetadata=1
metadatapattern=*/%A/%R_%N
metadatapath=/home/nradisch/album/artist_song



//////Metadata Construction for Shoutcast 1

%R[-]%A[-]%N[-]%t[-]%u[-]%g


////////Playlist - see doc notes for setup if needed


///////DJ Informations - see doc notes for setup if needed


/////Setting up DJ's in the new scheme - see doc notes for setup if needed and change login, passwords, priority listed above


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

<eventlist>

<event type="dj">
<dj archive="0">dj A</dj>
<calendar>mm:dd:yyyy</calendar>
<calendar start time="09:00:00" duration="03:00:00" repeat="4" />
</event>


<event type="dj">
<dj archive="1">dj B</dj>
<calendar>mm:dd:yyyy</calendar>
<calendar start time="12:00:00" duration="03:00:00" repeat="4" />
</event>


<event type="dj">
<dj archive="2">dj C</dj>
<calendar>mm:dd:yyyy</calendar>
<calendar start time="15:00:00" duration="03:00:00" repeat="4" />
</event>


<event type="dj">
<dj archive="3">dj D</dj>
<calendar>mm:dd:yyyy</calendar>
<calendar start time="18:00:00" duration="03:00:00" repeat="4" />
</event>

</eventlist>

////////dj passwords <of course passwords will be changed>

password=dj A:foobar
password=dj B:foobar
password=dj C:foobar
password=dj D:foobar
shakamedia is offline