Old 1st April 2009, 14:00   #161
Magicwoody
Junior Member
 
Magicwoody's Avatar
 
Join Date: Sep 2008
Location: Munich
Posts: 12
calendar.xml example

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">yourDjName</dj>
<calendar starttime="00:00:00" />
</event>
Magicwoody is offline   Reply With Quote
Old 1st April 2009, 15:23   #162
DJ Pedster
Junior Member
 
Join Date: Jul 2008
Location: London
Posts: 40
Quote:
Originally posted by Lubor
I need calendar.xml? Please example for calendar.xml, more in config.

I have djusername:djpassword in field password.

Thank
just add calendar=<path to xml> in the .conf file, then in calendar.xml, just put
eg.
Quote:
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">djusername</dj>
<calendar />
</event>
</eventlist>
<calendar /> will let this user connect anytime
DJ Pedster is offline   Reply With Quote
Old 2nd April 2009, 13:32   #163
Lubor
Junior Member
 
Join Date: Mar 2009
Posts: 6
I have calendar.xml.
Problem with autorization is always.
Lubor is offline   Reply With Quote
Old 2nd April 2009, 13:51   #164
Lubor
Junior Member
 
Join Date: Mar 2009
Posts: 6
Thank

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">admin</dj>
<calendar />
</event>
</eventlist>
Lubor is offline   Reply With Quote
Old 4th April 2009, 15:58   #165
Magicwoody
Junior Member
 
Magicwoody's Avatar
 
Join Date: Sep 2008
Location: Munich
Posts: 12
Hi jkey,

this night ive got a crazy idea.

At our Station, we stream with Sam Broadcaster. There we can use a PAL Script, that inserts alternately a Text from a Textfile, an the Songtitle. This is very useful to prevent us from automatic Streamrippers. So a Song would splittet in many many Parts :-) so the Track is unusable for the Ripperguy *hehe*

AT night we had an auto Dj with sc_trans, but sc_trans unfortunately does not support an automatic Textbanner, like sam does.

It would imho be a nice feature, to Stream Infos like an RDS System with Sc_trans, too. As i said, a crazy dream

Sc_trans sends Metadata alternately:
Dj Lame - The Boring Song
Text from a Textfile
Dj Lame - The Boring Song
Text from a Textfile
..
..
and so on

The Interval could be set at the .conf

I know, i'm crazy *bg*

nice Weekend

Woody
Magicwoody is offline   Reply With Quote
Old 5th April 2009, 09:28   #166
simonp
Junior Member
 
Join Date: Apr 2009
Posts: 5
@tag + neil:

Thanks for this, cracking work as always. Current setup is feeding the cluster with a 128 stream and feeding the modem server with a 24k. Picks up the playlists just fine and lets my DJ's connect on the DJ port (calendar.xml works great!)

My advice to anyone whos thinking about posting here: read the docs. Over and over. If you cant get your config how you want it, I recommend using the TestUI to play around - it writes out the full config file and you can see all the options easily. Dont forget to allow the testUI to save (configwrite=1)

My feedback:

Ive noticed that when using screenlog=1, backgrounding the process and then exiting the shell will result in lots of these in the log file

code:
msg:virtual void AOL_logger::consoleLogger_element::log(const AOL_logger::message&) Error writing to console



Also, the 5555 port seems to be single user, for example when viewing VU meter, only one user may view it at a time. Any subsequent user to view it will result in "stealing" the push JPG for the previous user. No big deal for me, I coded something to work around it, but figured id mention it, incase this generates questions in this forum.

Cross fading seems to have only one mode, i though the original sc_trans could crossfade

100%song1<> 50%song1+2 <> 100song2%

or

100%song2 <> 0%song1+2 <> 100% song2

sc_trans2 seems to only do 100<>50<>100, unless im completely off the mark and have been awake too long to think (probably the latter).

Other than that, it seems to be working perfectly and is exactly what I have been trying to code myself recently. You saved me a bunch of work, so thanks!

To allow DJ's to be identified in the stream, I wrote a proxy which picks up the stream name from the connecting DJ and starts sending it off as a title update to DJport -1. I also blocked the Dj's from being able to talk to djport -1. While this method does stop live DJ's from sending title updates, the "brand" is protected. I was thinking about making the proxy concat stream name + title updates into the title update sent to the sc_serv. Perhaps something similar could be implemented in a future release.


