Old 5th April 2013, 14:02   #1
RaVoR
Junior Member
 
Join Date: Apr 2013
Posts: 2
Streaming AAC & MP3 on same sc_trans and sc_serv instance

Hey there,

I'm trying to create a linux server-setup that:
- have 3 streams (1 mp3 and 2 aac)
- sc_trans normally playing a playlist containing mp3-files

I've done the setup for it, namely 3 encoders in sc_trans (1 mp3 and 2 aac) and 3 streamids in sc_serv. Connection works fine on first sight, but on second something is completly wrong. The problem begins whenever a "normal" client like foobar or vlc is trying to connect to a aac-stream. The server always sends an mp3-stream. The streamID at client connection is 1, everytime... But why?

StreamID = 3
Quote:
Server Status: Server is currently up and private
Stream Status: Stream is up at 56 kbps with 0 of 100 listeners (0 unique)
Content Type: audio/aacp
The log of connecting to stream 3: URL http://<my ip>:8000/lowaac (should map to ID 3)
Quote:
2013-04-04 13:12:20 I msg:[DST 192.168.178.33:54678 sid=1] SHOUTcast 1 client connection accepted. Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
When i connect via FireFox i see this at beginning:
Quote:
ICY 200 OK
icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>
icy-notice2:SHOUTcast Distributed Network Audio Server/posix(linux x64) v2.0.0.29<BR>
[...]
content-type:audio/mpeg
icy-pub:0
icy-br:128
The content type does not match, this should be AAC...

Here are my config files
- sc_serv.conf
Quote:
[...]
portbase=8000
requirestreamconfigs=1
yp2=1
log=1
screenlog=1
logclients=1
logfile=/opt/radio/sc_serv/sc_serv.log
w3cenable=1
w3clog=/opt/radio/sc_serv/sc_w3c.log
publicserver=never
ypaddr=yp.shoutcast.com
ypport=80
ypPath=/yp2
ypTimeout=60
maxuser=100
[...]

streamid_1=1
streampath_1=mp3
streammaxuser_1=0
streamauthhash_1=1234

streamid_2=2
streampath_2=aac
streammaxuser_2=0
streamauthhash_2=1235

streamid_3=3
streampath_3=lowaac
streammaxuser_3=0
streamauthhash_3=1236
- sc_trans.conf
Quote:
usemetadata=1
adminport=8003
adminpassword=***
adminuser=***
[...]
unlockkeyname=***
unlockkeycode=***-***-***
log=1
screenlog=1
logfile=/opt/radio/sc_trans/sc_trans.log
uvoxradiometadata=0
uvoxnewmetadata=1
playlistfile=/opt/radio/sc_trans/playlist.lst
shuffle=0
xfade=1
xfadethreshold=10
calendarfile=/opt/radio/sc_trans/calendar.xml
;djport=8002
djport2=8002
[...]

djlogin_1=ravor
djpassword_1=***
djpriority_1=1

encoder_1=mp3
mp3quality_1=1
bitrate_1=128000
samplerate_1=48000
channels_1=2
outprotocol_1=3
serverip_1=127.0.0.1
serverport_1=8000
password_1=***
streamid_1=1

encoder_2=aacp
bitrate_2=96000
samplerate_2=44100
channels_2=2
outprotocol_2=3
serverip_2=127.0.0.1
serverport_2=8000
password_2=***
streamid_2=2

encoder_3=aacp
bitrate_3=56000
samplerate_3=44100
channels_3=2
outprotocol_3=3
serverip_3=127.0.0.1
serverport_3=8000
password_3=***
streamid_3=3
Thanks in advance

BR
RaVoR
RaVoR is offline   Reply With Quote
Old 5th April 2013, 23:15   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,286
what happens when you connect with a client that can actually play the stream

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 5th April 2013, 23:16   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
http://forums.winamp.com/showthread.php?p=2790357#known #12 despite the docs saying it needs a / at the start...
DrO is offline   Reply With Quote
Old 5th April 2013, 23:58   #4
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,286
documentation ... bah, real men don't need it

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 6th April 2013, 00:00   #5
DrO
 
Join Date: Sep 2003
Posts: 27,873
and real programmers don't make it or is it the other way round...
DrO is offline   Reply With Quote
Old 16th April 2013, 12:19   #6
RaVoR
Junior Member
 
Join Date: Apr 2013
Posts: 2
Thank you for helping. Nevertheless we're running in some serious difficulties with Issue #11. Is there a release-date for the "next public release" since the actual one is from 07/31/2011, which more than a year, with some serious bugs in it. No offense.
RaVoR is offline   Reply With Quote
Old 23rd April 2013, 10:20   #7
DrO
 
Join Date: Sep 2003
Posts: 27,873
no idea, i'm not actively working on SC and only provide what i can with help on the tools as my own time allows.
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Tags
aac, mp3, same instance, sc_serv, sc_trans

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