updated darkice-to-icecast

This commit is contained in:
notnull 2019-12-23 04:03:48 -08:00
parent 72eb6061b8
commit fe0d08d7a7
4 changed files with 58 additions and 44 deletions

View File

@ -89,7 +89,6 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<li><a href="#install-and-configure-darkice">Install and configure darkice</a></li>
<li><a href="#start-darkice">Start darkice</a></li>
<li><a href="#start-playing-your-audio">Start playing your audio</a></li>
<li><a href="#fix-stream-address"><span class="todo TODO">TODO</span> fix stream address</a></li>
<li><a href="#rtfm">RTFM</a></li>
</ul>
</nav>
@ -102,20 +101,26 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
<p>Only the relevant options in darkice.cfg are shown below. See a complete example <a href="./cfg/darkice.cfg">here</a>.</p>
<div class="sourceCode" id="cb1"><pre class="sourceCode ini"><code class="sourceCode ini"><a class="sourceLine" id="cb1-1" title="1"><span class="kw">[input]</span></a>
<a class="sourceLine" id="cb1-2" title="2"><span class="dt">device </span><span class="ot">=</span><span class="st"> pulseaudio</span></a>
<a class="sourceLine" id="cb1-3" title="3"><span class="dt">paSourceName </span><span class="ot">=</span><span class="st"> stream.monitor</span></a>
<a class="sourceLine" id="cb1-4" title="4"></a>
<a class="sourceLine" id="cb1-5" title="5"><span class="kw">[icecast2-0]</span></a>
<a class="sourceLine" id="cb1-6" title="6"><span class="dt">format </span><span class="ot">=</span><span class="st"> vorbis</span></a>
<a class="sourceLine" id="cb1-7" title="7"><span class="dt">server </span><span class="ot">=</span><span class="st"> radio.anarchyplanet.org</span></a>
<a class="sourceLine" id="cb1-8" title="8"><span class="dt">port </span><span class="ot">=</span><span class="st"> </span><span class="dv">8000</span></a>
<a class="sourceLine" id="cb1-9" title="9"><span class="dt">password </span><span class="ot">=</span><span class="st"> [secret password]</span></a>
<a class="sourceLine" id="cb1-10" title="10"><span class="dt">mountPoint </span><span class="ot">=</span><span class="st"> source.ogg</span></a></code></pre></div>
<a class="sourceLine" id="cb1-3" title="3"><span class="dt">sampleRate </span><span class="ot">=</span><span class="st"> </span><span class="dv">44100</span></a>
<a class="sourceLine" id="cb1-4" title="4"><span class="dt">bitsPerSample </span><span class="ot">=</span><span class="st"> </span><span class="dv">16</span></a>
<a class="sourceLine" id="cb1-5" title="5"><span class="dt">channel </span><span class="ot">=</span><span class="st"> </span><span class="dv">2</span></a>
<a class="sourceLine" id="cb1-6" title="6"><span class="dt">paSourceName </span><span class="ot">=</span><span class="st"> stream.monitor</span></a>
<a class="sourceLine" id="cb1-7" title="7"></a>
<a class="sourceLine" id="cb1-8" title="8"><span class="kw">[icecast2-0]</span></a>
<a class="sourceLine" id="cb1-9" title="9"><span class="dt">format </span><span class="ot">=</span><span class="st"> mp3</span></a>
<a class="sourceLine" id="cb1-10" title="10"><span class="dt">bitrateMode </span><span class="ot">=</span><span class="st"> vbr</span></a>
<a class="sourceLine" id="cb1-11" title="11"><span class="dt">quality </span><span class="ot">=</span><span class="st"> </span><span class="fl">0.8</span></a>
<a class="sourceLine" id="cb1-12" title="12"><span class="dt">server </span><span class="ot">=</span><span class="st"> radio.anarchyplanet.org</span></a>
<a class="sourceLine" id="cb1-13" title="13"><span class="dt">port </span><span class="ot">=</span><span class="st"> </span><span class="dv">8000</span></a>
<a class="sourceLine" id="cb1-14" title="14"><span class="dt">password </span><span class="ot">=</span><span class="st"> [secret password]</span></a>
<a class="sourceLine" id="cb1-15" title="15"><span class="dt">mountPoint </span><span class="ot">=</span><span class="st"> live</span></a>
<a class="sourceLine" id="cb1-16" title="16"></a></code></pre></div>
<h1 id="start-darkice">Start darkice</h1>
<p>Run <code>darkice -c darkice.cfg</code> from the command line. Darkice should now show up in the recording tab. Change the audio source for darkice to Monitor of Null Output.</p>
<p>Run <code>darkice -c darkice.cfg</code> from the command line. Darkice should now show up in the recording tab.</p>
<p>Change the audio source for darkice to <code>Monitor of Null Output.</code></p>
<h1 id="start-playing-your-audio">Start playing your audio</h1>
<p>This playback device should now show up in the Playback tab of the PulseAudio control panel. (For example, if you are playing audio in your browser, a new row should appear in the Playback tab showing your browser making sound). Change the audio output for your playback device audio to Null Output.</p>
<h1 id="fix-stream-address"><span class="todo TODO">TODO</span> fix stream address</h1>
<p>currently it's <a href="https://radio.anarchyplanet.org/icecast/stream.ogg">https://radio.anarchyplanet.org/icecast/stream.ogg</a></p>
<p>This playback device should now show up in the Playback tab of the PulseAudio control panel. (For example, if you are playing audio in your browser, a new row should appear in the Playback tab showing your browser making sound).</p>
<p>Change the audio output for your playback device audio to <code>Null Output.</code></p>
<h1 id="rtfm">RTFM</h1>
<ul>
<li><a href="https://chinmay.audio/blog/streaming-audio">https://chinmay.audio/blog/streaming-audio</a></li>