@Magicwoody,
Check this perl script out

http://pastebin.com/f377ca93a

It runs in an infinite loop and will update your stream titles every 2 minutes with the text you put in the code. Maybe it will help you, maybe it wont, but figured id offer

Last edited by simonp; 5th April 2009 at 09:49.
simonp is offline   Reply With Quote
Old 5th April 2009, 11:41   #167
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Since the VU meter was mentioned for the first time in while above i will post my flash VU meter example again.

Rather than using the image push it uses vu.bin,
which returns a continuous stream of bytes which then can be used in flash or other apps to get the current L/R volume level.

Here are the unofficial flash dev example files:-
http://jkey.net/dev/flash_vu_example.zip

Please dont clog up this thread with questions regarding this example flash app pm me for support.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 5th April 2009, 23:03   #168
simonp
Junior Member
 
Join Date: Apr 2009
Posts: 5
Quote:
Originally posted by Jkey
Since the VU meter was mentioned for the first time in while above i will post my flash VU meter example again.
Thanks Jkey, I will check it out! By the way, running sc_trans2 as root per your recommendation is a huge risk (as im sure you are aware), so I would do something like this:

flashpolicyfile=/path/to/crossdomain.xml

flashpolicyserverport=8843

flashpolicyserverdebug=1

Then use IPTABLES (or similar) as root to forward port 843 to 8843 locally.

Great work mate!
simonp is offline   Reply With Quote
Old 5th April 2009, 23:12   #169
simonp
Junior Member
 
Join Date: Apr 2009
Posts: 5
Tag/Neil,
I was wondering, is there a way in future builds to have the playlist "reset" automatically when a DJ disconnects? Instead of carrying in playing from where it was when the DJ connected?

Thanks
Simon
simonp is offline   Reply With Quote
Old 6th April 2009, 00:09   #170
simonp
Junior Member
 
Join Date: Apr 2009
Posts: 5
Ive noticed another issue. If the sc_servs are set to autodumpusers=0 and sc_trans2 is killed and restarted, the listeners (even though still connected to sc_serv) do not receive the new stream until they disconnect/reconnect. Even though the new stream shows up just fine in the sc_serv admin. Odd issue, as im not sure how that could happen
simonp is offline   Reply With Quote
Old 6th April 2009, 08:26   #171
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Quote:
Originally posted by simonp
Thanks Jkey, I will check it out! By the way, running sc_trans2 as root per your recommendation is a huge risk (as im sure you are aware), so I would do something like this:

flashpolicyfile=/path/to/crossdomain.xml

flashpolicyserverport=8843

flashpolicyserverdebug=1

Then use IPTABLES (or similar) as root to forward port 843 to 8843 locally.

Great work mate!
The basis/reference for sc_trans flash policy server:-
http://www.adobe.com/devnet/flashpla...icy_files.html

Flashplayer connects first to port 843 of sc_trans to look
for a security/policy file.you can of course decide not to run as root and turn off the policy server all together,but
flashplayer will take longer to communicate with sc_trans.

Remember sc_trans in deamon mode must be run as root
so its fine to enable the flash policy server to run on 843.
There are limited risks when sc_trans is in daemon mode.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 8th April 2009, 08:32   #172
flieshunter
Junior Member
 
Join Date: Apr 2009
Posts: 4
Variables...

Hi I got a problem.
When dj connects to sc_trans these variables are not read from his config in winamp, therefore not visible in sc_serv admin page.

streamtitle
streamurl
genre
icq etc

When he connects directly through sc_serv port these variables are set on admin page.

Could you implement reading these variables and passing them to sc_serv when dj is connecting through sc_trans?
flieshunter is offline   Reply With Quote
Old 8th April 2009, 10:13   #173
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Sorry those config options/display info are static.
I dont think there are any plans to change this fact.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 8th April 2009, 13:59   #174
DJ Pedster
Junior Member
 
Join Date: Jul 2008
Location: London
Posts: 40
Im unable to understand the API in PHP, more so how to log in without prompts... but anyway, that doesn't matter at present...

