sc_trans playing 2x speed

Talk about Audio On Demand or Streaming
Post Reply
truthstreamdotorg
Posts: 5
Joined: Fri Dec 09, 2005 1:58 am
Location: Orlando,FL
Contact:

sc_trans playing 2x speed

Post by truthstreamdotorg »

For some reason no matter how I encode the files, sc_trans keeps streaming them to the server in doublespeed. Here is the link to the stream:

http://www.truthstream.org:9420/listen.m3u?src=0

and here is a link to one of the songs to be streamed (so you can see how it is encoded):

http://www.truthstream.org/radio/TruthT ... geddon.mp3


here is my sc_trans.conf:

; 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=example.lst

; ServerIP/ServerPort are the target server to send to
ServerIP=truthstream.org
ServerPort=9420

; Password is the password on the sc_serv you\'re sending to.
Password=<BLAH>

; StreamTitle/URL/Genre define the data that appears on the directory and in the
; stream info.
StreamTitle=TruthStream Radio
StreamURL=http://www.TruthStream.org
Genre=rap talk 911 truth

; 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=64000
InputSamplerate=22050
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=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=AIMHandle
ICQ=
IRC=shoutcast
http://www.TruthStream.Org - Streaming Videos of TRUTH to the American People
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

sounds like the sample rate isn't converting correctly or that it is trying to translate a mono stream to stereo and doing it incorrectly. Try re-encoding the song to the same sample rate and channel setting as the actual stream.

BTW I had nothing to do with the sc_trans project, this is a Nullsoft tool, so I am moving this to the Audio Streaming forum.
- Jay
truthstreamdotorg
Posts: 5
Joined: Fri Dec 09, 2005 1:58 am
Location: Orlando,FL
Contact:

i thought i did...

Post by truthstreamdotorg »

what program do you suggest I use to encode?

I tried gxtranscoder 2 and I got the double speed after encoding (instead of now where it encodes fine but streams at 2x)...

these files I converted with audacity - I did 64kbps stereo 22050 sample rate - if you download the sample file i provided and go to its properties it says:

Bitrate: 64kbps
Channels: 2(stereo)
Audio Sample Rate: 22kHz

Whats weird is no matter what I choose as a sample rate - 44k, even 88k - it ALWAYS encodes at 22k.
http://www.TruthStream.Org - Streaming Videos of TRUTH to the American People
truthstreamdotorg
Posts: 5
Joined: Fri Dec 09, 2005 1:58 am
Location: Orlando,FL
Contact:

also...

Post by truthstreamdotorg »

i guess a sort of related question - are there any other audio sources that you guys would suggest besides sc_trans_linux? Im running on a red hat virtual dedicated server with full shell root access . Im messing around with ices, though trying to figure out how to compile...apparently I have to configure some file - Im guessing one of the ones in the conf directory...
are there any other source clients to use with linux?
http://www.TruthStream.Org - Streaming Videos of TRUTH to the American People
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

have you tried lame?
- Jay
truthstreamdotorg
Posts: 5
Joined: Fri Dec 09, 2005 1:58 am
Location: Orlando,FL
Contact:

Post by truthstreamdotorg »

I thought lame is just the codec?

and how the hell do u make that cool thing in your signature telling what youre playing??
http://www.TruthStream.Org - Streaming Videos of TRUTH to the American People
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

well lame will allow you alot of flexibility with regard to how your tracks are encoded, as I said it sounds like sc_trans is just having a problem with the way it is encoded.

The signature is just php :)

I have a similar one that works with radio toolbox in the documentation FAQ.
- Jay
Post Reply