View File

@ -6,7 +6,6 @@ title: To stream any audio using darkice to apradio icecast server
- [Install and configure darkice](#install-and-configure-darkice)
- [Start darkice](#start-darkice)
- [Start playing your audio](#start-playing-your-audio)
- [[TODO]{.todo .TODO} fix stream address](#fix-stream-address)
- [RTFM](#rtfm)
Some programs might have their own methods of streaming to Icecast.
@ -42,22 +41,29 @@ example [here](./cfg/darkice.cfg).
``` {.ini}
[input]
device = pulseaudio
sampleRate = 44100
bitsPerSample = 16
channel = 2
paSourceName = stream.monitor
[icecast2-0]
format = vorbis
format = mp3
bitrateMode = vbr
quality = 0.8
server = radio.anarchyplanet.org
port = 8000
password = [secret password]
mountPoint = source.ogg
mountPoint = live
```
Start darkice
=============
Run `darkice -c darkice.cfg` from the command line. Darkice should now
show up in the recording tab. Change the audio source for darkice to
Monitor of Null Output.
show up in the recording tab.
Change the audio source for darkice to `Monitor of Null Output.`
Start playing your audio
========================
@ -65,13 +71,9 @@ Start playing your audio
This playback device should now show up in the Playback tab of the
PulseAudio control panel. (For example, if you are playing audio in your
browser, a new row should appear in the Playback tab showing your
browser making sound). Change the audio output for your playback device
audio to Null Output.
browser making sound).
[TODO]{.todo .TODO} fix stream address {#fix-stream-address}
======================================
currently it\'s <https://radio.anarchyplanet.org/icecast/stream.ogg>
Change the audio output for your playback device audio to `Null Output.`
RTFM
====

View File

@ -18,29 +18,37 @@ Only the relevant options in darkice.cfg are shown below. See a complete example
#+BEGIN_SRC ini
[input]
device = pulseaudio
sampleRate = 44100
bitsPerSample = 16
channel = 2
paSourceName = stream.monitor
[icecast2-0]
format = vorbis
format = mp3
bitrateMode = vbr
quality = 0.8
server = radio.anarchyplanet.org
port = 8000
password = [secret password]
mountPoint = source.ogg
mountPoint = live
#+END_SRC
* Start darkice
Run ~darkice -c darkice.cfg~ from the command line. Darkice should now show up in the recording tab. Change the audio source for darkice to Monitor of Null Output.
Run ~darkice -c darkice.cfg~ from the command line. Darkice should now show up in the recording tab.
Change the audio source for darkice to ~Monitor of Null Output.~
* Start playing your audio
This playback device should now show up in the Playback tab of the PulseAudio control panel. (For example, if you are playing audio in your browser, a new row should appear in the Playback tab showing your browser making sound). Change the audio output for your playback device audio to Null Output.
This playback device should now show up in the Playback tab of the PulseAudio control panel. (For example, if you are playing audio in your browser, a new row should appear in the Playback tab showing your browser making sound).
* TODO fix stream address
currently it's https://radio.anarchyplanet.org/icecast/stream.ogg
Change the audio output for your playback device audio to ~Null Output.~
* RTFM
- https://chinmay.audio/blog/streaming-audio
- http://www.skyehaven.net/blog/2011/03/14/mumble-icecast/
* secret password :noexport:
PmR2hLvDekej7n8pcjdH5HCLJFCZng
source: PmR2hLvDekej7n8pcjdH5HCLJFCZng
live: livetest

View File

@ -4,7 +4,6 @@ To stream any audio using darkice to apradio icecast server
- Install and configure darkice
- Start darkice
- Start playing your audio
- TODO fix stream address
- RTFM
Some programs might have their own methods of streaming to Icecast.
@ -43,14 +42,19 @@ example here.
[input]
device = pulseaudio
sampleRate = 44100
bitsPerSample = 16
channel = 2
paSourceName = stream.monitor
[icecast2-0]
format = vorbis
format = mp3
bitrateMode = vbr
quality = 0.8
server = radio.anarchyplanet.org
port = 8000
password = [secret password]
mountPoint = source.ogg
mountPoint = live
@ -58,8 +62,9 @@ START DARKICE
Run darkice -c darkice.cfg from the command line. Darkice should now
show up in the recording tab. Change the audio source for darkice to
Monitor of Null Output.
show up in the recording tab.
Change the audio source for darkice to Monitor of Null Output.
@ -69,15 +74,9 @@ START PLAYING YOUR AUDIO
This playback device should now show up in the Playback tab of the
PulseAudio control panel. (For example, if you are playing audio in your
browser, a new row should appear in the Playback tab showing your
browser making sound). Change the audio output for your playback device
audio to Null Output.
browser making sound).
TODO FIX STREAM ADDRESS
currently it's https://radio.anarchyplanet.org/icecast/stream.ogg
Change the audio output for your playback device audio to Null Output.