Would this work as a temporary measure:
Manually edit the .conf and calendar.xml files with all the details (in PHP) then issue a sc_trans RESTART (via weblet)
Will a restart re-read the config/etc files?

Also, logging in, does sc_trans allow the ?user=blah&pass=blah in the URL?

Regards,

DJ Pedster
DJ Pedster is offline   Reply With Quote
Old 8th April 2009, 18:32   #175
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Quote:
Originally posted by DJ Pedster
Im unable to understand the API in PHP, more so how to log in without prompts... but anyway, that doesn't matter at present...

Would this work as a temporary measure:
Manually edit the .conf and calendar.xml files with all the details (in PHP) then issue a sc_trans RESTART (via weblet)
Will a restart re-read the config/etc files?

Also, logging in, does sc_trans allow the ?user=blah&pass=blah in the URL?
first question yes,but doing it that way defeats the object of having an api
Study your chosen coding language(php) so you do understand how to use it with the api,you will be rewarded better in the end

Second logging in as with everything within the api uses the POST method.You should also read up on this if you wish to use the api.

With a little time,patience and study you will be able to use the api to its full potential,and with the amount of work neil and the team have put in to it you can be sure it will be worth it

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 8th April 2009, 22:39   #176
simonp
Junior Member
 
Join Date: Apr 2009
Posts: 5
Agreed - its a lovely system compared to what tools used to be available.
simonp is offline   Reply With Quote
Old 9th April 2009, 08:23   #177
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
My pm box has now empty sorry for those of you that tryed to pm while it was full

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 22nd April 2009, 16:36   #178
cuddles71
Senior Member
 
Join Date: Oct 2008
Posts: 104
Ok, I'm having quite a bit of trouble with this new version... It plays maybe 10 seconds of a song (regardless of the song), and then drops. No errors far as I can see...

Here's the sc_trans.conf:

;; VU Images
vuimagedirectory=/usr/local/autodj/sc_trans-5-2009-02-03-tmp/vuimages/

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

;;; NETWORK OPTIONS
outprotocol=1
serverip=xxx.xxx.xxx.xxx
serverport=xxxx
password=xxxxxxxx

;;;; 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=DJ JohnnyFever, the AutoDJ
; url related to my stream
streamurl=http://kjsr.net
; my genre
genre=Various
; other assorted stuff
;aim=myaimaddr
;irc=myirc
;icq=myicq
; register with yp
public=1

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

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

;;; OTHER:
adminport=xxxx
adminuser=admin
adminpassword=xxxxxxxx


djpassword_0=xxxxxxxx
djlogin_0=charlie
djpriority_0=10

And the sc_trans.log:

2009-04-22 12:28:43 I msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.25.0 (Feb 3 2009) starting up...
2009-04-22 12:28:43 I msg:[MAIN] PID: 12466
2009-04-22 12:28:43 I msg:[MAIN] Loaded config from sc_trans.conf
2009-04-22 12:28:43 I msg:[MAIN] Streaming thread starting
2009-04-22 12:28:43 I msg:[resampler] deactivated 44100/2 == 44100/2
2009-04-22 12:28:43 I msg:[MAIN] Encoder thread 0 starting
2009-04-22 12:28:43 I msg:[mp3enc] 869259872/44100/2/24000 Fraunhofer IIS MP3s Encoder V04.01.00 (build 2007-03-15)
2009-04-22 12:28:43 I msg:Using internal encoder sample rate of 11025 Hz, bandwidth 4300 Hz, FIR low pass active

