Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
raspberry:audio_stream [2018/10/07 22:26] admin [Soundcard] |
raspberry:audio_stream [2020/12/14 14:35] (current) admin [Links] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Audio Stream ===== | ===== Audio Stream ===== | ||
- | Streaming audio over internet using Icecast and Darkice on RaspbianStretch.\\ | + | Streaming audio over internet using Icecast and Darkice on a Raspberry Pi 3 and RaspbianStretch.\\ |
---- | ---- | ||
==== Soundcard ==== | ==== Soundcard ==== | ||
- | from: [[https:// | ||
check the soundcard: | check the soundcard: | ||
Line 66: | Line 65: | ||
---- | ---- | ||
- | ==== 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 = radio | + | name = pisound |
- | + | | |
- | | + | |
- | run: | + | |
- | | + | public |
+ | # | ||
---- | ---- | ||
- | ==== Link ==== | + | ==== Icecast ==== |
- | [[https:// | + | Install Icecast.\\ |
+ | update: | ||
+ | $ sudo apt-get update | ||
+ | install icecast2: | ||
+ | $ sudo apt-get install icecast2 | ||
+ | if asked type in hostname and password | ||
+ | hostname: localhost | ||
+ | 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:// | ||
+ | |||
+ | ---- | ||
+ | ==== Links ==== | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[https:// | ||
+ | [[http:// | ||
+ | |||
+ | ---- | ||
+ | ==== License ==== | ||
+ | |||
+ | This manuals is made by **Wolfgang Spahn** 2018-20.\\ | ||
+ | Except where otherwise noted, content on this wiki is licensed under the following license: [[http:// | ||
+ | |||
+ | < | ||
+ | <a rel=" | ||
+ | </ | ||
---- | ---- |