Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
raspberry:audio_stream [2018/10/07 22:10] admin [Soundcard] |
raspberry:audio_stream [2018/10/08 00:58] admin [Icecast] |
||
---|---|---|---|
Line 4: | Line 4: | ||
---- | ---- | ||
==== Soundcard ==== | ==== Soundcard ==== | ||
- | from: [[https:// | ||
check the soundcard: | check the soundcard: | ||
Line 57: | Line 56: | ||
$ sudo apt-get update | $ sudo apt-get update | ||
$ sudo apt-get install alsa-utils | $ sudo apt-get install alsa-utils | ||
+ | open ALSO mixer: | ||
+ | $ alsamixer | ||
+ | with F6 select the soundcard.\\ | ||
+ | Test the Sound Card Output: | ||
+ | $ speaker-test -Dplughw: | ||
+ | $ speaker-test -Dplughw: | ||
+ | |||
+ | |||
---- | ---- | ||
- | ==== Icecast & Darkice ==== | + | ==== Darkice ==== |
- | Install | + | Install Darkice.\\ |
update: | update: | ||
- | $ sudo apt-get update | + | $ sudo apt-get update |
- | install icecast2 | + | get the files and install them: |
- | $ sudo apt-get install | + | $ wget https:// |
- | if asked type in hostname and password | + | |
- | | + | $ mv darkice_1.0.1-999~mp3+1_armhf.deb? |
- | | + | |
+ | $ sudo apt-get install | ||
+ | |||
+ | | ||
+ | |||
+ | |||
change config: | change config: | ||
$ sudo nano / | $ sudo nano / | ||
to: | to: | ||
- | # this section describes general aspects of the live streaming session | + | # this section describes general aspects of the live streaming session |
- | duration | + | |
- | bufferSecs | + | |
- | reconnect | + | |
- | # this section describes the audio input that will be streamed | + | |
- | [input] | + | |
- | device | + | |
- | sampleRate | + | |
- | bitsPerSample = 16 # bits per sample. try 16 | + | |
- | channel | + | |
- | # 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 | + | |
- | bitrate | + | |
- | format | + | |
- | quality | + | |
- | server | + | |
- | port = 8000 # port of the IceCast2 server, usually 8000 | + | |
- | password | + | |
- | mountPoint | + | |
- | name = pisound | + | |
- | description | + | |
- | url = http:// | + | |
- | genre = my genre # genre of the stream | + | |
- | public | + | |
- | # | + | |
- | + | ||
- | or: | + | |
[general] | [general] | ||
- | duration | + | duration |
- | bufferSecs | + | bufferSecs |
- | reconnect | + | reconnect |
- | | + | |
[input] | [input] | ||
- | device | + | device |
- | sampleRate | + | sampleRate |
- | bitsPerSample | + | bitsPerSample = 16 |
- | channel | + | channel |
- | | + | # Only stereo mode is supported by pisound. |
+ | | ||
+ | # 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] | [icecast2-0] | ||
- | bitrateMode | + | bitrateMode |
- | | + | |
- | format | + | format |
- | | + | |
- | server | + | server |
- | port = 8000 # port for IceCast2 | + | port = 8000 |
- | password | + | password |
- | mountPoint | + | mountPoint |
- | | + | name = pisound |
- | + | description | |
- | + | url = http:// | |
- | run: | + | genre = hits # genre of the stream |
- | $ darkice | + | public |
+ | # | ||
+ | |||
+ | ---- | ||
+ | ==== Icecast ==== | ||
+ | Install Icecast.\\ | ||
+ | update: | ||
+ | | ||
+ | install icecast2: | ||
+ | | ||
+ | if asked type in hostname and password | ||
+ | | ||
+ | | ||
+ | start icecast2: | ||
+ | $ sudo service icecast2 start | ||
+ | |||
+ | ---- | ||
+ | ==== Stream ==== | ||
+ | just run: | ||
+ | $ darkice | ||
+ | and then open in your browser: | ||
+ | http:// | ||
+ | Icecast2 Status one will find here: | ||
+ | http:// | ||
---- | ---- | ||
- | ==== Link ==== | + | ==== Links ==== |
- | [[https:// | + | [[https:// |
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[http:// | ||
---- | ---- |