[LAU] icecast and live-streaming

Matt Rockwell tech at wsum.org
Thu Sep 6 11:36:36 EDT 2007


What I did was to install Ubuntu with a gui so that I could access the 
graphical tools to set everything up and make the config files.  After I 
got the system working, I dumped X and set up everything command line.  
I also had a little issue using jack with darkice and ended up just 
connecting darkice straight to ALSA.  To do this, I had to build a 
custom asound.conf file for my delta1010 audio interface.

/etc/asound.conf

# DELTA1010 .asoundrc START    

#pcm.NAME { 
#       type hw               # Kernel PCM
#       card INT/STR          # Card name or number
#       [device] INT          # Device number (default 0)
#       [subdevice] INT       # Subdevice number, -1 first available (default -1)
#       mmap_emulation BOOL   # enable mmap emulation for ro/wo devices
#       }

# Main pcm define
pcm.ice1712 {
          type hw
          card 0
          device 0
 }
 
# adc&dac 1&2
 pcm.channel1 {
          type plug
          ttable.0.0 1
          ttable.1.1 1
          slave.pcm ice1712
 }
 
# adc&dac 3&4
 pcm.channel2 {
          type plug
          ttable.0.2 1
          ttable.1.3 1
          slave.pcm ice1712
 }
 
#adc&dac 5&6
 pcm.channel3 {
          type plug
          ttable.0.4 1
          ttable.1.5 1
          slave.pcm ice1712
 }
 
# adc&dac 7&8
 pcm.channel4 {
          type plug
          ttable.0.6 1
          ttable.1.7 1
          slave.pcm ice1712
 }



/etc/darkice.conf 
[general]
duration        = 0         # duration of encoding, in seconds. 0 means forever
bufferSecs      = 5         # size of internal slip buffer, in seconds
reconnect       = yes       # reconnect to server(s) if connection is broken

[input]
device          = channel1  # ALSA sound card device for the audio input
sampleRate      = 44100     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 2         # channels. 1 = mono, 2 = stereo

[icecast2-0] ### High quality
bitrateMode     = cbr       # average/constant bit rate
quality         = 1.0
format          = mp3       # format of the stream: vorbis/mp3
bitrate         = 128       # bitrate of the stream sent to the server
server          = ######  
                            # host name of the server
port            = 8001      # port of the IceCast2 server, usually 8000
password        = ######    # source password to the IceCast2 server
mountPoint      = high      # mount point of this stream on the IceCast2 server
name            = WSUM 91.7FM Madison, WI
                            # name of the stream
description     = University of Wisconsin-Madison Student Radio
                            # description of the stream
url             = http://wsum.org
                            # URL related to the stream
genre           = College Radio
                            # genre of the stream
public          = no        # advertise this stream?

[icecast2-1] ### Low quality
bitrateMode     = cbr       # average/constant bit rate
quailty         = 0.8
format          = mp3       # format of the stream: vorbis/mp3
sampleRate      = 24000
bitrate         = 24        # bitrate of the stream sent to the server
channel         = 1         # convert to mono
server          = ######
                            # host name of the server
port            = 8001      # port of the IceCast2 server, usually 8000
password        = ######    # source password to the IceCast2 server
mountPoint      = low       # mount point of this stream on the IceCast2 server
name            = WSUM 91.7FM Madison, WI
                            # name of the stream
description     = University of Wisconsin-Madison Student Radio
                            # description of the stream
url             = http://wsum.org
                            # URL related to the stream


Julien Claassen wrote:
> Hi!
>   I just set up an icecast2-server and have an ices2 source-client working 
> perfectly.
>   But I'd like to do some realtime-streaming with jack. So I installed darkice 
> 0.18.1 and get this error:
> DarkIce: VorbisLibEncoder.cpp:142: vorbis lib opening underlying sink error 
> [0]
>   I hear it arises quite a lot, because darkice can't connect to the server. I 
> checked all my ports and compared the config with that of ices. Everything 
> seems to be the same.
>   I wonder: I know that at least on the linux-audio conferences Joern and Eric 
> used icecast and some jack-input. Is there another solution to do it?
>   I'd need a text-based or no I/O client, for not being able to use the GUI. 
> Or does anyone have any idea on the darkice error?
>   Here's some system info and the darkice config:
> Linux 2.6.21-mm2 # PREEMPT
> Debian etch (4.0)
> Self-installed jack and ogg-vorbis tools (linked into darkice properly!)
> jack 0.107.2
> icecast2.3.1 (deb-package)
> Darkice config:
> [input]
> device          = jack  # OSS DSP soundcard device for the audio input
> sampleRate      = 48000     # sample rate in Hz. try 11025, 22050 or 44100
> bitsPerSample   = 16        # bits per sample. try 16
> channel         = 2         # channels. 1 = mono, 2 = stereo
>
> # this section describes a streaming connection to an IceCast2 server
> # there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
> # these can be mixed with [icecast-x] and [shoutcast-x] sections
> [icecast2-0]
> bitrateMode     = abr       # average bit rate
> format          = vorbis    # format of the stream: ogg vorbis
> bitrate         = 128        # bitrate of the stream sent to the server
> server          = localhost
>                             # host name of the server
> port            = 8000      # port of the IceCast2 server, usually 8000
> password        = I12oveBS    # source password to the IceCast2 server
> mountPoint      = /progrock.ogg  # mount point of this stream on the IceCast2 
> se
> rver
> name            = Progressive Rock stream
>                             # name of the stream
> description     = Progrock from the 70s to 90s
>                             # description of the stream
> url             = http://juliencoder.de
>                             # URL related to the stream
> genre           = Progressive Rock
> public          = yes       # advertise this stream?
>
>   I skipeed [general], for it is unchanged to the standard.
>   Thanks for any help!
>   Kindest regards
>         Julien
>
> --------
> Music was my first love and it will be my last (John Miles)
>
> ======== FIND MY WEB-PROJECT AT: ========
> http://ltsb.sourceforge.net
> the Linux TextBased Studio guide
> ======= AND MY PERSONAL PAGES AT: =======
> http://www.juliencoder.de
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-user
>   


-- 
Matt Rockwell- Technical Director
University of Wisconsin- WSUM Student Radio
http://wsum.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3410 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.linuxaudio.org/pipermail/linux-audio-user/attachments/20070906/954c6cbe/attachment.bin 


More information about the Linux-audio-user mailing list