PDA

View Full Version : sc_trans: as if i wasn't having enough problems


willms_jay
23rd May 2003, 08:42
i've set up the conf 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=example.lst



; ServerIP/ServerPort are the target server to send to

ServerIP=64.202.98.40

ServerPort=5242



; 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=Samplecity.net's Amateur Electronic Music Radio

StreamURL=http://www.samplecity.net

Genre=electronica house hardhouse hard trance jungle breaks hiphop



; 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



InputSampleRate=22050

InputChannels=1



Bitrate=24000

SampleRate=22050

Channels=1



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

Quality=5





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

CrossfadeMode=1

; Length is ms.

CrossfadeLength=8000



UseID3=0



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

Public=0

when I play the file, which is 24kbs, 22050hz, mono, with this setup, it sounds like a chipmunk song being transfer (i think double or quadruple the speed).

what gives? it sounds fine when i play it on my machine.

WTF?!??!?!

..jordan willms

Jay
23rd May 2003, 09:51
it's quite possible that it just can't play files that are mono or 22050hz, put higher quality files in as the source. You can also just keep your posts in one thread.

matt2kjones
23rd May 2003, 10:45
The probem is this, your source is already a low bitrate and quality, and ur re-encoding it again, which causes more of the track data to be lost.

if your broadcasting @ 24k i really recommend that your source tracks should be 128k at least, better if they are 192k

that way u will get the best quality sound when encoded at 24k

Jay
23rd May 2003, 11:36
Originally posted by matt2kjones
The probem is this, your source is already a low bitrate and quality, and ur re-encoding it again, which causes more of the track data to be lost. no that's not it at all. it's a decoding issue, possibly a bug in sc_trans or with the way it's configured.

matt2kjones
23rd May 2003, 11:46
Originally posted by KXRM
no that's not it at all. it's a decoding issue, possibly a bug in sc_trans or with the way it's configured.

yea your probably right, but what i mean is, if you rencode an already 24k track, to 24k again, the sound quality does get worse, so he is best off in using higher bitrates anyway, to get a better sound

Jay
23rd May 2003, 11:52
that may be but it's still an issue worthy of being looked into. The decoder in sc_trans is not really fully explained anywhere, hince my inability to answer this particular question, I would just have to mess with it with different file types to see what happens.