Hello,
I am having difficulty trying to set up Mopidy with Snapcast to have synchronous audio in multiple rooms. I have been following multiple guides on MagPi Magazine and after many hours of hair-pulling and searching, I just cannot figure it out. I am hoping someone can help.
Guides are here:
I set up Mopidy on my Raspberry Pi 4 (4GB) that I also have Home Assistant running in a Docker container from the IotStack project on this same Pi.
My music is from a SMB share from an external USB hard drive attached to my DD-WRT router. I have this folder auto mount in fstab. It mounts to /home/pi/Music
I was able (with a lot of dicciculty) to scan the media folder and get my music added in Mopidy and I can see it in Iris when i go to Browse–>Local Media.
I set up snapserver and snapclient on the Pi 4 that is running Mopidy.
I set up Snapclient on a raspberry Pi Zero W
I can see all these clients under the snapcast settings in Iris.
When I add a list of songs to the now playing list and go to Now Playing and press play, nothing plays. It seems that it plays 4 seconds of silence and then restarts. Also, If I ahve consume selected, it consumes the entire playlist as soon as i press play and then starts playing the 4 seconds of silence repeatedly. I have no idea what I’m missing.
Any help is greatly appreciated.
Mopidy Config:
Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config” as user root
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000
restore_state = false
[logging]
verbosity = 0
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
config_file =
[audio]
mixer = software
mixer_volume =
output = audioresample ! audioconvert ! audio/x-raw,rate=48000,channels=2,format=S16LE ! filesink location=/tmp/snapfifo
buffer_time =
[proxy]
scheme =
hostname =
port =
username =
password =
[mpd]
enabled = false ; Extension disabled by user config.
[local]
enabled = true
max_search_results = 100
media_dir = /home/pi/Music/
scan_timeout = 3000
scan_flush_threshold = 100
scan_follow_symlinks = false
included_file_extensions =
excluded_file_extensions =
.cue
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
directories =
Albums local:directory?type=album
Artists local:directory?type=artist
Composers local:directory?type=artist&role=composer
Genres local:directory?type=genre
Performers local:directory?type=artist&role=performer
Release Years local:directory?type=date&format=%25Y
Tracks local:directory?type=track
Last Week’s Updates local:directory?max-age=604800
Last Month’s Updates local:directory?max-age=2592000
timeout = 10
use_artist_sortname = false
album_art_files =
*.jpg
*.jpeg
*.png
[iris]
enabled = true
country = NZ
locale = en_NZ
spotify_authorization_url =
lastfm_authorization_url =
genius_authorization_url =
data_dir = $XDG_DATA_DIR/iris
[file]
enabled = true
media_dirs =
$XDG_MUSIC_DIR|Music
~/|Home
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000
[http]
enabled = true
hostname = 0.0.0.0
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins =
csrf_protection = true
default_app = mopidy
[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =
[softwaremixer]
enabled = true
[stream]
enabled = true
protocols =
http
https
mms
rtmp
rtmps
rtsp
metadata_blacklist =
timeout = 5000
Mopidy Deps
Executable: /usr/bin/mopidy
Platform: Linux-5.10.17-v7l±armv7l-with-debian-10.9
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.1.0 from /usr/local/lib/python3.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy-Local: 3.2.1 from /usr/local/lib/python3.7/dist-packages
uritools: 3.0.1 from /usr/local/lib/python3.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
Pykka: 2.0.3 from /usr/lib/python3/dist-packages
Mopidy-Iris: 3.57.4 from /usr/local/lib/python3.7/dist-packages
Mopidy: 3.1.1 from /usr/lib/python3/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Pykka: 2.0.3 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.30.4
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
pulsesink
id3demux
id3v2mux
lamemp3enc
mpegaudioparse
mpg123audiodec
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
flump3dec
mad