Raspberry MPD: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Installation= *apt-get install mpd alsa-utils =Konfigurieren= */etc/mpd.conf <pre> music_directory "/mnt/media/music" playlist_directory "/var/lib/mpd/playl…“) |
Thomas (Diskussion | Beiträge) |
||
| (9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| + | =Enable hifiberry dac+= | ||
| + | *vi /boot/config.txt | ||
| + | #Disable audio (loads snd_bcm2835) | ||
| + | #dtparam=audio=on | ||
| + | #Enable audio (loads snd_bcm2835) | ||
| + | dtoverlay=hifiberry-dacplus | ||
| + | |||
=Installation= | =Installation= | ||
*apt-get install mpd alsa-utils | *apt-get install mpd alsa-utils | ||
| − | = | + | |
| + | =Configuration= | ||
| + | */etc/asound.conf | ||
| + | <pre> | ||
| + | pcm.!default { | ||
| + | type hw card 0 | ||
| + | } | ||
| + | ctl.!default { | ||
| + | type hw card 0 | ||
| + | } | ||
| + | </pre> | ||
*/etc/mpd.conf | */etc/mpd.conf | ||
<pre> | <pre> | ||
| Zeile 26: | Zeile 43: | ||
id3v1_encoding "UTF-8" | id3v1_encoding "UTF-8" | ||
</pre> | </pre> | ||
| + | =Logfile= | ||
| + | *tail -f /var/log/mpd/mpd.log | ||
| + | =Webclient= | ||
| + | ==Install== | ||
| + | https://www.ympd.org/ | ||
| + | *wget https://www.ympd.org/downloads/ympd-1.2.3-armhf.tar.bz2 | ||
| + | *tar -C /usr/local/sbin/ -xvjf ympd-1.2.3-armhf.tar.bz2 | ||
| + | ==Systemd== | ||
| + | */etc/systemd/system/ympd.service | ||
| + | <pre> | ||
| + | [Unit] | ||
| + | Description=Ympd Server | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | ExecStart=/usr/local/sbin/ympd --webport 80 | ||
| + | ExecStartPost=/bin/echo "Ympd Server started" | ||
| + | User=root | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| + | </pre> | ||
| + | *systemctl daemon-reload | ||
| + | *systemctl start ympd | ||
| + | *systemctl enable ympd | ||
| + | =Webradio= | ||
| + | ==Beispiel== | ||
| + | */var/lib/mpd/playlists/radio.m3u | ||
| + | http://rbb.ic.llnwd.net/stream/rbb_fritz_mp3_m_a | ||
| + | http://mp3.webradio.antenne.de:80 | ||
| + | http://mp3.webradio.rockantenne.de:80 | ||
| + | ==Reload== | ||
| + | *mpc load radio | ||
| + | oder für alles | ||
| + | *mpc update | ||
| + | |||
| + | ==Link== | ||
| + | *https://www.feldspaten.org/2014/04/raspberry-als-internet-radio-station/ | ||
| + | *http://www.surfmusik.de/genres.htm | ||
| + | |||
| + | =Patchwork= | ||
| + | *https://wiki.natenom.de/sammelsurium/software/audio/player/mpd/patchfork/installation | ||
Aktuelle Version vom 2. Januar 2018, 10:41 Uhr
Enable hifiberry dac+
- vi /boot/config.txt
#Disable audio (loads snd_bcm2835) #dtparam=audio=on #Enable audio (loads snd_bcm2835) dtoverlay=hifiberry-dacplus
Installation
- apt-get install mpd alsa-utils
Configuration
- /etc/asound.conf
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
- /etc/mpd.conf
music_directory "/mnt/media/music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/tag_cache"
log_file "/var/log/mpd/mpd.log"
pid_file "/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
user "mpd"
bind_to_address "0.0.0.0"
input {
plugin "curl"
}
audio_output {
device "hw:0"
type "alsa"
name "pcm512x-hifi"
mixer_type "hardware"
mixer_control "Digital"
}
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
Logfile
- tail -f /var/log/mpd/mpd.log
Webclient
Install
- wget https://www.ympd.org/downloads/ympd-1.2.3-armhf.tar.bz2
- tar -C /usr/local/sbin/ -xvjf ympd-1.2.3-armhf.tar.bz2
Systemd
- /etc/systemd/system/ympd.service
[Unit] Description=Ympd Server [Service] Type=simple ExecStart=/usr/local/sbin/ympd --webport 80 ExecStartPost=/bin/echo "Ympd Server started" User=root [Install] WantedBy=multi-user.target
- systemctl daemon-reload
- systemctl start ympd
- systemctl enable ympd
Webradio
Beispiel
- /var/lib/mpd/playlists/radio.m3u
http://rbb.ic.llnwd.net/stream/rbb_fritz_mp3_m_a http://mp3.webradio.antenne.de:80 http://mp3.webradio.rockantenne.de:80
Reload
- mpc load radio
oder für alles
- mpc update
Link
- https://www.feldspaten.org/2014/04/raspberry-als-internet-radio-station/
- http://www.surfmusik.de/genres.htm