View Single Post
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