mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-27 22:47:38 +02:00
update mpd
This commit is contained in:
parent
a372c25017
commit
6da5e1411c
@ -5,6 +5,7 @@ Music Player Daemon
|
||||
for playing music. Through plugins and libraries it can play a variety of sound
|
||||
files while being controlled by its network protocol.
|
||||
|
||||
:+1: [easypi/mpd-arm][2] works on Raspberry Pi very well.
|
||||
|
||||
## docker-compose.yml
|
||||
|
||||
@ -26,15 +27,32 @@ mpd:
|
||||
## Server Setup
|
||||
|
||||
```bash
|
||||
$ mkdir -p ~/fig/mpd/{music,playlists}
|
||||
$ cd ~/fig/mpd/
|
||||
$ mkdir -p music playlists
|
||||
$ wget https://upload.wikimedia.org/wikipedia/commons/d/d5/Pop_Goes_the_Weasel.ogg -O music/song.ogg
|
||||
|
||||
$ wget https://upload.wikimedia.org/wikipedia/commons/d/d5/Pop_Goes_the_Weasel.ogg -P music
|
||||
|
||||
$ curl -s -X POST -H 'Content-Length: 0' http://www.shoutcast.com/Home/Top |
|
||||
jq '.[].ID' |
|
||||
parallel --eta -k curl -s 'http://yp.shoutcast.com/sbin/tunein-station.m3u?id={}' |
|
||||
sed '1!s@#EXTM3U@@' |
|
||||
cat -s > playlists/shoutcast.m3u
|
||||
|
||||
$ cat > playlists/microphone.m3u << _EOF_
|
||||
#EXTM3U
|
||||
#EXTINF:-1,microphone
|
||||
alsa://plughw:1,0
|
||||
_EOF_
|
||||
|
||||
$ docker-compose up -d
|
||||
$ docker-compose exec mpd sh
|
||||
>>> mpc help
|
||||
>>> mpc update
|
||||
>>> mpc ls | mpc add
|
||||
>>> mpc repeat on
|
||||
>>> mpc random on
|
||||
>>> mpc
|
||||
>>> exit
|
||||
```
|
||||
|
||||
## Client Setup
|
||||
@ -58,3 +76,4 @@ Streaming port: 8800
|
||||
- <https://www.musicpd.org/doc/user/input_plugins.html>
|
||||
|
||||
[1]: https://www.musicpd.org/
|
||||
[2]: https://hub.docker.com/r/easypi/mpd-arm/
|
||||
|
Loading…
x
Reference in New Issue
Block a user