Old 10th May 2010, 18:16   #1
Linda Berg
Junior Member
 
Join Date: May 2010
Posts: 6
TRANSCast

hi guys. i cant connect transcast to shoutcast. please help me.

*******************************************************************************
** SHOUTcast Distributed Network Audio Server
** Copyright (C) 1998-2004 Nullsoft, Inc. All Rights Reserved.
** Use "sc_serv filename.ini" to specify an ini file.
*******************************************************************************

Event log:
<05/10/10@20:00:23> [SHOUTcast] DNAS/Linux v1.9.8 (Feb 28 2007) starting up...
<05/10/10@20:00:23> [main] pid: 4660
<05/10/10@20:00:23> [main] loaded config from sc_serv.conf
<05/10/10@20:00:23> [main] initializing (usermax:32 portbase:8000)...
<05/10/10@20:00:23> [main] No ban file found (sc_serv.ban)
<05/10/10@20:00:23> [main] No rip file found (sc_serv.rip)
<05/10/10@20:00:23> [main] opening source socket
<05/10/10@20:00:23> [main] source thread starting
<05/10/10@20:00:23> [main] opening client socket
<05/10/10@20:00:23> [source] listening for connection on port 8001
<05/10/10@20:00:23> [main] Client Stream thread [0] starting
<05/10/10@20:00:23> [main] client main thread starting
<05/10/10@20:03:40> [source] connected from 192.168.0.9
<05/10/10@20:03:40> [source] icy-name:Stream ; icy-genre:Music
<05/10/10@20:03:40> [source] icy-pub:0 ; icy-br:96 ; icy-url:http://192.168.0.9/
<05/10/10@20:03:40> [source] icy-irc:N/A ; icy-icq:N/A ; icy-aim:N/A
<05/10/10@20:03:40> [source] source dropped connection. disconnecting.
^C<05/10/10@20:10:13> [main] SIGINT; exiting! unique)

root@ckkserver:~/Desktop/stream/playlist# ./sc_trans sc_trans.conf
2010-05-10 20:03:39 I msg:<***> Logger startup
2010-05-10 20:03:39 I msg:<***> version 0.2.0.0 build 0.0.14.0
2010-05-10 20:03:39 D msg:<***>
2010-05-10 20:03:39 I msg:*******************************************************************************
2010-05-10 20:03:39 I msg:** TRANScast Distributed Network Audio Content Provider
2010-05-10 20:03:39 I msg:** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
2010-05-10 20:03:39 I msg:** Use "sc_trans filename.conf" to specify a config file.
2010-05-10 20:03:39 I msg:*******************************************************************************
2010-05-10 20:03:39 I msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.14.0 (Aug 13 2008) starting up...
2010-05-10 20:03:39 I msg:[MAIN] PID: 4715
2010-05-10 20:03:39 I msg:[MAIN] Loaded config from sc_trans.conf
2010-05-10 20:03:39 I msg:[MAIN] Streaming thread starting
2010-05-10 20:03:39 I msg:[resampler] deactivated 44100/2 == 44100/2
2010-05-10 20:03:39 I msg:[MAIN] Encoder thread 0 starting
2010-05-10 20:03:39 I msg:[MAIN] broadcast thread 0 starting
2010-05-10 20:03:39 I msg:[mp3enc] 1741403910/44100/2/96000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2010-05-10 20:03:39 I msg:Using internal encoder sample rate of 44100 Hz, bandwidth 11892 Hz, MDCT low pass active

2010-05-10 20:03:39 I msg:[STREAM] 38008615 giving replay gain calculator a head start
2010-05-10 20:03:39 I msg:[rgCalc] thread running
2010-05-10 20:03:39 I msg:[STREAM] 38008615 running
2010-05-10 20:03:39 I msg:[STREAM] 38008615 Creating stream socket
2010-05-10 20:03:39 I msg:[mp3enc] 1741403910/44100/2/96000 mp3 setup complete
2010-05-10 20:03:39 I msg:[STREAM] 38008615 Connected to host server
2010-05-10 20:03:39 I msg:[STREAM] 38008615 Sending stream information
2010-05-10 20:03:39 I msg:[MAIN] Playlist decoder thread starting
2010-05-10 20:03:39 I msg:[decode] giving replay gain calculator a head start
2010-05-10 20:03:39 I msg:[decode] begin decoding
2010-05-10 20:03:39 I msg:[MAIN] Broadcast Receiver thread starting
2010-05-10 20:03:39 E msg:[decode] Playlist has run dry
2010-05-10 20:03:39 I msg:[decode] Exiting decoder thread
2010-05-10 20:03:39 I msg:[source] listening for connection on port 9001
2010-05-10 20:03:39 I msg:[source] thread terminating
2010-05-10 20:03:39 I msg:[mp3enc] 1741403910/44100/2/96000 Exiting encoder thread
2010-05-10 20:03:39 I msg:[MAIN] Exiting loop
2010-05-10 20:03:40 I msg:[rgCalc] thread exiting
2010-05-10 20:03:40 I msg:[mp3enc] 1741403910/44100/2/96000 bIn=0 bOut=0 bps=0 Bps=0
2010-05-10 20:03:40 I msg:[resampler] tIn=0 tOut=0 bIn=0 bOut=0
2010-05-10 20:03:40 I msg:[crossfader] in=0 out=0
2010-05-10 20:03:40 I msg:<***> Logger shutdown

