Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
raspberry:audio_stream [2018/10/07 22:26]
admin [Soundcard]
raspberry:audio_stream [2018/10/07 22:42]
admin [Icecast & Darkice]
Line 79: Line 79:
 to: to:
  
-  # this section describes general aspects of the live streaming session [general] +  # this section describes general aspects of the live streaming session
-  duration      = 0                # duration of encoding, in seconds. 0 means forever  +
-  bufferSecs    = 2                 # 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,          # Alsa soundcard device for the audio input  +
-  sampleRate    = 48000            # sample rate in Hz. try 48000, 96000 or 192000  +
-  bitsPerSample = 16               # bits per sample. try 16  +
-  channel       = 2                # channels. 1 = mono, 2 = stereo.   +
-                                     # Only stereo mode is supported by pisound.   +
-  # 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              # variable bit rate  +
-  bitrate       = 128  +
-  format        = mp3              # format of the stream: mp3  +
-  quality       = 0.8              # quality of the stream sent to the server  +
-  server        = localhost        # host name of the server  +
-  port          = 8000             # port of the IceCast2 server, usually 8000  +
-  password      = hackme           # source password to the IceCast2 server  +
-  mountPoint    = pisound          # mount point of this stream on the IceCast2 server  +
-  name          = pisound          # name of the stream  +
-  description   = DarkIce on pisound # description of the stream  +
-  url           = http://localhost # URL related to the stream  +
-  genre         = my genre         # genre of the stream  +
-  public        = no               # advertise this stream?  +
-  #localDumpFile = recording.mp3   # Record also to a file +
- +
-or:+
   [general]   [general]
-  duration        = 0      # duration in s, 0 forever +  duration      = 0                # duration of encodingin seconds. means forever 
-  bufferSecs      1      # buffer, in seconds +  bufferSecs    2                size of internal slip buffer, in seconds 
-  reconnect       = yes    # reconnect if disconnected +  reconnect     = yes              # reconnect to the server(s) if disconnected 
-  +  # this section describes the audio input that will be streamed
   [input]   [input]
-  device          = plughw:1,0 # or `pulse' for Pulseaudio +  device        = plughw:1,      Alsa soundcard device for the audio input 
-  sampleRate      22050   # sample rate 1102522050 or 44100 +  sampleRate    48000            # sample rate in Hz. try 4800096000 or 192000 
-  bitsPerSample   = 16      # bits +  bitsPerSample = 16               # bits per sample. try 16 
-  channel         = 1       # 2 = stereo +  channel       = 2                channels. 1 = mono, 2 = stereo
-   +                                   # Only stereo mode is supported by pisound. 
-  [icecast2-0] +  # this section describes a streaming connection to an IceCast2 server 
-  bitrateMode     vbr       variable bit rate (`cbrconstant, `abr' average) +  # there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7] 
-  quality         = 1.0       # 1.0 is best quality +  # these can be mixed with [icecast-x] and [shoutcast-x] sections [icecast2-0] 
-  format          = mp3       # format. Choose `vorbis' for OGG Vorbis +  bitrateMode   cbr              constant bit rate ('vbr' variable 'abr' average) 
-  bitrate         = 128       # bitrate +  bitrate       = 128 
-  server          10.10.10.11 IP address of the IceCast server +  format        = mp3              # format of the stream: mp3 ('vorbis' for OGG) 
-  port            = 8000      # port for IceCast2 access +  quality       = 0.8              quality of the stream sent to the server (1.0 ist best) 
-  password        ******    # source password to the IceCast2 server +  server        localhost        host name of the server 
-  mountPoint      radio.mp3 # mount point on the IceCast2 server .mp3 or .ogg +  port          = 8000             # port of the IceCast2 server, usually 8000 
-  name            radio+  password      embedded         # source password to the IceCast2 server 
 +  mountPoint    pisound.mp3      # mount point of this stream on the IceCast2 server 
 +  name          pisound          # name of the stream 
 +  description   = DarkIce on pisound # description of the stream 
 +  url           = http://localhost # URL related to the stream 
 +  genre         = hits             # genre of the stream 
 +  public        = no               # advertise this stream? 
 +  #localDumpFile = recording.mp3   # Record also to a file