Old 9th January 2011, 15:00   #1
elliott94
Junior Member
 
Join Date: Jan 2011
Posts: 5
Problem with SC_Trans on Ubuntu

Hi everyone.
I've just attempted to install SC_Trans Drop 4 on Ubuntu 10.04, but am having some issues. I managed to do this on Windows last year, but can't remember how I fixed my issue.

After editing sc_trans_demo.conf, I then renamed this to sc_trans.conf (mainly because it's a more user-friendly filename).

I then typed the following into the SSH prompt, after placing the sc_trans file in the root of my sc_trans dir:

./sc_trans sc_trans.conf

I received the following log output:

2011-01-08 19:30:59 I msg:<***> Logger startup
2011-01-08 19:30:59 I msg:<***> version 0.2.0.0 build 0.0.21.0
2011-01-08 19:30:59 D msg:<***>
2011-01-08 19:30:59 I msg:[VUPush] 0 VU images loaded
2011-01-08 19:30:59 I msg:[VUPush] 0 VU images loaded
2011-01-08 19:30:59 I msg:[playlistMgr] playlist load from file ./playlist.lst
2011-01-08 19:30:59 I msg:[playlistMgr] Caching playlist ./playlist.lst
2011-01-08 19:30:59 I msg:[playlistMgr] load complete
2011-01-08 19:30:59 I msg:*******************************************************************************
2011-01-08 19:30:59 I msg:** TRANScast Distributed Network Audio Content Provider
2011-01-08 19:30:59 I msg:** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
2011-01-08 19:30:59 I msg:** Use "sc_trans filename.conf" to specify a config file.
2011-01-08 19:30:59 I msg:*******************************************************************************
2011-01-08 19:30:59 I msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.21.0 (Dec 10 2008) starting up...
2011-01-08 19:30:59 I msg:[MAIN] PID: 7601
2011-01-08 19:30:59 I msg:[MAIN] Loaded config from sc_trans.conf
2011-01-08 19:30:59 I msg:[MAIN] Streaming thread starting
2011-01-08 19:30:59 I msg:[resampler] deactivated 44100/2 == 44100/2
2011-01-08 19:30:59 I msg:[MAIN] Encoder thread 0 starting
2011-01-08 19:30:59 I msg:[MAIN] broadcast thread 0 starting
2011-01-08 19:30:59 I msg:[MAIN] Playlist decoder thread starting
2011-01-08 19:30:59 I msg:[mp3enc] 943589359/44100/2/128000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2011-01-08 19:30:59 I msg:Using internal encoder sample rate of 44100 Hz, bandwidth 15804 Hz, MDCT low pass active

2011-01-08 19:30:59 I msg:[mp3enc] 943589359/44100/2/128000 mp3 setup complete
2011-01-08 19:30:59 I msg:[STREAM] 936760939 giving replay gain calculator a head start
2011-01-08 19:30:59 I msg:[rgCalc] thread running
2011-01-08 19:30:59 I msg:[STREAM] 936760939 running
2011-01-08 19:30:59 I msg:[STREAM] 936760939 Creating stream socket
2011-01-08 19:30:59 I msg:[STREAM] 936760939 Resolving stream host
2011-01-08 19:30:59 I msg:[decode] giving replay gain calculator a head start
2011-01-08 19:30:59 I msg:[decode] begin decoding
2011-01-08 19:30:59 I msg:[playlistMgr] deactivating playlist playlist id=-1
2011-01-08 19:30:59 E msg:[decode] Playlist has run dry
2011-01-08 19:30:59 I msg:[decode] Exiting decoder thread
2011-01-08 19:30:59 I msg:[STREAM] 936760939 Connected to host server
2011-01-08 19:30:59 I msg:[microServer] Listening for connection on port 9877
2011-01-08 19:30:59 I msg:[MAIN] Broadcast Receiver thread starting
2011-01-08 19:30:59 I msg:[MAIN] Exiting loop
2011-01-08 19:30:59 I msg:[mp3enc] 943589359/44100/2/128000 Exiting encoder thread
2011-01-08 19:31:00 I msg:[rgCalc] thread exiting
2011-01-08 19:31:04 I msg:[mp3enc] 943589359/44100/2/128000 bIn=0 bOut=0 bps=0 Bps=0
2011-01-08 19:31:04 I msg:[resampler] tIn=0 tOut=0 bIn=0 bOut=0
2011-01-08 19:31:04 I msg:[crossfader] in=0 out=0
2011-01-08 19:31:04 I msg:<***> Logger shutdown


Here's the contents of my sc_trans.conf file:

;; VU Images
vuimagedirectory=./vuimages

;; ENCODER OPTIONS
encoder=mp3
bitrate=128000
samplerate=44100
channels=2

;;; NETWORK OPTIONS
outprotocol=1
serverip=MyServerIP
serverport=MyServerPort
password=PWSD


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

;;;;;; METADATA CONTROL
; my stream name
streamtitle=MyStreamTitle
; url related to my stream
streamurl=MyStreamURL
; my genre
genre=MyGenre
; other assorted stuff
;aim=myaimaddr
;irc=myirc
;icq=myicq
; register with yp
public=0

;;;; PLAYLIST CONTROL
; your playlist
playlistfile=./playlist.lst
; by default we shuffle the playlist. Lets turn that off
shuffle = 1
; set our crossfade time to 2 seconds. zero means no xfade
xfade=8
; file must be at least 20 seconds or we don't crossfade
xfadethreshold=20
; drop folder for priority playlists
playlists=./playlists
; where finished priority playlists get copied
archive=./playlists/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=MyDJPort
; dj password
djpassword=MyDJPWSD
; idle time until auto-dump
autodumpsourcetime=30
; record dj broadcasts here
djbroadcasts=./recordings


;; REPLAY GAIN CONTROL:
applyreplaygain=0
calculatereplaygain=0

;;; OTHER:
adminport=MyAdminPort
adminuser=MyAdminUsername
adminpassword=MyAdminPass

And finally, the file which I believe is the root of my problem, here's the playlist.lst file:

./MP3/*.mp3

Not sure if this is relevant at all, but when I first ran SC Trans, I was told that the playlists folder didn't exist (for priority playlists). Therefore, I created the playlists/archive folder (I assume I don't need to put anything in there?)

So as you can see, I don't really have any idea of what hte problem can be, does anyone have any ideas?

Thanks a lot.

Elliott.
Edit: I've just realised that I've only got one file in the /MP3 dir, would this make any difference?

Last edited by elliott94; 9th January 2011 at 15:04. Reason: Added info about MP3 files
elliott94 is offline   Reply With Quote
Old 9th January 2011, 19:56   #2
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
you actually have to populate that playlist file with full paths and filenames of the mp3's you want to stream.

In that config file, you also need to give the full path to that playlist.lst file.
fc*uk is offline   Reply With Quote
Old 9th January 2011, 20:19   #3
elliott94
Junior Member
 
Join Date: Jan 2011
Posts: 5
Hi, and thanks for your reply.

This actually fixed my problem, so thanks a lot for that.

I'm now having another problem relating to adding DJ's. I've added the following to sc_trans.conf:

djlogin_0=elliott
djpassword_0=mypwsd

djlogin_1=john
djpassword_1=robspwsd


And the following to calander.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="1">elliott</dj>
<calendar />
</event>

<event type="dj">
<dj archive="1">john</dj>
<calendar />
</event>

</eventlist>


As far as I can tell I haven't messed anything up - do you have any ideas?
Before adding those custom lines, I saaw a value simply called "djpassword", but when I tried to log in with this password I got a "failed password" error.
Why is this line included if it doesn't serve any purpose?

And finally (sorry for all the questions), when launching sc_serv itself, I've seen on several occacians that I've been switched to a window called "droot". Anyone know what this means?

Thanks for all your help, and sorry for all the questions.

Elliott.
elliott94 is offline   Reply With Quote
Old 9th January 2011, 20:40   #4
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
I've not had much experience with the calander.xml file.

However, another forum member, thinkthink, has scripted a SHOUTcast configuration generator. The last I checked, generating a calander file was in it. Might be worth looking into.

http://bogproghome.hopto.org/config_...g_builder.html
fc*uk is offline   Reply With Quote
Old 9th January 2011, 20:48   #5
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by elliott94 View Post
As far as I can tell I haven't messed anything up - do you have any ideas?
Before adding those custom lines, I saaw a value simply called "djpassword", but when I tried to log in with this password I got a "failed password" error.
Why is this line included if it doesn't serve any purpose?
that is used though it depends upon what type of source the DJ is trying to provide i.e. if it's trying to provide a v1 or a v2 source.

in either case the djpassword value is used in all instances (though i can only base that on b39 and b40 of sc_trans, i've no idea about the 2yr old b21 which you are using).

there is more information about the currently supported sc_trans configuration options available via http://dev.winamp.com/wiki/SHOUTcast_DNAS_Transcoder_2

-daz
DrO is offline   Reply With Quote
Old 10th January 2011, 14:38   #6
elliott94
Junior Member
 
Join Date: Jan 2011
Posts: 5
Hi, and thanks for all your help, but I'm still stuck even after reading the wiki article given above.

After reading in the wiki that the "djport" variable opens tghat port plus 1, (I.E. port 9876 would instead open 9877), I then tried to change this in Edcast, but it couldn't connect to the socket. However, interestingly, port 9875 did work.
I know for certain that my password and username are correct - does anyone have any more suggestions?

Thanks.
elliott94 is offline   Reply With Quote
Old 10th January 2011, 21:30   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
not knowing what / how Edcast works i'm not too sure what Edcast is trying to do though with it being an old version of sc_trans it's well before my knowledge of the behaviour of it - if if it is connecting on 9875 then i'd just go with that and be happy

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Tags
linux, sc_trans, shoutcast, ubuntu

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