2009-04-22 12:28:43 I msg:[mp3enc] 869259872/44100/2/24000 mp3 setup complete
2009-04-22 12:28:43 I msg:[MAIN] broadcast thread 0 starting
2009-04-22 12:28:43 I msg:[STREAM] 808765122 giving replay gain calculator a head start
2009-04-22 12:28:43 I msg:[rgCalc] thread running
2009-04-22 12:28:43 I msg:[STREAM] 808765122 running
2009-04-22 12:28:43 I msg:[STREAM] 808765122 Creating stream socket
2009-04-22 12:28:43 I msg:[MAIN] Playlist decoder thread starting
2009-04-22 12:28:43 I msg:[decode] giving replay gain calculator a head start
2009-04-22 12:28:43 I msg:[decode] begin decoding
2009-04-22 12:28:43 W msg:[playlist] playlist Directory (c:\sc_trans\playlists\/) does not exist
2009-04-22 12:28:43 I msg:[decode] next file is /mnt/music/O/Ozzy Osbourne/Ozzy Osbourne - Never Say Die (Live).mp3
2009-04-22 12:28:43 I msg:[microServer] Listening for connection on port 8557
2009-04-22 12:28:43 I msg:[MAIN] Broadcast Receiver thread starting
2009-04-22 12:28:43 I msg:[ID3V2] version 3.0 tagsize=2464 unsync=0 xheader=0
2009-04-22 12:28:43 W msg:RGAD tag not supported in file /mnt/music/O/Ozzy Osbourne/Ozzy Osbourne - Never Say Die (Live).mp3
2009-04-22 12:28:43 I msg:[STREAM] 808765122 Connected to host server
2009-04-22 12:28:43 I msg:[decode] Ozzy Osbourne - Never Say Die (Live).mp3::8190844::511.928
2009-04-22 12:28:43 I msg:[STREAM] 808765122 Host server gave success (OK2)
2009-04-22 12:28:43 I msg:[STREAM] 808765122 Stream to 208.53.138.151 established
2009-04-22 12:28:43 I msg:[STREAM] 808765122 Sending stream information
2009-04-22 12:28:53 I msg:[shoutcastmetadata] Sending metadata

Any ideas why it keeps dropping?
cuddles71 is offline   Reply With Quote
Old 22nd April 2009, 16:50   #179
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
Quote:
Originally posted by cuddles71
Directory (c:\sc_trans\playlists\/) does not exist
I am curious to know how sc_trans is able to play anything for you with the error above?
fc*uk is offline   Reply With Quote
Old 22nd April 2009, 17:02   #180
cuddles71
Senior Member
 
Join Date: Oct 2008
Posts: 104
Ah, that's the "priority" playlist. I don't have that configured yet.

Could the drop be my bitrate? I know the server I'm using is locked to 24k, but I have the sc_trans.conf set like this:

;; ENCODER OPTIONS
encoder=mp3
bitrate=24000
samplerate=44100
channels=2
cuddles71 is offline   Reply With Quote
Old 22nd April 2009, 17:29   #181
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
cuddles71:

What do you mean when you say it "drops". I don't see any indication in your log of a dropped connection.

--Neil
nradisch is offline   Reply With Quote
Old 22nd April 2009, 17:40   #182
cuddles71
Senior Member
 
Join Date: Oct 2008
Posts: 104
It doesn't show at all in the sc_trans log files. But on the server side, I get this:

<04/22/09@12:38:25> [source] connected from xxx.xxx.xxx.xxx
<04/22/09@12:38:25> [source] icy-name:KJSR: DJ JohnnyFever, the AutoDJ ; icy-genre:Various
<04/22/09@12:38:25> [source] icy-pub:1 ; icy-br:24 ; icy-url:http://kjsr.net
<04/22/09@12:38:25> [source] icy-irc:N/A ; icy-icq:N/A ; icy-aim:N/A
<04/22/09@12:38:27> [dest: 207.200.98.4] starting stream (UID: 9889)[L: 1]{A: SHOUTcast Directory Tester}(P: 1)
<04/22/09@12:38:38> [dest: 207.200.98.4] connection closed (0 seconds) (UID: 9889)[L: 1]{Bytes: 45592}(P: 1)
<04/22/09@12:38:39> [yp_add] yp.shoutcast.com added me successfully
<04/22/09@12:39:02> [source] source dropped connection. disconnecting.
<04/22/09@12:39:02> [main] connecting to yp.shoutcast.com to remove myself [no source]
<04/22/09@12:39:02> [yp_rem] yp.shoutcast.com removed me!

At that point, the sc_trans just drops back to the command prompt.
cuddles71 is offline   Reply With Quote
Old 22nd April 2009, 18:05   #183
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
From your description it sounds like a crash. Could be some weirdness with the mp3 encoder. You have the sample rate awfully high for 24kb. Try setting it to 11025 and see if the problem goes away.

