PDA

View Full Version : sc_trans errors


willms_jay
21st May 2003, 20:33
Hi guys, can't seem to get sc_trans to work, here the output


*******************************************************************************
** TRANScast Distributed Network Audio Content Provider
** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
** Use "sc_trans filename.conf" to specify a config file.
*******************************************************************************
[conf] Warning: invalid item on line 53
<05/21/03@16:33:51> [TRANSCast] DNAS/posix v0.400-LAME (Mar 4 2003) starting up...
<05/21/03@16:33:51> [MAIN] PID: 20603
<05/21/03@16:33:51> [MAIN] Loaded config from sc_trans.conf
<05/21/03@16:33:51> [MAIN] Loading playlist (example.lst)
<05/21/03@16:33:51> [MAIN] Found (1) entries in playlist
<05/21/03@16:33:51> [MAIN] Playlist decoder thread starting
<05/21/03@16:33:51> [DECODE] Opened Freakazoid-Favourites-Endless Time Ending (Khemikal remix).mp3
<05/21/03@16:33:51> [MAIN] Streaming thread starting
<05/21/03@16:33:51> [STREAM] Creating stream socket
<05/21/03@16:33:51> [STREAM] Connected to host server
<05/21/03@16:33:51> [STREAM] Disconnecting from stream host [waiting 10s]

And then it just keeps trying to connect, and keeps getting disconnected....

I've checked the shoutcast server, and it is infact recieving the signal (so a connection has been *brielfy* made.

Any clues?

..jordan willms

matt2kjones
21st May 2003, 21:27
Originally posted by willms_jay
[conf] Warning: invalid item on line 53


whats on line 53?

invis
21st May 2003, 22:03
yeah shouldn't be getting an error on line 53...

it looks like your fine because it says its decoding, but, sc_trans ignores the first line in the playlist, so if you only have one song to stream you have to list it twice..

willms_jay
23rd May 2003, 06:32
i've fixed the error on line 53, but i'm still getting the same problem, it plays about 50 seconds, then suddendly stops and plays the same track for 50 more second, but never plays anything after 50!!!

What is the deal? I've checked the mp3 and it's a full mp3

Jay
23rd May 2003, 06:52
have you tried using another mp3?

henrychung
28th July 2003, 00:41
Hi,

I'm having the exact same problems as described and was wondering if anybody has figured out what's wrong.

Here are the messages that I'm getting:

*******************************************************************************
** TRANScast Distributed Network Audio Content Provider
** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
** Use "sc_trans filename.conf" to specify a config file.
*******************************************************************************
<07/27/03@20:02:54> [TRANSCast] DNAS/posix v0.400-LAME (Mar 4 2003) starting up...
<07/27/03@20:02:54> [MAIN] PID: 14532
<07/27/03@20:02:54> [MAIN] Loaded config from sc_trans.conf
<07/27/03@20:02:54> [MAIN] Loading playlist (/home/hchung/test.m3u)
<07/27/03@20:02:54> [MAIN] Found (3) entries in playlist
<07/27/03@20:02:54> [MAIN] Playlist decoder thread starting
<07/27/03@20:02:54> [DECODE] Opened Talking Heads - Sax And Violins.mp3
<07/27/03@20:02:54> [MAIN] Streaming thread starting
<07/27/03@20:02:54> [STREAM] Creating stream socket
<07/27/03@20:02:54> [STREAM] Connected to host server
<07/27/03@20:02:54> [STREAM] Host server gave success (OK2)
<07/27/03@20:02:54> [STREAM] Stream to xxx.xxx.xxx.13 established
<07/27/03@20:03:39> [STREAM] Disconnecting from stream host [waiting 10s]
<07/27/03@20:03:50> [STREAM] Creating stream socket
<07/27/03@20:03:50> [STREAM] Connected to host server
<07/27/03@20:04:35> [STREAM] Disconnecting from stream host [waiting 10s]


It'll loop between connecting and disconnecting forever. I'm connecting to a live365 server, so it should work with normal shoutcast protocols.

My configuration file is as follows:

; Sample sc_trans/0.35-j config file
; j.frankel 12/05/00
; t.pepper 10/31/00
; (relays not supported, yo)
;
; sc_trans operates in one of two modes, either reading mp3s off disk, decoding,
; re-encoding, and then broadcasting them, or relaying from a shoutcast server,
; transcoding to a lower bitrate, and broadcasting to a new server.

; sc_trans accepts the following signals:
; HUP - flush logfiles (close and reopen) -- will make console logging stop
; WINCH - jump to next song
; USR1 - reload playlist off disk (will not interrupt current playing stream)
; USR2 - toggle shuffle on/off
; TERM - normal sc_trans shutdown (clean)

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

; ServerIP/ServerPort are the target server to send to
ServerIP=xxx.xxx.xxx.13
ServerPort=xxxxx

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

