Difference between revisions of "Linux Audio Streaming / Icecast"

From Hackerspace ACKspace
Jump to: navigation, search
(Created page with "Omdat linux en audio nog steeds ZUIGT en de documentatie OOK heb ik hier zelf maar een info dump plek :)<br> <br> ICECAST<br> Streaming Server<br> <br> Darkice<br> Streamin...")
 
Line 1: Line 1:
Omdat linux en audio nog steeds ZUIGT en de documentatie OOK heb ik hier zelf maar een info dump plek :)<br>
+
Omdat linux en audio nog steeds ZUIGT en de documentatie OOK heb ik hier zelf maar een info dump plek&nbsp;:)<br>  
  
<br>
+
<br>  
  
ICECAST<br>
+
ICECAST<br>  
  
Streaming Server<br>
+
Streaming Server<br>  
  
<br>
+
<br>  
  
Darkice<br>
+
Darkice<br>  
  
Streaming Client<br>
+
Streaming Client<br>  
  
darkice -v 10 -c &lt;config&gt;<br>
+
darkice -v 10 -c &lt;config&gt;<br>  
  
<br>
+
<br>  
  
Opties/commandos :<br>
+
Opties/commandos&nbsp;:<br>  
  
man darkice.cfg <br>
+
man darkice.cfg <br>  
  
<br>
+
<br>  
  
Voorbeeld config :<br>
+
Voorbeeld config&nbsp;:<br>  
  
 +
<br>
  
 +
[code]
  
# see the darkice.cfg man page for details
+
see the darkice.cfg man page for details  
  
# this section describes general aspects of the live streaming session<br>[general]<br>duration = 0 # duration of encoding, in seconds. 0 means forever<br>bufferSecs = 20 # size of internal slip buffer, in seconds<br>reconnect = yes # reconnect to the server(s) if disconnected
+
this section describes general aspects of the live streaming session<br>[general]<br>duration = 0 # duration of encoding, in seconds. 0 means forever<br>bufferSecs = 20 # size of internal slip buffer, in seconds<br>reconnect = yes # reconnect to the server(s) if disconnected  
  
# this section describes the audio input that will be streamed<br>[input]<br>device = hw:1,0 # Alsa soundcard device for the audio input<br>sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100<br>bitsPerSample = 16 # bits per sample. try 16<br>channel = 2 # channels. 1 = mono, 2 = stereo
+
this section describes the audio input that will be streamed<br>[input]<br>device = hw:1,0 # Alsa soundcard device for the audio input<br>sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100<br>bitsPerSample = 16 # bits per sample. try 16<br>channel = 2 # channels. 1 = mono, 2 = stereo  
  
# this section describes a streaming connection to an IceCast2 server<br># there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]<br># these can be mixed with [icecast-x] and [shoutcast-x] sections<br>[icecast2-0]<br>bitrateMode = cbr # constant bit rate<br>bitrate = 192 # bitrate<br>format = mp3 # format of the stream: mp3<br>quality = 1.0 # quality of the stream sent to the server<br>server = ............. # host name of the server<br>port = 8000 # port of the IceCast2 server, usually 8000<br>password = .................&nbsp; # source password to the IceCast2 server<br>mountPoint = test.mp3 # mount point of this stream on the IceCast2 server<br>name = Test # name of the stream<br>description = Test # description of the stream<br>url = http://test.com # URL related to the stream<br>genre = Test # genre of the stream<br>public = no # advertise this stream?<br>localDumpFile = test.mp3 # Record also to a file
+
this section describes a streaming connection to an IceCast2 server<br># there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]<br># these can be mixed with [icecast-x] and [shoutcast-x] sections<br>[icecast2-0]<br>bitrateMode = cbr # constant bit rate<br>bitrate = 192 # bitrate<br>format = mp3 # format of the stream: mp3<br>quality = 1.0 # quality of the stream sent to the server<br>server = ............. # host name of the server<br>port = 8000 # port of the IceCast2 server, usually 8000<br>password = .................&nbsp; # source password to the IceCast2 server<br>mountPoint = test.mp3 # mount point of this stream on the IceCast2 server<br>name = Test # name of the stream<br>description = Test # description of the stream<br>url = http://test.com # URL related to the stream<br>genre = Test # genre of the stream<br>public = no # advertise this stream?<br>localDumpFile = test.mp3 # Record also to a file  
  
[icecast2-1]<br>bitrateMode = cbr # constant bit rate<br>bitrate = 192 # bitrate<br>format = vorbis # format of the stream: mp3<br>quality = 1.0 # quality of the stream sent to the server<br>server = ...........&nbsp; # host name of the server<br>port = 8000 # port of the IceCast2 server, usually 8000<br>password = ....................&nbsp; # source password to the IceCast2 server<br>mountPoint = test.ogg # mount point of this stream on the IceCast2 server<br>name = Test # name of the stream<br>description = Test # description of the stream<br>url = http://test.com # URL related to the stream<br>genre = Test # genre of the stream<br>public = no # advertise this stream?<br>localDumpFile = test.ogg # Record also to a file<br><br>
+
[icecast2-1]<br>bitrateMode = cbr # constant bit rate<br>bitrate = 192 # bitrate<br>format = vorbis # format of the stream: mp3<br>quality = 1.0 # quality of the stream sent to the server<br>server = ...........&nbsp; # host name of the server<br>port = 8000 # port of the IceCast2 server, usually 8000<br>password = ....................&nbsp; # source password to the IceCast2 server<br>mountPoint = test.ogg # mount point of this stream on the IceCast2 server<br>name = Test # name of the stream<br>description = Test # description of the stream<br>url = http://test.com # URL related to the stream<br>genre = Test # genre of the stream<br>public = no # advertise this stream?<br>localDumpFile = test.ogg # Record also to a file
 +
 
 +
 
 +
 
 +
[/code]<br><br>

Revision as of 17:59, 16 December 2012

Omdat linux en audio nog steeds ZUIGT en de documentatie OOK heb ik hier zelf maar een info dump plek :)


ICECAST

Streaming Server


Darkice

Streaming Client

darkice -v 10 -c <config>


Opties/commandos :

man darkice.cfg


Voorbeeld config :


[code]

see the darkice.cfg man page for details

this section describes general aspects of the live streaming session
[general]
duration = 0 # duration of encoding, in seconds. 0 means forever
bufferSecs = 20 # size of internal slip buffer, in seconds
reconnect = yes # reconnect to the server(s) if disconnected

this section describes the audio input that will be streamed
[input]
device = hw:1,0 # Alsa soundcard 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

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 = cbr # constant bit rate
bitrate = 192 # bitrate
format = mp3 # format of the stream: mp3
quality = 1.0 # quality of the stream sent to the server
server = ............. # host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
password = .................  # source password to the IceCast2 server
mountPoint = test.mp3 # mount point of this stream on the IceCast2 server
name = Test # name of the stream
description = Test # description of the stream
url = http://test.com # URL related to the stream
genre = Test # genre of the stream
public = no # advertise this stream?
localDumpFile = test.mp3 # Record also to a file

[icecast2-1]
bitrateMode = cbr # constant bit rate
bitrate = 192 # bitrate
format = vorbis # format of the stream: mp3
quality = 1.0 # quality of the stream sent to the server
server = ...........  # host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
password = ....................  # source password to the IceCast2 server
mountPoint = test.ogg # mount point of this stream on the IceCast2 server
name = Test # name of the stream
description = Test # description of the stream
url = http://test.com # URL related to the stream
genre = Test # genre of the stream
public = no # advertise this stream?
localDumpFile = test.ogg # Record also to a file


[/code]