formating fixes

This commit is contained in:
2026-07-19 14:49:40 -04:00
parent 9b3839f621
commit e7346411c1
+43 -43
View File
@@ -37,53 +37,53 @@ The streamer relies on two core pieces of software: a capture/encoding client an
2. Configure Icecast by following the prompts to set your broadcast passwords. 2. Configure Icecast by following the prompts to set your broadcast passwords.
3. Identify your USB audio device using `arecord -l` to find the correct ALSA card number. 3. Identify your USB audio device using `arecord -l` to find the correct ALSA card number.
you should see something similar to you should see something similar to
``` ```
**** List of CAPTURE Hardware Devices **** **** List of CAPTURE Hardware Devices ****
card 1: Codec [USB Audio Codec], device 0: USB Audio [USB Audio] card 1: Codec [USB Audio Codec], device 0: USB Audio [USB Audio]
Subdevices: 1/1 Subdevices: 1/1
Subdevice #0: subdevice #0 Subdevice #0: subdevice #0
``` ```
4. Edit the `/etc/darkice.cfg` file to link your hardware capture device to the Icecast server. 4. Edit the `/etc/darkice.cfg` file to link your hardware capture device to the Icecast server.
``` ```
[input] [input]
device = hw:1,0 # OSS DSP soundcard device for the audio input device = hw:1,0 # OSS DSP soundcard device for the audio input
sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100 sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample = 16 # bits per sample. try 16 bitsPerSample = 16 # bits per sample. try 16
channel = 2 # channels. 1 = mono, 2 = stereo channel = 2 # channels. 1 = mono, 2 = stereo
``` ```
5. Icecast streams: continue to edit the '/etc/darkice.cfg' file and add the configuration nof your choice, or both 5. Icecast streams: continue to edit the '/etc/darkice.cfg' file and add the configuration nof your choice, or both
MP3 is compatible with more devices but Opus has usually greater quality MP3 is compatible with more devices but Opus has usually greater quality
``` ```
# ========================================== # ==========================================
# Stream 1: High Compatibility (MP3) # Stream 1: High Compatibility (MP3)
# URL: http://<RASPBERRY_PI_IP>:8000/vinyl.mp3 # URL: http://<RASPBERRY_PI_IP>:8000/vinyl.mp3
# ========================================== # ==========================================
[icecast2-0] [icecast2-0]
bitrateMode = cbr # Constant bitrate for maximum MP3 compatibility bitrateMode = cbr # Constant bitrate for maximum MP3 compatibility
format = mp3 format = mp3
bitrate = 320 # High quality MP3 bitrate = 320 # High quality MP3
server = localhost # Or the IP of your Icecast container server = localhost # Or the IP of your Icecast container
port = 8000 port = 8000
password = hackme # Must match ICECAST_SOURCE_PASSWORD password = hackme # Must match ICECAST_SOURCE_PASSWORD
mountPoint = vinyl.mp3 mountPoint = vinyl.mp3
name = Vinyl Stream (MP3) name = Vinyl Stream (MP3)
description = Turntable broadcast in MP3 format description = Turntable broadcast in MP3 format
# ========================================== # ==========================================
# Stream 2: High Efficiency / Quality (Opus) # Stream 2: High Efficiency / Quality (Opus)
# URL: http://<RASPBERRY_PI_IP>:8000/vinyl.opus # URL: http://<RASPBERRY_PI_IP>:8000/vinyl.opus
# ========================================== # ==========================================
[icecast2-1] [icecast2-1]
bitrateMode = vbr # Variable bitrate is ideal for Opus bitrateMode = vbr # Variable bitrate is ideal for Opus
format = opus format = opus
bitrate = 128 # Opus sounds incredibly transparent at 128kbps bitrate = 128 # Opus sounds incredibly transparent at 128kbps
server = localhost # Or the IP of your Icecast container server = localhost # Or the IP of your Icecast container
port = 8000 port = 8000
password = hackme # Must match ICECAST_SOURCE_PASSWORD password = hackme # Must match ICECAST_SOURCE_PASSWORD
mountPoint = vinyl.opus mountPoint = vinyl.opus
name = Vinyl Stream (Opus) name = Vinyl Stream (Opus)
description = Turntable broadcast in Opus format description = Turntable broadcast in Opus format
``` ```
### Option B: Docker Compose Deployment ### Option B: Docker Compose Deployment
If you prefer a containerized homelab setup, you can deploy the stack using Docker Compose. If you prefer a containerized homelab setup, you can deploy the stack using Docker Compose.