Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   sc_trans error, please help ! (http://forums.winamp.com/showthread.php?t=260940)

TrippleEx 2nd December 2006 21:23

sc_trans error, please help !
 
Hello,

i insatall the sc_trans on my Suse Linux Server.
When i start the Script i get following Error:

PHP Code:

g126:/home/www/web8/html/radio/server # ./sc_trans_linux
*******************************************************************************
** 
TRANScast Distributed Network Audio Content Provider
** Copyright (C2000 NullsoftInc.  All Rights Reserved.
** Use 
"sc_trans filename.conf" to specify a config file.
*******************************************************************************
<
12/02/06@23:08:27> [TRANSCastDNAS/posix v0.400-LAME (Mar  4 2003starting up...
<
12/02/06@23:08:27> [MAINPID16622
<12/02/06@23:08:27> [MAINLoaded config from sc_trans.conf
<12/02/06@23:08:27> [MAINLoading playlist (kolayask.lst)
<
12/02/06@23:08:27> [MAINFound (8entries in playlist
<12/02/06@23:08:27> [MAINPlaylist decoder thread starting
<12/02/06@23:08:27> [MAINStreaming thread starting
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/sean_paul-all_out.mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/tamia-cant_get_enough.mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/dj_unk-walk_it_out_(dirty).mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/cham_ft._rihanna-boom_boom.mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/ali_and_gipp_feat._nelly-hard_in_da_paint_(dirty_version).mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/diddy_ft_nicole_and_elephant_man-come_to_me_(remix).mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/gwen_stefani-wind_it_up.mp3skipped
<12/02/06@23:08:27> [MAINError opening /home/www/web8/hmtl/radio/nuke/mp3/tamia-cant_get_enough.mp3skipped
<12/02/06@23:08:27> [MAINRan out of songs!!!
<
12/02/06@23:08:27> [CONFIGWARNINGNo InputSamplerate definedassuming 44100!
<
12/02/06@23:08:27> [CONFIGWARNINGNo InputChannels definedassuming 2!
<
12/02/06@23:08:27> [STREAMCreating stream socket
<12/02/06@23:08:27> [STREAMResolving stream host
Segmentation fault 

The path is the aboulte path to the mp3 files.
I tried with ./radio/nuke/mp3/gwen_stefani-wind_it_up.mp3,
but the same Problem!

Can someone give me an example, to config the mp3 path?

And i dont know why i get the Message:
PHP Code:

WARNINGNo InputSamplerate definedassuming 44100

and
PHP Code:

WARNINGNo InputChannels definedassuming 2 

my config file looks like this:
PHP Code:

PlaylistFile (required EVEN IF RELAYING) - playlist file (to create, use
find /path/to/mp3/directory -type f -name "*.mp3" playlist_filename.lst
PlaylistFile
=kolayask.lst

ServerIP/ServerPort are the target server to send to
ServerIP
=xxxxxxxxxx.xxx
ServerPort
=8100

Password is the password on the sc_serv you're sending to.
Password=xxxxxxxxxxx

; StreamTitle/URL/Genre define the data that appears on the directory and in the
; stream info.
StreamTitle=KolayAsk - FM -
StreamURL=http://www.xxxxxxxxxx.com/radio/nuke/index.php
Genre=xxxxxxx Pop Music

; Logfile optionally denotes a text file to log sc_trans to.  a kill -HUP
; will force a close and re-open of this file (but will also cease logging to
; the console)
LogFile=sc_trans.log

; Shuffle the playlist
Shuffle=1

; Bitrate/SampleRate/Channels recommended values:
; 8kbps 8000/11025/1
; 16kbps 16000/11025/1
; 24kbps 24000/22050/1
; 32kbps 32000/22050/1
; 64kbps mono 64000/44100/1
; 64kbps stereo 64000/22050/2
; 96kbps stereo 96000/44100/2
; 128kbps stere0 128000/44100/2
Bitrate=64000
SampleRate=44100
Channels=2
; Quality is from 1-10. 1 is best, 10 is fastest.
Quality=3


; Mode=0 for none, 1 for 100/100->100/0, 2 for 0/100->100/0
CrossfadeMode=1
; Length is ms.
CrossfadeLength=8000

UseID3=1

; Public determines whether or not this station will show up in the directory
Public=1

; Put stuff here for user interaction (AOL IM, ICQ, IRC)
AIM=Visit us at [url]www.xxxxxx.com[/url]
ICQ=Visit us at [url]www.xxxxxx.com[/url]
IRC=Visit us at [url]www.xxxxxxx.com[/url] 


fc*uk 2nd December 2006 23:54

the channel and sample rate errors are normal, at least as far as I know. I see them every time I start sc_trans.

As for the not being able to play songs. One of two possibilities:

1. are you sure you have an mp3 codec installed? Linuxe uses mpg(mpeg)123. Some distributions do not include this lib due to the heat over mp3's.

2. Have you given the playlist the full paths to the mp3 files? The relative paths seem to confuse the hell outta sc_trans.

TrippleEx 7th December 2006 23:21

Hi,

i think i have not the mp3 Codec....Is it requiered for sc_trans???


Is there a tutorial some where?

fc*uk 8th December 2006 00:36

yes it is. just download the mpg123 codec for linux.

Or google, mpg123

TrippleEx 8th December 2006 15:22

Hi, thank you for your fast reply.

I donwload and install:
http://sourceforge.net/project/showf...ease_id=457464

I do not know whether that the right scource!?

I get this Message now:
code:
-rw-r--r-- 1 root root 6856 Dec 4 20:47 sc_w3c.log
g126:/home/www/web8/html/radio/server # ./sc_trans_linux
*******************************************************************************
** TRANScast Distributed Network Audio Content Provider
** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
** Use "sc_trans filename.conf" to specify a config file.
*******************************************************************************
<12/08/06@17:20:28> [TRANSCast] DNAS/posix v0.400-LAME (Mar 4 2003) starting up...
<12/08/06@17:20:28> [MAIN] PID: 6716
<12/08/06@17:20:28> [MAIN] Loaded config from sc_trans.conf
<12/08/06@17:20:28> [MAIN] Loading playlist (kolayask.lst)
<12/08/06@17:20:28> [MAIN] Found (1) entries in playlist
<12/08/06@17:20:28> [MAIN] Playlist decoder thread starting
<12/08/06@17:20:28> [MAIN] Streaming thread starting
<12/08/06@17:20:28> [MAIN] Error opening /mp3/Nil_Unal_01-Zuhtu.mp3, skipped
<12/08/06@17:20:28> [MAIN] Ran out of songs!!!
<12/08/06@17:20:28> [STREAM] Creating stream socket
<12/08/06@17:20:28> [STREAM] Connected to host server
<12/08/06@17:20:28> [CONFIG] WARNING: No InputSamplerate defined, assuming 44100!
<12/08/06@17:20:28> [CONFIG] WARNING: No InputChannels defined, assuming 2!
Segmentation fault



Is there not a easyer way for making Auto DJ for ShoutCast ?

Is there GUI available for Config it ?

Thank you.

fc*uk 8th December 2006 21:49

no gui for sc_trans.

I noticed in your console output that you are starting sc_trans by :./sc_trans_linux

You need to also give it a config file unless you edited the default sc_trans.conf file.

I usually give my specific configs a name and start sc_trans like: ./sc_trans_lunix configuration_file.conf

Anyway, I always get those sample rate and channel errors everytime I start up one of my boxes, so those are nothing to worry about.

TrippleEx 10th December 2006 00:26

Ok thank you, now the sc_trans is working, but when i want connect with SAM3 to the Server, than i can not connect to the Server, i get "connection error" message from SAM.

Did the sc_trans doesn't automaticly disconnect, when i am connecting with DJ Client like SAM ??

fc*uk 10th December 2006 00:34

I have never used SAM before.

Anyone who uses SAM know if this is possible?

TrippleEx 10th December 2006 14:06

http://www.spacialaudio.com/products/sambroadcaster/

fc*uk 10th December 2006 16:07

you have to kick the source from the server and then connect with your sam client. sc_serv is only going to allow one source to be connected at a time.

Also, please be aware that once you disconnect your SAM3 source, sc_trans is not going to try to reconnect. You are either going to have to manually restart it or setup a cron job to check on it...

Nick@ss 10th December 2006 16:46

this might be an easier solution...

Shoutcast Content Delivery Server

http://www.streamsolutions.co.uk/index.php?page=cds

or our new AAC+ Content delivery Server,

http://www.streamsolutions.co.uk/index.php?page=aaccds

TrippleEx 10th December 2006 18:33

Quote:

Originally posted by fc*uk
you have to kick the source from the server and then connect with your sam client. sc_serv is only going to allow one source to be connected at a time.

Also, please be aware that once you disconnect your SAM3 source, sc_trans is not going to try to reconnect. You are either going to have to manually restart it or setup a cron job to check on it...


Thank you, but i don't want pay !!
I've got my own root Server !!

trossachs 31st March 2008 11:01

I've installed mpg123 to my own machine due to Segmentation errors which I have also been plagued with.

Is there anything I have to do to the shoutcast_trans configuration in order that mpg123 can be recognized?

fc*uk 1st April 2008 21:08

no. If mpg123 is installed properly, sc_trans will use it by default.

trossachs 2nd April 2008 19:07

Oh OK. So shoutcast will know when mpg123 is installed and simply configure of its own accord?

fc*uk 3rd April 2008 00:26

yep. It is a lib that most everything looks for ... no configuration required.

trossachs 3rd April 2008 15:45

OK cool. Well normally shoutcast_trans bombs out after 2 or 3 days. The server restarted on April 1, so will come to you and let you know how long it stays up if it is over a week or so. Much obliged ppl!


All times are GMT. The time now is 14:25.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.