do you need the config files? nice greats from germany. linda
Linda Berg is offline   Reply With Quote
Old 11th May 2010, 00:52   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
2010-05-10 20:03:39 E msg:[decode] Playlist has run dry

Looks like sc_trans is not able to find that playlist.lst file you created for it. Make sure you use the full path to the playlist.lst file and not simply the relative path in the sc_trans config.
fc*uk is offline   Reply With Quote
Old 11th May 2010, 09:32   #3
Linda Berg
Junior Member
 
Join Date: May 2010
Posts: 6
hi, thanks for the fast answer. i must update transcast 0.4 to 2.0 for a customer and i want to test it first on my xubuntu xfce 4. shoutcast and transcast run on the same machine. well, now i'm check the full path on the sc_trans.conf...
Linda Berg is offline   Reply With Quote
Old 11th May 2010, 09:43   #4
Linda Berg
Junior Member
 
Join Date: May 2010
Posts: 6
I cant detect errors. or it may be the /home/../Desktop.. is inappropriate?

sc_trans.conf

PHP Code:
;; ENCODER OPTIONS
encoder
=mp3
bitrate
=96000
samplerate
=44100
channels
=2

;;; NETWORK OPTIONS
outprotocol
=1
serverip
=192.168.0.9
serverport
=8000
password
=XXXX


;;;; LOGGING OPTIONS:
;
where does the log file go
logfile
=/home/ckkserver/Desktop/stream/playlist/sc_trans.log
1 to do screen logging else 0
screenlog
=1

;;;;;; METADATA CONTROL
my stream name
streamtitle
=Stream
url related to my stream
streamurl
=http://192.168.0.9/
my genre
genre
=Music
other assorted stuff
;aim=Abcdef
;irc=Abcdef
;icq=12345678
register with yp
public=0
        
;;;; PLAYLIST CONTROL
your playlist    
playlistfile
=/home/ckkserver/Desktop/stream/playlist/playlist.lst
by default we shuffle the playlistLets turn that off
shuffle 
0
set our crossfade time to 2 secondszero means no xfade
xfade
=2        
file must be at least 20 seconds or we don't crossfade
xfadethreshold=20
; drop folder for priority playlists
playlists=/home/ckkserver/Desktop/stream/playlist/content
; where finished priority playlists get copied
archive=/home/ckkserver/Desktop/stream/playlist/archive

;;;    LIVE CAPTURE:
; don'
t capture
capture
=0    
set capture parameters
;capturedevice=Sound Blaster
;captureinput=Line-In
;capturesamplerate=44100
;capturechannels=2

;;;; DJ SUPPORT:
dj listen port
djport
=9000
dj password
djpassword
=XXXX
idle time until auto-dump
autodumpsourcetime
=30
record dj broadcasts here
djbroadcasts
=/home/ckkserver/Desktop/stream/playlist/recorded

    
;; REPLAY GAIN CONTROL:
applyreplaygain=0
calculatereplaygain
=0
            
;;; OTHER:        
adminport=10000
adminuser
=admin
adminpassword
=XXXX 
sc_serv.conf

