Mopidy for unraid with support for snapcast and icecast
100K+
Mopidy for unraid with support for snapcast and icecast
NEW: Mopidy3 - just pull knex666/mopidy:3-experimental
Frontend extensions *Iris (Not in Mopidy 3) *Mopidy Musicbox Webclient *Mopidy Party *Mopidy Simple webclient *API explorer *Local images
Backend extensions *Spotify *Streaming *Youtube *Spotify tunigo *Soundcloud *Scrobbler *Tunein *Local SQLite
generate the mopidy.conf file *Doc here https://docs.mopidy.com/en/latest/config/ *example here https://github.com/maschhoff/docker/blob/master/mopidy/mopidy.conf
*authentication for soundcloud and spotify https://www.mopidy.com/authenticate/ *authenticate spotify https://developer.spotify.com/documentation/web-api/quick-start/
RUN EXAMPLE
docker run -d --name='Mopidy3' --net='br0' --ip='192.168.100.42' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -v '/mnt/user/appdata/mopidy/':'/config/':'rw' -v '/mnt/user/appdata/mopidy/tmp/':'/tmp/':'rw' -v '/mnt/user/Musik/':'/media':'rw' -p 6600:6600 -p 6680:6680 -p 5555:5555/udp 'knex666/mopidy:3-experimental' mopidy - - config /config/mopidy.conf
for audio you need a special config for snapcast you have to generate the audio output in a pipe file /tmp/snapfifo this is mounted in both docker container
[audio] output = audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! audioconvert ! wavenc ! filesink location=/tmp/snapfifo
icecast
[audio] output = lamemp3enc ! shout2send async=false mount=mopidy ip=X.X.X.X port=8000 password=XXXXX
set up snapcast from kevineye/snapcast
set Postargument to snapserver -s pipe:///data/snapfifo?name=Example&sampleformat=44100:16:2
set up the network to br0 you have to reach your snapcast from the app or snap-client
mount /mnt/user/appdata/mopidy/tmp/ >> /data for the snapfifo pipe file
or set up icecast from infiniteproject/icecast
set up the network to br0 you have to reach it over http
set up env Parameter or use a xml config file
btw: I had some trouble with stopping the radio by selecting the next track -
take that config file https://raw.githubusercontent.com/xiph/Icecast-Server/master/conf/icecast.xml.in mount it put an 1 sec silent mp3 file to /mnt/user/appdata/icecast/void.mp3 and mount it to /usr/share/icecast/web/void.mp3 edit the icecast.xml config:
<listen-socket>
<port>8000</port>
<shoutcast-mount>/mopidy</shoutcast-mount>
<shoutcast-mount>/void.mp3</shoutcast-mount>
</listen-socket>
<mount>
<mount-name>/mopidy</mount-name>
<fallback-mount>/void.mp3</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
</mount>
<mount>
<mount-name>/void.mp3</mount-name>
<dump-file>/void.mp3</dump-file>
<burst-size>65536</burst-size>
</mount>
Content type
Image
Digest
Size
310.1 MB
Last updated
over 7 years ago
docker pull knex666/mopidy