Old 13th September 2011, 03:59   #1
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
Problem with Darkice?

Hello trying to stream from darkice on a debian system to sc_trans2 on a centOS system, using calendar and djports
I usually stream like this no problem.. with SC1.
how ever firstly I noticed that darkice did not support shoutcast and aacp together
so i fixed that.. and here is its output,
Quote:
./darkice -c darkice3.cfg -v 10
DarkIce 1.0.1 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: darkice3.cfg
13-Sep-2011 04:46:05 Using JACK audio server as input device.
PASSWD DEBUG: bing:testing
loading AACP encoder for SHOUTCAST goddamit
13-Sep-2011 04:46:05 encoding
13-Sep-2011 04:46:05 scheduler high priority 99
13-Sep-2011 04:46:05 Using POSIX real-time scheduling, priority 3
13-Sep-2011 04:46:05 Registering as JACK client darkice-22616
13-Sep-2011 04:46:05 JackDspSource :: do_auto_connect
13-Sep-2011 04:46:05 Connecting jstdin:input1 to darkice-22616:left
13-Sep-2011 04:46:05 Connecting jstdin:input2 to darkice-22616:right
13-Sep-2011 04:46:06 server response length: 18
13-Sep-2011 04:46:06 server response: invalid password

I am using DJPORT not DJPORT2 i keep getting invalid password
here is the calender..
Quote:
cat calendar.xml
<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="0">bing</dj>
<calendar starttime="00:00:00" />
</event>
</eventlist>

here is the shoutcast startup....

