Old 25th September 2011, 06:28   #1
birchy
Junior Member
 
Join Date: Aug 2009
Posts: 2
Issues Streaming from Line-In on Mac OS X

Hi there. I have a linux server running sc_serv and sc_trans (listening for dj connections and never plan to play any songs in a playlist). I also have sc_trans on my Mac OS X Snow Leopard (10.6.8). I am trying to connect as a DJ from sc_trans on my mac and stream audio from my line-in on my Mac to sv_trans on my Linux server (as a dj). There are a couple problems:
  1. When I try to use "outprotocol=3" on my linux sc_trans/sc_serv I get a parse error when attempting to login from my mac sc_trans b/c my mac appears to be sending the login attempt using protocol 2 (login works if I change all outprotocols to 2 on the linux machine). How can I tell my Mac to use protocol 3?
    code:
    msg:[DJPROTOCOLUVOX] Authentication string parse error (2.1:1::67c207de25c2a58bd08207aef27903cb9139e1825607b2c)
  2. sc_trans on my Mac doesn't appear to be seeing up my line-in. msg:[captureMac] Found components only shows "Apple: AudioDeviceOutput" and then seg faults:
    code:

    2011-09-24 23:22:56 I msg:[MAIN] Starting audio capture
    2011-09-24 23:22:56 D msg:[captureMac] creating impl 44100/2/16
    2011-09-24 23:22:56 D msg:[captureMac] Searching for components
    2011-09-24 23:22:56 I msg:[AAC] AAC setup complete
    2011-09-24 23:22:56 D msg:[captureMac] Found components
    Apple: AudioDeviceOutput

    2011-09-24 23:22:56 D msg:[captureMac] Enabling IO
    2011-09-24 23:22:56 D msg:[captureMac] Setting default input device
    2011-09-24 23:22:56 D msg:[captureMac] Setting audio input format
    2011-09-24 23:22:57 I msg:[MAIN] Playlist decoder thread starting
    2011-09-24 23:22:57 I msg:[RGCALC] Thread running
    2011-09-24 23:22:57 I msg:[UVOX2] 1705893250 Running
    2011-09-24 23:22:57 I msg:[DECODE] Giving replay gain calculator a head start
    2011-09-24 23:22:57 I msg:[DECODE] Begin decoding
    2011-09-24 23:22:57 I msg:[UVOX2] 1705893250 Creating stream socket
    2011-09-24 23:22:57 I msg:[UVOX2] 1705893250 Connecting to stream host
    2011-09-24 23:22:57 I msg:[BROADCASTSTALLMANAGER] Timed content set to TRUE
    Segmentation fault


Here are my configs:

Linux sc_serv.conf
code:

; Enable Logging
log=1
screenlog=1

; Log for connections to stream
logfile=logs/sc_serv.log

; Log for web connections
w3clog=logs/sc_serve_w3c.log

; Log details about client connections and disconnections
logclients=1

; Banned IP addresses
banfile=config/sc_serv.ban
savebanlistonexit=1

; Talk Shoutcast 2 protocol
outprotocol=2

; Reserved IPs
ripfile=config/sc_serv.rip
saveriplistonexit=1
riponly=0

; Server Config (Broadcasting)
portbase=8080
serverip=<SERVER-IP>

; Max Connected Clients
maxuser=50

; Disconnect idle sources after 30 seconds
autodumpsourcetime=30

; DJ SETUP

; Main Stream Info
streamid=1
streammaxuser=50
streamadminpassword=<PASSWD-1>

; Song history to preserve
songhistory=10

; Max time in minutes a client can listen (0 = no limit)
listenertime=0

; Disconnect clients if the source disconects (1 = on, 0 = off)
autodumpusers=0

; Server-side binding address for sources to connect on
; srcip=

; Server-side binding address for clients to connect on
; dstip=

; CSS file for the index.html and admin pages
; admincssfile=

; Fav icon for the admin pages
; faviconfile=

; hide stats?sid=# from clients
hidestats=1

; Allow any connections
publicserver=always

; Password used by sc_trans or the Winamp DSP plug-in
password=<PASSWD-2>