--Neil
nradisch is offline   Reply With Quote
Old 22nd April 2009, 18:06   #184
cuddles71
Senior Member
 
Join Date: Oct 2008
Posts: 104
Wait! Cancel that, I found the problem!

I am a blithering idiot sometimes... I have a script on my autodj computer that checks the stream status once a minute (via cron). And if it finds a .hold file in a certain directory, it issues a kill -9. Well, I had my old sc_trans on hold to test this new one, and the script was looking, finding the hold file, and killing the new sc_trans.
cuddles71 is offline   Reply With Quote
Old 22nd April 2009, 18:12   #185
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
That's pretty funny.

--Neil
nradisch is offline   Reply With Quote
Old 22nd April 2009, 18:15   #186
cuddles71
Senior Member
 
Join Date: Oct 2008
Posts: 104
I DO have a question though...

In the sc_trans.conf, under DJ Support, there's a djpassword line.

BUT, for each DJ to connect, we add a djpassword_0 (or _1, etc). Which password do we use in the live DJ's configuration? Or do they have to be the same?
cuddles71 is offline   Reply With Quote
Old 22nd April 2009, 18:47   #187
nradisch
Senior Member
 
Join Date: Jun 2008
Location: Weston, CT
Posts: 250
remove the djpassword entry and just use the numbered ones

--Neil
nradisch is offline   Reply With Quote
Old 24th April 2009, 12:59   #188
cuddles71
Senior Member
 
Join Date: Oct 2008
Posts: 104
Thank you neil, for your and the other devs work on this. Gave it a thorough test last night, and it worked perfectly!
cuddles71 is offline   Reply With Quote
Old 25th April 2009, 09:31   #189
DJ Pedster
Junior Member
 
Join Date: Jul 2008
Location: London
Posts: 40
I might have found a problem...

When a DJ disconnects, the playlist plays instantly, thusw the DJ gets instantly cut off, and when the next DJ connects, about 5 seconds of the previous DJ's set plays (after it was cut off)... its the same with each MP3s, theres no break, they just merge cutting off the end of the last mp3.....which I find odd as previously there was a few seconds gap between......it seems as if the xfade settings are being ignored.
Quote:
xfade=8
xfadethreshold=20

Regards,

DJ Pedster
DJ Pedster is offline   Reply With Quote
Old 27th April 2009, 01:28   #190
DanceNgine
Junior Member
 
Join Date: Jun 2006
Posts: 20
After many hours, trying to get the testui working, it still won't work.

Maybe there is an easier way to solve my problem: After setting up some DJs in die sc_trans.conf, i am looking for a solution (a script, or something else), to grab the NAME of the actual broadcasting DJ, who is connected to the sc_trans.

Any Ideas?
DanceNgine is offline   Reply With Quote
Old 27th April 2009, 11:46   #191
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
make a request using GetStatus
The returned data will include a <name /> tag.
That will be the name of your connected dj.

Quote:
5. Name of either the playlist (logical) or dj depending on the "source" attribute in the <activesource> tag.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 27th April 2009, 13:45   #192
DanceNgine
Junior Member
 
Join Date: Jun 2006
Posts: 20
Hi Jkey!

Thank you! Got it working now.
DanceNgine is offline   Reply With Quote
Old 27th April 2009, 17:37   #193
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
sorry i did not get your pm's my box was full.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 27th April 2009, 18:30   #194
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Its time now to state that we "moderators/support/users"
can help with anything related to setup problems or api disscussion or implementation in the SHOUTcast tech forums.

Bug reports and missing features are the only thing
that needs to be posted in this thread from now on.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 27th April 2009, 23:48   #195
shaqun85
Junior Member
 
Join Date: Aug 2008
Posts: 9
Hope for stream title

Hello,
I understand that it is not possible to update stream title with sc_trans due to some reasons. This is the most request from shoutcast users however, there is a hope in a different way and this is my suggestion.

If you guys can add a little code to add djname to the song name, it will be a solution at least, listeners will know which DJ is playing and online.

Example:
Possible two variables for this task;
Variable: icy-name from the DSP.
Variable: djname in the sc_trans conf.