; StreamTitle/URL/Genre define the data that appears on the directory and in the
; stream info.
StreamTitle=MyTitle
StreamURL=http://URL.com
Genre=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=0

; 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=56000
SampleRate=22050
Channels=2

InputSampleRate=44100
InputChannels=2



; Quality is from 1-10. 1 is best, 10 is fastest.
Quality=1

; Mode=0 for none, 1 for 100/100->100/0, 2 for 0/100->100/0
CrossfadeMode=0

; Length is ms.
CrossfadeLength=8000

UseID3=0

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

; Put stuff here for user interaction (AOL IM, ICQ, IRC)
;AIM=AIMHandle
;ICQ=
;IRC=shoutcast


Any help would be appreciated.

--Henry

Also, I'm running RH Linux 8.0.

Jay
28th July 2003, 01:39
do you have more then one item in the playlist?

henrychung
28th July 2003, 06:12
Hi Jay,

Thanks for responding. Much appreciated!

Yeah, I have 3 in the current one, and my first test playlist had about 200, and I was getting the same messages.

Are there perhaps any libs that I need to have installed beforehand?

--Henry

henrychung
5th August 2003, 17:09
Hi All,

After a lot of fuss and muss, I think that the problem is actually with Live365. I have been able to stream to a ShoutCast server without any problems. From what I've read on other sites/posts, Live365 uses a proprietary server that they developed called Nanocaster. It looks like the login protocols are different.

My quick-fix solution is to set up sc_trans and sc_serv on the same machine, and have Live365 relay my microcast. Not the best solution, but it works for the time being

Anyhoo, I was curious if other people have had this problem with sc_trans and Live365, and if so, how it was resolved. Also was curious to know how others are streaming to the Live365 servers with Linux.

Thanks,

--Henry

jjrock
27th April 2004, 18:02
OK,

I have been having the same disconnect issue as many others, however I have a couple things that I'm hoping someone out there can elucidate:

My errors:

<04/27/04@10:53:02> [STREAM] Connected to host server
<04/27/04@10:53:02> [DECODE] Opened Eminem - D12 - 10 - Purple Pills.mp3
<04/27/04@10:53:02> [CONFIG] WARNING: No InputSamplerate defined, assuming 44100!
<04/27/04@10:53:02> [CONFIG] WARNING: No InputChannels defined, assuming 2!
<04/27/04@10:53:02> [STREAM] Disconnecting from stream host [waiting 10s]
<04/27/04@10:53:12> [STREAM] Creating stream socket
<04/27/04@10:53:12> [STREAM] Connected to host server
<04/27/04@10:53:13> [STREAM] Disconnecting from stream host [waiting 10s]

What I have running:

1. SHOUTcast on Linux 9 (a single instance)
2. An sc_trans broadcasting tunes (working OK)
3. A secon sc_trans trying to broadcast tunes

The second sc_trans is showing the errors above. If I close the orginal sc_trans then the second one will connect find.

QUESTION:

Do I need to have a SHOUTcast instance for every sc_trans that I want to broadcast?

What I want to do is this:

Run a series of different playlists simultaneously
(i.e. one for Dead tunes, Zeppelin, mixed, etc....).

Can this be done in this fashion? Or am I doing something wrong?

Please forgive if there is an FAQ somewhere with the answer, cuz I have been looking ....

Regards,
Marshall.

jjrock
28th April 2004, 20:47
*BUMP*

Can someone please answer my question? I currently have a SHOUTcast (sc_serv) instance running for each of the sc_trans channels I am feeding? Is this necessary, or can the sc_serv handle multiple in-coming feeds? I thought it could, but mine does not seem to work as such.

Please advise.

Regards,
JJ.

Jay
29th April 2004, 08:42
yes but make sure that you have a different port set for each sc_serv instance.

jjrock
29th April 2004, 16:51
Yes I only need one sv_serv for multiple sc_trans?

or

Yes, I'm doing it correct with an sc_serv instance for every sc_trans?

Seems to me you are saying I only need one server. So, if this is the case, let's say for example I have ONE sc_serv server setup to run on PortBase=8000, so I can now have multiple input feeds to this via sc_serv? If I want, say three of them, what ports would I configure for these? 8001, 8002 ... 800n?

Please clarify --and thanks again!

JJ.

Jay
29th April 2004, 17:19
no, that's not what I said, you were right on your second statement. You need a new seperate sc_serv instance for each stream you intend to run, you just need to make sure that each one is on a different port

./sc_serv sc_serv.conf
./sc_serv sc_serv1.conf
./sc_serv sc_serv2.conf

where each sc_serv file is seperate and contains seperate variables and the ports are completely different from the other.

8000
8002
8004
for example.

jjrock
29th April 2004, 18:19
Ok, great then ... that's how I have it setup right now. Thanks again .....

JJ.