; Password used for accessing the administation pages
adminpassword=<PASSWD-1>

; Flash Security
flashpolicyfile=config/crossdomain.xml



Linux sc_trans.conf
code:

; Enable Logging
log=1
screenlog=1

; Log location
logfile=logs/sc_trans.log

; AAC Plus Encoder with 320 kbps
encoder=aacp
bitrate=320000
samplerate=44100
channels=2

; 1=high quality, 0=fast
mp3quality=1

; 0=CBR 1=VBR High Quality
mp3mode=1

; Flash Security
flashpolicyfile=config/crossdomain.xml

; Admin interface of sc_trans (disabled)
;adminport=5555
;adminuser=admin
;adminpassword=goaway

; Connection Info
outprotocol=3
serverip=localhost
serverport=8080

; Stream Password
uvoxauth=<PASSWD-2>
uvoxstreamid=1

; Calendar file for djs
calendarfile=calendar/dj_calendar.xml

; Enable DJ Mode on port 8505
djport2=8505
djdebug=1

; Record Sets to this folder
djcapture=1
djbroadcasts=recordedsets
djfilepattern=_%Y_%m_%d_%H_%M_%S
capturesamplerate=44100
capturechannels=2

; Define DJs
djlogin_1=djbirchy
djpassword_1=<PASSWD-3>
djpriority_1=1



Linux calendar
code:

<?xml version="1.0" encoding="UTF-8" ?>
<eventlist>
<event type="dj">
<dj archive="1">djbirchy</dj>
<calendar starttime="00:00:00" />
</event>
</eventlist>



Mac OS X sc_trans
code:

; Log location
logfile=logs/sc_trans.log

; Disable calendar file
calendarrewrite=0

; AAC Plus Encoder with 256 kbps
encoder_1=aacp
bitrate_1=256000

; Connection info
serverip=<SERVER-IP>
serverport=8505

; Password as djbirchy
uvoxauth=djbirchy:<PASSWD-3>

; Enable stream from line in
capturedebug=1
capture=1
capturedevice=Apple
captureinput=AudioDeviceInput
capturesamplerate=44100
capturechannels=2

birchy is offline   Reply With Quote
Old 25th September 2011, 11:13   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
what versions are you using of the tools? (that wasn't obvious from the post).

#1 - outprotocol=3 is the way to get the Transcoder working fully in SHOUTcast 2.0 mode but i know there were some issues with earlier versions where it didn't work correctly / fully.

#2 - i've a feeling capture support at least on mac builds is broken (and probably linux ones as well) since it's not something i've been able to test properly since taking over development of the tools. as such i don't think there's much which can be done until i can find time (48hr days would help) to be able to look into it.

-daz
DrO is offline   Reply With Quote
Old 25th September 2011, 18:26   #3
birchy
Junior Member
 
Join Date: Aug 2009
Posts: 2
Thanks for the reply.
I am using the following versions (downloaded yesterday)
Linux 32-bit: sc_trans version 2.0.0.51
Linux 32-bit: sc_serv version version 2.0.0.29
Mac OS X 64-bit: sc_trans version 2.0.0.51

#1 So I tried putting outprotocol=3 in all three configs but it led to the following on the Linux sc_trans
code:

msg:[DJPROTOCOLUVOX] Authentication string parse error (2.1:1::67c207de25c2a58bd08207aef27903cb9139e1825607b2c)


On the Mac sc_trans I see the follwing when it attempts to connect:
code:

2011-09-25 11:23:47 I msg:[AAC] AAC setup complete
2011-09-25 11:23:47 I msg:[UVOX2] 285329160 Sending Ultravox 2.1 authentication
2011-09-25 11:23:47 E msg:[UVOX2] 285329160 Authentication failed because ParseError
2011-09-25 11:23:47 E msg:[UVOX2] 285329160 Waiting 30 seconds
2011-09-25 11:23:49 W msg:[DECODE] Playlist is empty


And as I said, the connection works if all three use outprotocol=2

#2 Damn. Is there any way I could get my hands in there to fix it? I'm a fairly savvy programmer...
birchy 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