Quote:
/sc_trans sc_trans.conf
2011-09-12 23:48:54 I msg:<***> Logger startup
2011-09-12 23:48:54 I msg:<***> version 0.2.0.0 build 0.0.39.0
2011-09-12 23:48:54 D msg:<***>
2011-09-12 23:48:54 I msg:TimeMultiplier = 1 TimeShift = 0
2011-09-12 23:48:54 I msg:[calendarMgr] Adding DJ event m_djName=bing m_archive=0 m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:1432317541,mon:166588088,mday:166588076,hour:166588064,min:166588052,sec:166588040,isdst:1432317541,wday:1414868563,yday:3681606 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
2011-09-12 23:48:54 I msg:[VUPush] 0 VU images loaded
2011-09-12 23:48:54 I msg:[VUPush] 0 VU images loaded
2011-09-12 23:48:54 I msg:[playlistMgr] playlist load from file ./playlist.lst
2011-09-12 23:48:54 W msg:[playlistMgr]The playlist entry ././Silence.mp3 generated no entries
2011-09-12 23:48:54 W msg:[playlistMgr]The playlist entry ./http://stream.selectukradio.tk:8000 generated no entries
2011-09-12 23:48:54 I msg:[playlistMgr] Caching playlist ./playlist.lst
2011-09-12 23:48:54 I msg:[playlistMgr] load complete
2011-09-12 23:48:54 D msg:[djmgr] DJ Information
2011-09-12 23:48:54 D msg:[djmgr] bing - L:bing P:testing R:1 B:0 E:0 C:0
2011-09-12 23:48:54 D msg:[djmgr] dj - L:dj P:noise R:1 B:0 E:0 C:0
2011-09-12 23:48:54 I msg:*******************************************************************************
2011-09-12 23:48:54 I msg:** TRANScast Distributed Network Audio Content Provider
2011-09-12 23:48:54 I msg:** Copyright (C) 2000 Nullsoft, Inc. All Rights Reserved.
2011-09-12 23:48:54 I msg:** Use "sc_trans filename.conf" to specify a config file.
2011-09-12 23:48:54 I msg:*******************************************************************************
2011-09-12 23:48:54 I msg:[TRANSCast] DNAS/posix v 0.2.0.0 b 0.0.39.0 (Feb 22 2010) starting up...
2011-09-12 23:48:54 I msg:[MAIN] PID: 30170
2011-09-12 23:48:54 I msg:[MAIN] Loaded config from sc_trans.conf
2011-09-12 23:48:54 I msg:[MAIN] Streaming thread starting
2011-09-12 23:48:54 I msg:[resampler] resampling 44100/2 == 48000/2
2011-09-12 23:48:54 I msg:[sourceAndEndpointManager] Encoder thread 0 starting
2011-09-12 23:48:54 I msg:[sourceRelay] Thread starting
2011-09-12 23:48:54 I msg:[sourceAndEndpointManager] broadcast thread 0 starting
2011-09-12 23:48:54 I msg:[MAIN] Playlist decoder thread starting
2011-09-12 23:48:54 I msg:[microServer] Listening for connection on port 8901
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 giving replay gain calculator a head start
2011-09-12 23:48:54 I msg:[MAIN] Broadcast Receiver thread starting
2011-09-12 23:48:54 I msg:[rgCalc] thread running
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 running
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Creating stream socket
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Connecting to stream host
2011-09-12 23:48:54 I msg:[decode] giving replay gain calculator a head start
2011-09-12 23:48:54 I msg:[decode] begin decoding
2011-09-12 23:48:54 I msg:[decode] next file is /home/sunscreen/Armin van Buuren ft Sharon den Adel - In and Out of Love (Of.mp3
2011-09-12 23:48:54 I msg:[ID3V2] version 4.0 tagsize=23 unsync=0 xheader=0
2011-09-12 23:48:54 I msg:[AAC] encoder config: sample rate=48000 channelMode=Stereo sbrMode=Normal bitRate=48000 signalType=Default
2011-09-12 23:48:54 I msg:[decode] Armin van Buuren ft Sharon den Adel - In and Out of Love (Of.mp3::3016829::188.552
2011-09-12 23:48:54 I msg:[ID3V2] version 4.0 tagsize=23 unsync=0 xheader=0
2011-09-12 23:48:54 I msg:[AAC] encoder stream type: bsFormat=ADTS bsConfig=adifConfig=bOriginalCopyBit=0 bHomeBit=0 adtsConfig=bWriteAdtsCRCheck=0 bOriginalCopyBit=0 bHomeBit=0 numSubFrames=1 bMp2AdtsPce=0 sendAdtsPceInterval=1 sendAdtsPceOffset=0 latmLoasConfig=bSendMuxConfigInBand=1 bWriteCRCheck=0 numSubFrames=1 sendConfigDataInterval=1 sendConfigDataOffset=0 ascConfig=signallingMode=Implicit bWriteSbrCrc=0 sendSbrHeaderInterval=1 sendSbrHeaderOffset=0
2011-09-12 23:48:54 I msg:[ID3V2] version 4.0 tagsize=23 unsync=0 xheader=0
2011-09-12 23:48:54 I msg:[AAC] encoder configuration: qualityMode=Highest allowNarrowing=1 allowTns=1 allowPns=0 requestedBandwidth=0 codecDelay=4307 effectiveBandwidth=16875
2011-09-12 23:48:54 I msg:[AAC] aac setup complete
2011-09-12 23:48:54 I msg:[ID3V2] version 4.0 tagsize=23 unsync=0 xheader=0
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Sending Ultravox 2.1 authentication
2011-09-12 23:48:54 I msg:[ID3V2] version 4.0 tagsize=23 unsync=0 xheader=0
2011-09-12 23:48:54 I msg:[ID3V2] version 4.0 tagsize=23 unsync=0 xheader=0
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Mime type
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Broadcast setup
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Negotiating buffer sizes
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Negotiated buffer size is 120KB
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Negotiating payload sizes
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Negotiated payload size is 16377
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Configuring ICY-NAME [SelectUKradio Shoutcast2 server]
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Configuring ICY-GENRE [house]
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Configuring ICY-URL [http://www.selectukradio.com]
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Configuring ICY-PUB [0]
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Flush metadata
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Standby
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Streaming
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Sending metadata 3902[<?xml version="1.0" encoding="UTF-8" ?>
<metadata>
<TIT2>Armin van Buuren ft Sharon den Adel - In and Out of Love (Of</TIT2>
<extension>
<title seq="1">Armin van Buuren ft Sharon den Adel - In and Out of Love (Of</title>
<title seq="2">Adventures_of_Stevie_V_Dirty_Cash__money_talks_</title>
<title seq="3">Awesome_Electro_House_Tune</title>
<title seq="4">ApexDubb_-_Owl_City_-_FireFlies_Electro_flies_hardfloor_remix_</title>
<soon>ApexDubb_-_Owl_City_-_FireFlies_Electro_flies_hardfloor_remix_</soon>
</extension>
</metadata>
]
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Clearing backup file from server.
2011-09-12 23:48:54 I msg:[UVOX2] 1572209862 Clearing intro file from server.
2011-09-12 23:48:56 D msg:[djmgr] DJ bing enabled. Archive flag is false
2011-09-12 23:48:58 D msg:[djProtocolShoutcast] State EMPTY
2011-09-12 23:48:58 D msg:[djProtocolShoutcast] State NEEDPASS
2011-09-12 23:48:58 D msg:[djProtocolShoutcast] State CHECKPASS
2011-09-12 23:48:58 D msg:[djmgr] DJ SOURCE bing requesting run permission
2011-09-12 23:48:58 D msg:[djmgr] DJ SOURCE bing not found. Run permission denied.
2011-09-12 23:48:58 W msg:[djProtocolShoutcast] Login denied from SOURCE bing:testing
2011-09-12 23:48:58 D msg:[djProtocolShoutcast] State SENDREPLY
2011-09-12 23:48:58 D msg:[djProtocolShoutcast] State KILL
2011-09-12 23:48:58 D msg:[djProtocolShoutcast] State KILL

2011-09-12 23:49:04 I msg:[MAIN] Exiting loop
2011-09-12 23:49:04 I msg:[AAC] Exiting encoder thread
2011-09-12 23:49:04 I msg:[decode] Exiting decoder thread
2011-09-12 23:49:04 I msg:[rgCalc] thread exiting
2011-09-12 23:49:04 I msg:[resampler] tIn=54.7527 tOut=54.7527 bIn=9658368 bOut=10512512
2011-09-12 23:49:04 I msg:[crossfader] in=54.7527 out=52.7527
2011-09-12 23:49:04 I msg:<***> Logger shutdown
and last but not least sc_trans.conf ..

Quote:
cat sc_trans.conf
encoder=aacp
encoder_0=aacp
bitrate_0=48000
samplerate_0=48000
channels_0=2

outprotocol_0=3
serverip_0=127.0.0.1
serverport_0=8099
uvoxauth_0=testing
uvoxstreamid_0=1

; calendar
calendarrewrite=0
calendarfile=./calendar.xml

logfile=./logfile.conf
screenlog=1

streamtitle=SelectUKradio Shoutcast2 server
streamurl=http://www.selectukradio.com
genre=house
aim=myaimaddr
irc=myirc
icq=myicq
public=0

playlistfile=./playlist.lst
;shuffle = 0
xfade=2
xfadethreshold=20

capture=0
djport_1=8900
djpassword_1=testing
djdebug=1

;djlogin_0=testing
;djpassword_0=thisis

djlogin_1=bing
;djpassword_1=testing
;djpriority_1=1
autodumpsourcetime=10

applyreplaygain=0
calculatereplaygain=0

adminport=5000
adminuser=admin
adminpassword=goaway
[root@server linux]# mcedit sc_trans.conf

[root@server linux]# cat sc_trans.conf
encoder=aacp
encoder_0=aacp
bitrate_0=48000
samplerate_0=48000
channels_0=2

outprotocol_0=2
serverip_0=127.0.0.1
serverport_0=8099
uvoxauth_0=testing
uvoxstreamid_0=1

; calendar
calendarrewrite=0
calendarfile=./calendar.xml

logfile=./logfile.conf
screenlog=1

streamtitle=SelectUKradio Shoutcast2 server
streamurl=http://www.selectukradio.com
genre=house
aim=myaimaddr
irc=myirc
icq=myicq
public=0

playlistfile=./playlist.lst
;shuffle = 0
xfade=2
xfadethreshold=20

capture=0
djport_1=8900
djpassword_1=testing
djdebug=1

;djlogin_0=testing
;djpassword_0=thisis

djlogin_1=bing
;djpassword_1=testing
;djpriority_1=1
autodumpsourcetime=10

applyreplaygain=0
calculatereplaygain=0

adminport=5000
adminuser=admin
adminpassword=goaway
any help would be appreciated .. and as I said I had no problems streaming to shoutcast1 with my setup before.. and I take it shoutcast2/sc_trans2 is actually backward compatible and not just backward ???
the sc_trans beta 5 seamed to not mind streaming in mp3 for me... at least it never complained about it... but the same symptoms persisted with it not accepting the DJ connection ..
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 08:52   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
the first thing which jumps out is that there is no djpassword_0 entry enabled (which is the one i'd expect to see for the 'bing' dj - as the commented out entries for it mean there's no password loaded.

second thing is that you're using a really old version of the transcoder (unless that's so as not to have to get the mp3 license) as there's been a lot of fixes since the build you're using.

-daz
DrO is offline   Reply With Quote
Old 13th September 2011, 12:11   #3
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
Quote:
Originally Posted by DrO View Post
the first thing which jumps out is that there is no djpassword_0 entry enabled (which is the one i'd expect to see for the 'bing' dj - as the commented out entries for it mean there's no password loaded.

second thing is that you're using a really old version of the transcoder (unless that's so as not to have to get the mp3 license) as there's been a lot of fixes since the build you're using.

-daz
hello daz... no this cant be the issue
the dj ports convention is from djxxxxx_1 not 0

Quote:
djport=8504
djdebug=1
djlogin_0=bing
djpassword_0=testing
djpriority_0=1
Quote:
2011-09-13 08:04:41 I msg:[CALENDARMGR] Adding DJ event: m_djName=bing m_archive=0 m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_r
then
Quote:
I msg:[CALENDARMGR] Removing event m_djName=bing m_archive=0 m_id=1 m_startDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_endDate=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_duration=0 m_timeOffset=year:0,mon:0,mday:0,hour:0,min:0,sec:0,isdst:0,wday:0,yday:0 m_hasStartDate=0 m_hasEndDate=0 m_hasDuration=0 m_hasTimeOffset=0 m_repeat=0
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 12:25   #4
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by SUNSCREEN99 View Post
hello daz... no this cant be the issue
the dj ports convention is from djxxxxx_1 not 0
not with the version of the Transcoder you're using as the base of all of the options was changed in build 48.

the documentation on the wiki / shipped in the Transcoder installer / archive refers to the currently supported version.

so if you're using the unsupported build 39, then you need to use options from _0 and not from _1. though really i cannot provide support for a version which shouldn't be used as i've no simple way of debugging issues against a version which is 3 public builds the currently provided version.

-daz
DrO is offline   Reply With Quote
Old 13th September 2011, 12:46   #5
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
I msg:<***> version 2.0.0.51
ok i should of mentioned.. I upgraded this morning
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 12:48   #6
DrO
 
Join Date: Sep 2003
Posts: 27,873
ok, if you're using the current version then i'm having to assume that the following you've posted is what you're using
Quote:
djport=8504
djdebug=1
djlogin_0=bing
djpassword_0=testing
djpriority_0=1
and if that is so, then you'd need to change it to be
Quote:
djport=8504
djdebug=1
djlogin_1=bing
djpassword_1=testing
djpriority_1=1
-daz
DrO is offline   Reply With Quote
Old 13th September 2011, 12:55   #7
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
ok .. then its still not accepting the pw
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 13:09   #8
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
Now this is the complaint

2011-09-13 09:02:57 D msg:[DJMGR] DJ `SOURCE bing' requesting run permission
2011-09-13 09:02:57 D msg:[DJMGR] DJ `SOURCE bing' not found. Run permission denied.
2011-09-13 09:02:57 W msg:[DJPROTOCOLSHOUTCAST] Login denied from SOURCE bing:testing
the user is not found... even though we have the djxxx_1 properly defined using > 45, and the user is defined in the callender.xml

sorry getting confused and frustrated now ...
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 13:14   #9
DrO
 
Join Date: Sep 2003
Posts: 27,873
the problem is the DJ name isn't valid as 'SOURCE bing' is what the Transcoder is determining is the name part from the 'name:Password' format that it expects DJ passwords to be received as.

all i can say is to check the details in the source you're using as trying your config file (and from what you've said), the test worked out when using the Source DSP. so that points it at being the source you're trying to use possibly not being correct for handling DJ connection passwords.

-daz
DrO is offline   Reply With Quote
Old 13th September 2011, 13:21   #10
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
Yes thanks daz... you gave me the prod to make the penny drop here is the bug that might affect allot of shoutcast 1 DSP's for DJport use.

from the function sendLogin()
Quote:
if (needsMountPoint) {
os << "SOURCE ";
}

/* first line is the password in itself */
os << getPassword();
os << "\n";
so really its sending U:SOURCRE P:bingassword <-- dsp1 encoders need to support parsing that format

heheh seems : bing : is a smiley here
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 13:35   #11
DrO
 
Join Date: Sep 2003
Posts: 27,873
if the v1 source is implemented correctly then for 'password' it should happily take 'name:Password' in the password field (or however it has been declared in the source used) and should then work.

from what you've posted, the Darkice source you're using appears to be doing something which isn't part of the SHOUTcast v1 spec as the 'needsMountPoint' check sounds like something from Icecast handling as nowhere in the details i have for the tools (as i'm the current dev monkey) references any 'SOURCE' addition on the front of the SHOUTcast v1 source parameters.

Quote:
Originally Posted by SUNSCREEN99 View Post
heheh seems : bing : is a smiley here
the smiley is coming from the : p (hence my use of a capitol P)

-daz
DrO is offline   Reply With Quote
Old 13th September 2011, 13:39   #12
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
13-Sep-2011 14:38:28 debug login: SOURCE bing:testing
/test.aac

correct it is the unnescessary mountpoint setting in the configuration file of darkice is triggering the change.



ncd209@audioprocessor:~/darkice-read-only/src$ ./darkice -c darkice3.cfg -v 10
DarkIce 1.0.1 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.

Quote:
Using config file: darkice3.cfg
13-Sep-2011 14:42:14 Using JACK audio server as input device.
FORMAT: bing:testing
loading aacp encoder for SHOUTCAST
13-Sep-2011 14:42:14 encoding
13-Sep-2011 14:42:14 scheduler high priority 99
13-Sep-2011 14:42:14 Using POSIX real-time scheduling, priority 3
13-Sep-2011 14:42:14 Registering as JACK client darkice-30647
13-Sep-2011 14:42:14 JackDspSource :: do_auto_connect
13-Sep-2011 14:42:14 Connecting jstdin:input1 to darkice-30647:left
13-Sep-2011 14:42:14 Connecting jstdin:input2 to darkice-30647:right
13-Sep-2011 14:42:14 debug login: bing:testing

13-Sep-2011 14:42:14 server response length: 20
13-Sep-2011 14:42:14 server response: OK2
icy-caps:11

�]oN��� f����� (U��J ���
13-Sep-2011 14:42:14 Using aacplus codec
13-Sep-2011 14:42:14 nChannelsAAC 2
13-Sep-2011 14:42:14 sampleRateAAC 24000
13-Sep-2011 14:42:14 inSamples 4096
13-Sep-2011 14:42:14 MultiThreadedConnector :: tranfer, bytes 0
13-Sep-2011 14:42:14 MultiThreadedConnector :: ThreadData :: threadFunction, was (thread, priority, type): 0x9ecd508 3 SCHED_FIFO
13-Sep-2011 14:42:14 MultiThreadedConnector :: ThreadData :: threadFunction, now is (thread, priority, type): 0x9ecd508 1 SCHED_FIFO
13-Sep-2011 14:42:33 BufferedSink, new peak: 287
13-Sep-2011 14:42:33 BufferedSink, remaining: 30433
13-Sep-2011 14:42:33 BufferedSink, new peak: 541
13-Sep-2011 14:42:33 BufferedSink, remaining: 30179
13-Sep-2011 14:42:33 BufferedSink, new peak: 804
13-Sep-2011 14:42:33 BufferedSink, remaining: 29916
13-Sep-2011 14:42:33 BufferedSink, new peak: 1072
13-Sep-2011 14:42:33 BufferedSink, remaining: 29648
13-Sep-2011 14:42:33 BufferedSink, new peak: 1319
13-Sep-2011 14:42:33 BufferedSink, remaining: 29401
13-Sep-2011 14:42:33 BufferedSink, new peak: 1567
13-Sep-2011 14:42:33 BufferedSink, remaining: 29153
13-Sep-2011 14:42:33 BufferedSink, new peak: 1824
13-Sep-2011 14:42:33 BufferedSink, remaining: 28896
13-Sep-2011 14:42:33 BufferedSink, new peak: 2079
13-Sep-2011 14:42:33 BufferedSink, remaining: 28641
13-Sep-2011 14:42:33 BufferedSink, new peak: 2321
13-Sep-2011 14:42:33 BufferedSink, remaining: 28399
13-Sep-2011 14:42:33 BufferedSink, new peak: 2568
13-Sep-2011 14:42:33 BufferedSink, remaining: 28152
13-Sep-2011 14:42:33 BufferedSink, new peak: 2812
13-Sep-2011 14:42:33 BufferedSink, remaining: 27908
13-Sep-2011 14:42:33 BufferedSink, new peak: 3067
13-Sep-2011 14:42:33 BufferedSink, remaining: 27653
13-Sep-2011 14:42:33 BufferedSink, new peak: 3364
13-Sep-2011 14:42:33 BufferedSink, remaining: 27356
13-Sep-2011 14:42:33 BufferedSink, new peak: 3620
13-Sep-2011 14:42:33 BufferedSink, remaining: 27100
13-Sep-2011 14:42:33 BufferedSink, new peak: 3880
13-Sep-2011 14:42:33 BufferedSink, remaining: 26840
13-Sep-2011 14:42:33 BufferedSink, new peak: 4135
13-Sep-2011 14:42:33 BufferedSink, remaining: 26585
13-Sep-2011 14:42:33 BufferedSink, new peak: 4394
13-Sep-2011 14:42:33 BufferedSink, remaining: 26326
13-Sep-2011 14:42:33 BufferedSink, new peak: 4658
13-Sep-2011 14:42:33 BufferedSink, remaining: 26062
13-Sep-2011 14:42:33 BufferedSink, new peak: 4904
13-Sep-2011 14:42:33 BufferedSink, remaining: 25816
13-Sep-2011 14:42:33 BufferedSink, new peak: 5156
13-Sep-2011 14:42:33 BufferedSink, remaining: 25564
13-Sep-2011 14:42:33 BufferedSink, new peak: 5417
13-Sep-2011 14:42:33 BufferedSink, remaining: 25303
SUNSCREEN99 is offline   Reply With Quote
Old 13th September 2011, 13:59   #13
DrO
 
Join Date: Sep 2003
Posts: 27,873
i'm really not sure of the point of the above log is for (have removed the duplicate post of it as well) unless it's showing it's working (never having heard of Darkice until today and especially never having used it i don't know what it is meant to output).

all i can say is that it's clearly an issue with Darkice not working properly as a DJ source and not an issue with the Transcoder itself and would suggest you fix the code or change any options to ensure that 'SOURCE' is not prefixed on the start of the password details.

-daz
DrO is offline   Reply With Quote
Old 15th September 2011, 03:29   #14
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
sorry for the dupe.... darkice is not broken, it was just miss configured a little.. the shoutcast/icecast settings were mixed up.. it could be more discriminating in the code for the login.. any way The thing is i debuged darkice and it is sending the encoded aacp to the server the server is just not serving it back out for some reason..
you hear sc_trans fade to the dj source but then no data arrives for the client.

AACP works when darkice encodes to icecast..
the encoder its self is working
the login process is working see log below.
code:
2011-09-15 04:24:30 I msg:[DJMGR] No DJ currently active. Run permission granted for `bing'
2011-09-15 04:24:30 I msg:[DJPROTOCOLSHOUTCAST] Connected
2011-09-15 04:24:30 D msg:[DJPROTOCOLSHOUTCAST] State SENDREPLY
2011-09-15 04:24:30 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETICY
2011-09-15 04:24:31 D msg:[DJPROTOCOLSHOUTCAST] State GETSTREAM
2011-09-15 04:24:31 D msg:[DECODE] Decoding DJ stream. Type is [mpeg]
2011-09-15 04:24:31 I msg:[BROADCASTSTALLMANAGER] Timed content set to TRUE
2011-09-15 04:24:32 I msg:[RESAMPLER] Resampling 22050/2 == 44100/2
2011-09-15 04:24:32 I msg:[RESAMPLER] Resampling 22050/2 == 44100/2


do you have any links to protocol or info for v1/v2 source's ??
is there any RFC?
SUNSCREEN99 is offline   Reply With Quote
Old 15th September 2011, 09:11   #15
DrO
 
Join Date: Sep 2003
Posts: 27,873
http://wiki.winamp.com/wiki/SHOUTcas...otocol_Details is the v2 details, there's never really been a true v1 documentation - something that is on my list to consolidate from other sources / against the code but it's way down the list of things to do.

however, from what you're saying, if Darkice is serving aacp, then msg:[DECODE] Decoding DJ stream. Type is [mpeg] is indicating the wrong type is being sent in the header which would most likely explain why you're not getting anything out - as the Transcoder uses the type to determine the decoder to use.

-daz
DrO is offline   Reply With Quote
Old 15th September 2011, 12:34   #16
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
This is what i get from opening the test.aac stream in mplayer:

Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))


aacp is classified as mpeg, client players agree..
i think we are getting closer .. "Input bit rate missing" - I noticed there is a part of the shoutcast login code that sets the bitrate variable but it never used it ??? something tells me it should of..
SUNSCREEN99 is offline   Reply With Quote
Old 15th September 2011, 13:49   #17
DrO
 
Join Date: Sep 2003
Posts: 27,873
when i talk about type, i mean that in the 'content-type' sent in the http/icy header needs to be 'audio/aacp' if you're sending aac. sending that as 'audio/mpeg' when it's not an mp3 stream will cause the transcoder to act in the way that you're seeing.

the following the main header values which need to be set when doing the initial connect as a source:
Quote:
icy-name // station name
icy-genre // genre (from supported list)
icy-url // website associated with station
icy-irc // not really used now
icy-icq // not really used now
icy-aim // not really used now
icy-pub // 1 for public, 0 for private
icy-br // stream's bitrate
content-type // audio/mpeg or audio/aacp
-daz
DrO is offline   Reply With Quote
Old 15th September 2011, 15:09   #18
SUNSCREEN99
Junior Member
 
Join Date: Sep 2011
Posts: 21
Quote:
Originally Posted by DrO View Post
when i talk about type, i mean that in the 'content-type' sent in the http/icy header needs to be 'audio/aacp' if you're sending aac. sending that as 'audio/mpeg' when it's not an mp3 stream will cause the transcoder to act in the way that you're seeing.

the following the main header values which need to be set when doing the initial connect as a source:-daz
SOLVED!

Yes it was not sent by darkice... that was the prolem and it work now yay
I found this also pasted on lisp.orgs pastebin..

Thanks for getting through this with me..

Quote:
ALL THIS HAPPENS ON BASE PORT + 1

- source sends password:

password\n

- server sends this if password is ok:

OK2\r\n
icy-caps:11\r\n
\r\n

- server sends this if password is not ok:

invalid password\r\n

- source header:

icy-name:foobar\n
icy-genre:foo\n
icy-url:http://foo.com\n
icy-irc:#foobar\n
icy-icq:0\n
icy-aim:N/A\n
icy-pub:1\n
icy-br:24\n
content-type:audio/aacp\n
\n
<AUDIO STREAM IS HERE>

ALL THIS HAPPENS ON BASE PORT

- source sends server this request periodically

GET /admin.cgi?pass=changeme&mode=updinfo&song=Ian%20Van%20Dahl%20-%20Walking%20Away&url= HTTP/1.0\n
User-Agent: ShoutcastDSP (Mozilla Compatible)\n
\n

- clients connect the following way by sending this request:

GET / HTTP/1.0\r\n

Host: 160.79.128.40\r\n

User-Agent: WinampMPEG/5.35\r\n

Accept: */*\r\n

Icy-MetaData:1\r\n

Connection: close\r\n
\r\n

- server responds to client and sends the following header:

ICY 200 OK\r\n

icy-notice1:<BR>This stream requires <a href="http://www.winamp.com/">Winamp</a><BR>\r\n

icy-notice2:SHOUTcast Distributed Network Audio Server/Linux v1.9.5<BR>\r\n

icy-name I G I T A L L Y - I M P O R T E D - Future Synthpop - Finest selection of futurepop and synthpop!!\r\n

icy-genre:Synthpop Electronic Industrial\r\n

icy-url:http://www.di.fm/synthpop\r\n

content-type:audio/aacp\r\n

icy-pub:1\r\n

icy-metaint:8192\r\n

icy-br:24\r\n
\r\n
<AUDIO STREAMING DATA WOULD BE HERE>

Now according to icy-metaint we will receive metadata (song title) every n bytes where n is the number in that field. The length
the metadata is 64 bytes.

The metadata format looks like this:

StreamTitle='Virtual Server - Divide (Tecnoman Louder Remix)';StreamUrl='';
SUNSCREEN99 is offline   Reply With Quote
Old 15th September 2011, 16:17   #19
DrO
 
Join Date: Sep 2003
Posts: 27,873
well that's a relief that it's working now.

-daz
DrO is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

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