sc_trans microserver actions will be:

receiving the dj metadata "songname | icy-name or djname from the conf file"

relaying the dj metadata "songname - (icy-name)"

So sc_trans can relay the DJname or stream title as a song name, so the playing song name will be:

artist - bla bla - (DJName or StreamTitle)

I hope there will be a feature like that.
shaqun85 is offline   Reply With Quote
Old 28th April 2009, 02:16   #196
DanceNgine
Junior Member
 
Join Date: Jun 2006
Posts: 20
Can't (or won't) believe my ears.

This is the scenario:

;; ENCODER OPTIONS
encoder_0=aacp
encoder_1=mp3
encoder_2=aacp
bitrate_0=96000
bitrate_1=160000
bitrate_2=48000
samplerate_0=44100
samplerate_1=44100
samplerate_2=44100
channels_0=2
channels_1=2
channels_2=2

Our DJs are connecting to the transcoder using AAC+, 96 kbp/s, 44.1, Stereo.
As you can see, the first (main) encoder in sc_trans is aacp, 96000, 44100, Stereo.

When I listen to the stream, it sounds like... hmmm... don't know... sounds rubbish. sounds like 22050, 48 kbp/s, Mono... It SOUNDS like. Winamp says: "96 kbp/s, 44,1, Stereo".

Does SC_TRANS de- & encodes the incoming stream, although it has the same bitrate/khz/channels - the SAME format than sc_trans should convert to? Whatever SC_TRANS is doing - it does'nt sounds nice.
DanceNgine is offline   Reply With Quote
Old 28th April 2009, 10:28   #197
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Strange pm or provide a link to the stream in question.

Quote:
Originally posted by DanceNgine
Can't (or won't) believe my ears.

This is the scenario:

;; ENCODER OPTIONS
encoder_0=aacp
encoder_1=mp3
encoder_2=aacp
bitrate_0=96000
bitrate_1=160000
bitrate_2=48000
samplerate_0=44100
samplerate_1=44100
samplerate_2=44100
channels_0=2
channels_1=2
channels_2=2

Our DJs are connecting to the transcoder using AAC+, 96 kbp/s, 44.1, Stereo.
As you can see, the first (main) encoder in sc_trans is aacp, 96000, 44100, Stereo.

When I listen to the stream, it sounds like... hmmm... don't know... sounds rubbish. sounds like 22050, 48 kbp/s, Mono... It SOUNDS like. Winamp says: "96 kbp/s, 44,1, Stereo".

Does SC_TRANS de- & encodes the incoming stream, although it has the same bitrate/khz/channels - the SAME format than sc_trans should convert to? Whatever SC_TRANS is doing - it does'nt sounds nice.

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 28th April 2009, 11:34   #198
DanceNgine
Junior Member
 
Join Date: Jun 2006
Posts: 20
You got a pm
DanceNgine is offline   Reply With Quote
Old 28th April 2009, 13:13   #199
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
ok sent one back,
there were no problems with your streams,but there was some advice in there that may cause problems your end

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Old 1st May 2009, 22:00   #200
earlten
Junior Member
 
Join Date: Apr 2009
Posts: 6
Greetings,
I am using beta 5 to stream to a shoutcast 1 server, and trying to use the dj feature. When I try to connect to the port I set from my remote location I am getting this error:

msg:[djProtocolShoutcast] Login denied from user:password

I have the following in my conf:
djport=9999
; dj password
djpassword=password
djlogin_0=user
djpassword_0=password
djpriority_0=10
calendarfile=/home/shoutcast/beta/calendar.xml

in the calendar.xml I have set:

<event type="dj">
<dj archive="0">user</dj>
<calendar />
</event>

I noticed that every time I restarted sc_trans it was clearing the calendar.xml so I have chmod 555 it to prevent that, but the error continued to occur. I suspected perhaps it was not reading dj info from the calendar.

* Please note, I have substituted my user and password here for security concerns.

***************
I apologize, I found a submission I missed and resolved the issue. Thank you. As the earlier note that I missed initially pointed out, I simply removed the default djpassword= and used the numbered one(s) ( djpassword_0= )
***************

Last edited by earlten; 1st May 2009 at 22:37.
earlten is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

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