PHP Code:
SHOUTcast Distributed Network Audio Server configuration file
Copyright (C1998-2004 NullsoftInc.
All Rights Reserved.
Last modified Mar 17 2004

; If you want to manage multiple configurationsjust copy
this file to another name, and run sc_serv with that name
such as:
sc_serv.exe sc_leet.conf

; ***************************
Required stuff
; ***************************

MaxUser.  The maximum number of simultaneous listeners allowed.
Compute a reasonable value for your available upstream bandwidth (i.e. if
you have 256kbps upload DSL, and want to broadcast at 24kbpsyou would
choose 256kbps/24kbps=10 maximum listeners.)  Setting this value higher
only wastes RAM and screws up your broadcast when more people connect
than you can support.
MaxUser=32

Password.  While SHOUTcast never asks a listener for a password
password is required to broadcast through the server, and to perform
administration via the web interface to this server.  This server should
consist of only letters and numbers, and is the same server your broadcaster
will need to enter in the SHOUTcast Source Plug-in for Winamp.  THIS VALUE
CANNOT BE BLANK.
Password=XXXX

PortBaseThis is the IP port number your server will run on.  The
value, and the value 1 must be available.  If you get a fatal error when
the DNAS is setting up a socket on startupmake sure nothing else on the
machine is running on the same port (telnet localhost portnumber -- if you
get connection refused then you're clear to use that port).  Ports < 1024 
; may require root privledges on *nix machines.  The default port is 8000.
PortBase=8000

; ***************************
; Optional Parameters
; ***************************

; ***************************
; Logging configuration
; ***************************

; LogFile: file to use for logging. Can be '
/dev/null' or 'none'
; or empty to turn off logging. The default is ./sc_serv.log
; on *nix systems or sc_serv_dir\sc_serv.log on win32.
; Note: on win32 systems if no path is specified the location is
; in the same dir as the executable, on *nix systems it is in the
; current directory.
LogFile=sc_serv.log

; RealTime displays a status line that is updated every second
; with the latest information on the current stream (*nix and win32 
; console systems only)
RealTime=1

; ScreenLog controls whether logging is printed to the screen or not
; on *nix and win32 console systems. It is useful to disable this when 
; running servers in background without their own terminals. Default is 1
ScreenLog=1

; ShowLastSongs specifies how many songs to list in the /played.html
; page.  The default is 10.  Acceptable entries are 1 to 20.
ShowLastSongs=10

; TchLog decides whether or not the DNAS logfile should track yp 
; directory touches.  Adds and removes still appear regardless of
; this setting.
; Default is yes
; TchLog=yes

; WebLog decides whether or not hits to http:// on this DNAS will
; be logged.  Most people leave this off because the DSP plug-in
; uses http:// calls to update titles and get the listener count,
; which takes up a lot of log space eventually.  If you want to
; see people making hits on your admin.cgi or index pages, turn
; this back on.  Note that this setting does NOT affect XML stats
; counters for hits to http:// pages.
; Default is no.
; WebLog=no

; W3CEnable turns on W3C Logging.  W3C logs contain httpd-like accounts
; of every track played for every listener, including byte counts those listeners
; took.  This data can be parsed with tools like Analog and WebTrends, or given
; to third parties like Arbitron and Measurecast for their reporting systems.
; Default is Yes (enabled).
W3CEnable=Yes

; W3CLog describes the name of the logfile for W3C logging.  Default logfile is
; sc_w3c.log, in the same directory wherever the DNAS gets started from.
W3CLog=sc_w3c.log


; ***************************
; Network configuration
; ***************************

; SrcIP, the interface to listen for source connections on (or to make relay 
; connections on if relaying). Can and usually will be ANY or 127.0.0.1  
; (Making it 127.0.0.1 will keep other machines from being able to
; broadcast using your shoutcast server )
SrcIP=ANY

; DestIP, IP to listen for clients on (and to contact yp.shoutcast.com)
; can and usually will be be ANY. If your machine has multiple IP addresses,
; set this to the one you want it to be accessed by.
DestIP=ANY

; Yport, port to connect to yp.shoutcast.com on. For people behind caching 
; webproxies, change this to the alternate port (666 is what it might be, 
; check www.shoutcast.com if you have problems). Otherwise, leave this at 80.
; We'
re actively working on re-opening port 666but as of release the only
working port is port 80.
Yport
=80

NameLookups.  Specify 1 to perform reverse DNS on connections.
This option may increase the time it takes to connect to your
server if your DNS server is slow.  Default is 0 (off). 
NameLookups=0

RelayPort and RelayServer specify that you want to be a relay server.
Relay servers act as clients to another server, and rebroadcast.
Set RelayPort to 0RelayServer to empty, or just leave these commented
out to disable relay mode.
RelayPort=8000
RelayServer=192.168.1.58

; ***************************
Server configuration
; ***************************

AdminPassword.  This password (if specifiedchanges the
behavior of Password to be a broadcast-only password, and
limits HTTP administration tasks to the password specified
here.  The broadcasterwith the password abovecan still
log in and view connected usersbut only the AdminPassword
will grant the right to kickban, and specify reserve hosts.
The default is undefined (Password allows control for both 
source and admin)
AdminPassword=XXXX

AutoDumpUsers controls whether listeners are disconnected if the source
stream disconnectsThe default is 0.
AutoDumpUsers
=0

AutoDumpSourceTime specifies how longin secondsthe source stream is
allowed to be idle before the server disconnects it0 will let the source
stream idle indefinately before disconnectingThe default is 30.
AutoDumpSourceTime
=30

ContentDir specifies the directory location on disk of where to stream
on-demand content from.  Subdirectories are supported as of DNAS 1.8.2.
; Default 
is ./contentmeaning a directory named content in the same directory
; as where sc_serv was invoked from.
ContentDir=./content

IntroFile can specify a mp3 file that will be streamed to listeners right
when they connect before they hear the live stream.
Note that the intro file MUST be the same samplerate/channels as the 
live stream in order for this to work properlyAlthough bitrate CAN
varyyou can use '%d' to specify the bitrate in the filename
; (i.eC:\intro%d.mp3 would be C:\intro64.mp3 if you are casting at 64kbps).
The default is no IntroFile
IntroFile=c:\intro%d.mp3

BackupFile can specify a mp3 file that will be streamed to listeners over
; and over again when the source stream disconnectsAutoDumpUsers must be
0 to use this featureWhen the source stream reconnectsthe listeners
are rejoined into the live broadcast.
Note that the backup file MUST be the same samplerate/channels as the 
live stream in order for this to work properlyAlthough bitrate CAN
varyyou can use '%d' to specify the bitrate in the filename
; (i.eC:\backup%d.mp3 would be C:\backup32.mp3 if you are casting at 32kbps).
The default is no BackupFile
BackupFile=C:\intro%d.mp3

TitleFormat specifies a format string for what title is sent to the listener.
; For 
examplea string of 'Justin Radio' forces the title 'Justin Radio' even
when the source changes the titleYou can use up to one '%s' in the string
which lets you contain the title from the source. For example, if your 
TitleFormat is 'Justin Radio: %s', and the source plug-in's title is 
; '
Billy plays the blues', then the net title is 
; '
Justin RadioBilly plays the blues'. Note: only works on non-relay servers.
; The default is no format string. 
; TitleFormat=Justin Radio: %s

; URLFormat specifies a format string for what url is sent to the listener.
; Behaves like TitleFormat (see above).
; The default is no format string.
; URLFormat=http://www.server.com/redirect.cgi?url=%s

; PublicServer can be always, never, or default (the default, heh)
; Any setting other than default will override the public status
; of the source plug-in or of a SHOUTcast server that is being relayed.
PublicServer=never

; AllowRelay determines whether or not other SHOUTcast servers will be
; permitted to relay this server.  The default is Yes.
AllowRelay=Yes

; AllowPublicRelay, when set to No, will tell any relaying servers not
; to list the server in the SHOUTcast directory (non-public), provided
; the relaying server'
Public flag is set to default.  The default is
Yes.
AllowPublicRelay=Yes

MetaInterval specifies how oftenin bytesmetadata sent.
You should really leave this at the default of 8192but the option is 
provided anyway.
MetaInterval=32768

; *****************************
Access Control
; *****************************

ListenerTimer is a value in minutes of maximum permitted time for
a connected listener.  If someone is connected for longer than this
amount of timein minutesthey are disconnected.  When undefined,
there is no limit defined.  Default is undefined.
ListenerTimer=600

BanFile is the text file sc_serv reads and writes to/from
; for the list of clients prohibited to connect to this
server.  It's automatically generated via the web
; interface.
; BanFile=sc_serv.ban

; RipFile is the text file sc_serv reads and writes to/from
; for the list of client IPs which are *ALWAYS* permitted
; to connect to this server (useful for relay servers).
; This file is automatically generated via the web
; interface.  Note that if your server is FULL, and someone
; from a Reserved IP connects, the DNAS will force the person
; listening for the longest time off to make room for the new
; connection.
; RipFile=sc_serv.rip

; RIPOnly, when set to Yes, will only allow IP addresses listed in the Reserved
; IP list to connect and relay.  All other connections for listening will be denied.
; This is really only useful for servers whose sole purpose is to provide the
; primary feed to all public relays.  Setting this value to Yes also forces the
; server into Private mode, since listing this server in the directory would
; be pointless.  Default is No.
; RIPOnly=No

; *****************************
; Extended Logging 
; *****************************

; The old features previously at this location, HistoryLog and CurrentLog, are
; no longer used and succeded by W3C Logging and XML, respectively.

; ***************************
; Mass Configuration
; ***************************

; Unique: assigns a variable name for use in any config item which points to a
; file.  Useful for servers running lots of SHOUTcast servers that have similar
; configuration parameters, excepting logfile names, banfile names, etc.  Any
; parameter that takes a pathname can include the character $, which will
; substitute $ for the variable assigned here.  Keep in mind that the unique
; variable can only be used after it is defined, so don'
try to use a unique
variable substitution in a path before you define it.  For exampleyou 
could set:
Unique=my_server
; and then define Log=/usr/local/shoutcast/$.log in an included configuration 
file.  Default is Unique=$, so that by default any file with in the name 
won't substitute anything at all.

; Include: instructs the sc_serv to read from the named configuration file,
; *at the point of insertion of the Include statement*, and process as though
; the included file was part of itself.  Note that all configuration parameters
; in the DNAS config file are processed first to last, so if an item is defined
; twice in a configuration, the last item to process will be the one that takes
; effect.  For this reason, it'
s usually a good idea to use the Includes first
in a config file.
example:
; Include=/
usr/local/shoutcast/common.conf
; Default is not applicable.

; *****************************
Tweaks
; *****************************
;
DON'T MESS WITH THIS STUFF UNLESS YOU REALLY KNOW WHAT YOU'RE DOING.
DON'T COMPLAIN TO US IF YOU MESS WITH IT AND THINGS BREAK.
; HAVE A NICE DAY.

; CpuCount is used to explicitly limit the DNAS to dominating a finite
; amount of processors in multiprocessor systems.  By default, 
; SHOUTcast creates one thread for every processor it detects in the
; host system, and assigns listeners equally across all the threads.
; In the event SHOUTcast doesn'
t correctly determine the number of
CPUs in your host, or if you for whatever reason want to force
the DNAS to not use other processorsyou can say so here.
; Default 
behavior is to use as many processors as the DNAS detects on
your system.
CpuCount=1

Sleep defines the granularity of the client threads for sending data.
DNAS 1.7.0per client threadwill send up to 1,024 bytes of data
per socket (or less depending on the window available), and then
sleep for the provided duration before repeating the whole process.
Note that making this value smaller will vastly increase CPU usage on 
your machine.  Increasing reduces CPUbut increasing this value too far 
will cause skips.  The value which seems most optimal for 128kbps 
streaming is 833 (833 microseconds per client pollon our test labs.
We wouldn't recommend setting it any lower than 100, or any higher than 
; 1,024.  If you have a slower machine, set this number lower to fix
; skips.
; Default value is 833.
; Sleep=833

; CleanXML strips some whitespace and linefeeds from XML output which
; confuses some (poorly written) XML parsers.  If you get XML rendering errors,
; try turning this on.  Default is No (off).
; CleanXML=No
;
; TAG RULES 
Linda Berg is offline   Reply With Quote
Old 11th May 2010, 10:50   #5
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
Nope, it looks good.

Are you using the full path to the mp3 files in the playlist.lay file?
fc*uk is offline   Reply With Quote
Old 11th May 2010, 16:46   #6
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
There's something wrong with the playlist. Either the playlist file cannot be found, or none of the entries in the playlist can be found. Make sure the file entries in the playlist are also full paths.

--Neil
nradisch is offline   Reply With Quote
Old 12th May 2010, 14:44   #7
Linda Berg
Junior Member
 
Join Date: May 2010
Posts: 6
ok i have the error. only 1 file in playlist. with 2 files it runs human. thanks
Linda Berg is offline   Reply With Quote
Old 12th May 2010, 14:50   #8
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
This is a known error of sc_trans040 --- the first entry in the playlist file is ignored.

This is odd as your config file posted for sc_trans suggests that you are using the sc_trans 2 beta ... This error was fixed in the sc_trans betas ...
fc*uk is offline   Reply With Quote
Old 12th May 2010, 15:45   #9
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
If the first file in the list isn't valid for some reason then it is treated as if it doesn't exist. Essentially I do a wildcard expansion on the filename and if the OS tells me there's no match at all I throw it away.

--Neil
nradisch is offline   Reply With Quote
Old 12th May 2010, 15:49   #10
Linda Berg
Junior Member
 
Join Date: May 2010
Posts: 6
yes i have taken it from the old version. well, later i look at the new one. thanks for the intense support.
Linda Berg is offline   Reply With Quote
Old 12th May 2010, 19:32   #11
Linda Berg
Junior Member
 
Join Date: May 2010
Posts: 6
their is only a windows example. can i find a clean linux example in the forum?

11pm gmt+1:
Quote:
hi i test the new sc_trans on my root server and i became this error ./sc_trans_2: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
-bash: ./sc_trans_2:: No such file or directory

Last edited by Linda Berg; 12th May 2010 at 20:57.
Linda Berg 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