Differences between revisions 1 and 11 (spanning 10 versions)
Revision 1 as of 2009-10-04 15:24:49
Size: 2308
Editor: asbesto
Comment:
Revision 11 as of 2009-10-04 20:59:39
Size: 7515
Editor: fruity
Comment:
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
TCPC9, Palazzolo Acreide, Oct 4, 2009
Line 8: Line 10:

Server side:

 * Icecast2

Client side:
Line 12: Line 20:
== Configs ==

=== Darkice config file ===
== Configurations ==

=== Server side ===

==== Icecast 2 ====

This is only the mountpoint configuration.
{{{
<!-- asbesto, radiocybernet -->

<mount>
        <mount-name>/rcyb.mp3</mount-name>

# NOTE: the INTRO path is relative to the icecast2 web interface!!!
            <intro>radiocybernet/intro.mp3</intro>

            <max-listeners>1000</max-listeners>
            <fallback-mount>/radiocybernet-oldies.mp3</fallback-mount>
            <fallback-override>1</fallback-override>
            <fallback-when-full>1</fallback-when-full>
</mount>
                                
# FALLBACK STREAM: old recordings or ambient sounds: sea, trees, forests...
<mount>
        <mount-name>/radiocybernet-oldies.mp3</mount-name>
        <max-listeners>1000</max-listeners>
        <hidden>0</hidden>
</mount>
}}}

=== Client side ===

==== VLC ====

(to be added)

==== MuSE ====

Command line streaming tool "Strimma" by Asbesto

{{{
#!/bin/bash
echo "strimma v0.1 (c) 2002 Gabriele Zaverio (asbesto@freaknet.org)"
muse -e mp3 -o -C -b 16 -q 4 -i \
     -f rcyb-`date +%d%b%Y-%H%M%S`.mp3 \
        -s radio.dyne.org:8000 -m rcyb.mp3 -U source -p revolution \
        -n radiocybernet_LIVE_NOW

# -s indivia.net:8000 -m rcyb -p xxxxxx \
# -n radiocybernet_HACKIT2005_NAPOLI \
# questo per strimmare su 2 server contemporaneamente analmente hackit03
}}}


(work in progress)

==== Darkice config file ====
Line 17: Line 79:

===== With OSS (OLD :P Open Sound System) =====

Control permissions and existance of /dev/dsp dsp1 dsp2, dependently from how many audio cards you have.
Tri gom or aumix to control the mixer settings.
Line 58: Line 125:

===== With ALSA =====

Control that there is an audio card with aplay -l and always control that you are part of group audio ( or be root )

''' NOTE '''

On ubuntu ( and on debian to be tried ) pulseaudio take over hw:0,0 so your audiocard will be hw:1,0 (blarg...)
There must be a more gently way of killing pulseaudio and clearing this naming issue... to be investigated :)

{{{
# sample DarkIce configuration file, edit for your needs before using
# 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 = 5 # 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:0,0 # ALSA soundcard device
                              #(hw:1,0 in case of the cadaver of pulseaudio in the way)
sampleRate = 22050 # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample = 16 # bits per sample. try 16
channel = 1 # channels. 1 = mono, 2 = stereo

# mp3
[icecast2-0]
bitrateMode = cbr # avr=average bit rate
format = mp3 # format of the stream: ogg vorbis
bitrate = 32 # bitrate of the stream sent to the server
server = radio.dyne.org
                            # host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
password = revolution # source password to the IceCast2 server
mountPoint = rcyb.mp3 # mount point of this stream on the IceCast2 server
name = Radio Cybernet
                            # name of the stream
description = Test from tcpc9

                            # description of the stream
url = http://www.radiocybernet.org
                            # URL related to the stream
genre = live # genre of the stream
public = yes # advertise this stream?
localDumpFile = rcyb.mp3 # backup locally
fileAddDate = yes # add date to filename

# ogg
[icecast2-1] # Note is icecast2 sezione di configurazione numero 1
bitrateMode = cbr # avr=average bit rate
format = vorbis # format of the stream: ogg vorbis mp3
bitrate = 32 # bitrate of the stream sent to the server
server = radio.dyne.org
                            # host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
password = revolution # source password to the IceCast2 server
mountPoint = rcyb.ogg # mount point of this stream on the IceCast2 server
name = Radio Cybernet
                            # name of the stream
description = Test from tcpc9

                            # description of the stream
url = http://www.radiocybernet.org
                            # URL related to the stream
genre = live # genre of the stream
public = yes # advertise this stream?
localDumpFile = rcyb.ogg
fileAddDate = yes

}}}

Control the mixer with alsamixer ( alsamixer -c1 in case of pulseaudio cadaver )

{{{ '''screenshots coming''' }}}

== Hardware ==

=== Microphones ===

=== Other stuff ===

=== Tip'n tricks ===

Streaming Radio Howto

by Asbesto & Fruity - Dyne.org, Freaknet.org, Radiocybernet.org, Poetry Hacklab

TCPC9, Palazzolo Acreide, Oct 4, 2009

Software to use

Server side:

  • Icecast2

Client side:

  • MuSE
  • Darkice

Configurations

Server side

Icecast 2

This is only the mountpoint configuration.

<!-- asbesto, radiocybernet -->

<mount>
        <mount-name>/rcyb.mp3</mount-name>

# NOTE: the INTRO path is relative to the icecast2 web interface!!!
            <intro>radiocybernet/intro.mp3</intro>

            <max-listeners>1000</max-listeners>
            <fallback-mount>/radiocybernet-oldies.mp3</fallback-mount>
            <fallback-override>1</fallback-override>
            <fallback-when-full>1</fallback-when-full>
</mount>
                                
# FALLBACK STREAM: old recordings or ambient sounds: sea, trees, forests...
<mount>
        <mount-name>/radiocybernet-oldies.mp3</mount-name>
        <max-listeners>1000</max-listeners>
        <hidden>0</hidden>
</mount>

Client side

VLC

(to be added)

MuSE

Command line streaming tool "Strimma" by Asbesto

echo "strimma v0.1 (c) 2002 Gabriele Zaverio (asbesto@freaknet.org)"
muse -e mp3 -o -C -b 16 -q 4 -i \
     -f rcyb-`date +%d%b%Y-%H%M%S`.mp3 \
        -s radio.dyne.org:8000 -m rcyb.mp3 -U source -p revolution \
        -n radiocybernet_LIVE_NOW

#        -s indivia.net:8000 -m rcyb -p xxxxxx \
#        -n radiocybernet_HACKIT2005_NAPOLI \
# questo per strimmare su 2 server contemporaneamente analmente hackit03

(work in progress)

Darkice config file

This is the config file for darkice under Linux, to stream on radio.dyne.org:

With OSS (OLD :P Open Sound System)

Control permissions and existance of /dev/dsp dsp1 dsp2, dependently from how many audio cards you have. Tri gom or aumix to control the mixer settings.

# sample DarkIce configuration file, edit for your needs before using
# 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      = 5         # 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          = /dev/dsp  # OSS DSP soundcard device for the audio input
sampleRate      = 22050     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 1         # 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       # avr=average bit rate
format          = mp3 #vorbis    # format of the stream: ogg vorbis
bitrate         = 32        # bitrate of the stream sent to the server
server          = radio.dyne.org
                            # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = revolution    # source password to the IceCast2 server
mountPoint      = rcyb.mp3  # mount point of this stream on the IceCast2 server
name            = Radio Cybernet
                            # name of the stream
description     = Test from tcpc9
                            # description of the stream
url             = http://www.radiocybernet.org
                            # URL related to the stream
genre           = live    # genre of the stream
public          = yes       # advertise this stream?
localDumpFile   = rcyb.mp3
fileAddDate     = yes

With ALSA

Control that there is an audio card with aplay -l and always control that you are part of group audio ( or be root )

NOTE

On ubuntu ( and on debian to be tried ) pulseaudio take over hw:0,0 so your audiocard will be hw:1,0 (blarg...) There must be a more gently way of killing pulseaudio and clearing this naming issue... to be investigated :)

# sample DarkIce configuration file, edit for your needs before using
# 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      = 5         # 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:0,0      # ALSA soundcard device 
                              #(hw:1,0 in case of the cadaver of pulseaudio in the way)
sampleRate      = 22050     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 1         # channels. 1 = mono, 2 = stereo

# mp3
[icecast2-0]
bitrateMode     = cbr       # avr=average bit rate
format          = mp3      # format of the stream: ogg vorbis
bitrate         = 32        # bitrate of the stream sent to the server
server          = radio.dyne.org
                            # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = revolution    # source password to the IceCast2 server
mountPoint      = rcyb.mp3  # mount point of this stream on the IceCast2 server
name            = Radio Cybernet
                            # name of the stream
description     = Test from tcpc9

                            # description of the stream
url             = http://www.radiocybernet.org
                            # URL related to the stream
genre           = live    # genre of the stream
public          = yes       # advertise this stream?
localDumpFile   = rcyb.mp3  # backup locally
fileAddDate     = yes       # add date to filename

# ogg
[icecast2-1] # Note is icecast2 sezione di configurazione numero 1
bitrateMode     = cbr       # avr=average bit rate
format          = vorbis    # format of the stream: ogg vorbis mp3
bitrate         = 32        # bitrate of the stream sent to the server
server          = radio.dyne.org
                            # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = revolution    # source password to the IceCast2 server
mountPoint      = rcyb.ogg  # mount point of this stream on the IceCast2 server
name            = Radio Cybernet
                            # name of the stream
description     = Test from tcpc9

                            # description of the stream
url             = http://www.radiocybernet.org
                            # URL related to the stream
genre           = live    # genre of the stream
public          = yes       # advertise this stream?
localDumpFile   = rcyb.ogg
fileAddDate     = yes

Control the mixer with alsamixer ( alsamixer -c1 in case of pulseaudio cadaver )

 '''screenshots coming''' 

Hardware

Microphones

Other stuff

Tip'n tricks

StreamingRadioHowto (last edited 2019-08-04 16:20:19 by asbesto)