Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mopidy only plays one song when using snapcast #1334

Closed
vdbee opened this issue Nov 24, 2015 · 4 comments
Closed

Mopidy only plays one song when using snapcast #1334

vdbee opened this issue Nov 24, 2015 · 4 comments

Comments

@vdbee
Copy link

vdbee commented Nov 24, 2015

To configure Mopidy (on a RPI2) such that it can make use of snapcast it has to output to a FIFO buffer. This works fine except for the fact that Mopidy now only plays a single song while its que is filled.

Might be relevant: this RPI2 has both the snapclient and snapserver running.

I pasted the complete Mopidy log below, but some lines are particular for the situation:
When I hit play Mopidy adds this to the log:
WARNING [3705:MainThread] mopidy.audio.gst: Element doesn't implement handling of this stream. Please file a bug.
When the song ends or the second song starts (I don't know) Mopidy adds this to the log:
ERROR [3705:MainThread] mopidy.audio.gst: Could not perform seek on resource.

I configured my sound as follows:
[audio]
mixer = software
mixer_volume = 100
output = audioresample ! audioconvert ! wavenc ! filesink location=/tmp/snapfifo

output = alsasink

Full log:
cat /var/log/mopidy/mopidy.log
2015-11-24 20:50:18,211 INFO [3580:MainThread] mopidy.main: Starting Mopidy 1.1.1
2015-11-24 20:50:18,824 INFO [3580:MainThread] mopidy.config: Loading config from builtin defaults
2015-11-24 20:50:18,842 INFO [3580:MainThread] mopidy.config: Loading config from /etc/mopidy/mopidy.conf
2015-11-24 20:50:18,859 INFO [3580:MainThread] mopidy.config: Loading config from command line options
2015-11-24 20:50:19,079 INFO [3580:MainThread] mopidy.main: Enabled extensions: mopify, spotify, mpd, http, stream, spotify_tunigo, m3u, youtube, material-webclient, softwaremixer, file, musicbox_webclient, websettings, tunein
2015-11-24 20:50:19,080 INFO [3580:MainThread] mopidy.main: Disabled extensions: local
2015-11-24 20:50:20,202 INFO [3580:MainThread] mopify: Setup Mopify
2015-11-24 20:50:20,204 INFO [3580:MainThread] mopidy.commands: Starting Mopidy mixer: SoftwareMixer
2015-11-24 20:50:20,214 INFO [3580:MainThread] mopidy.commands: Mixer volume set to 100
2015-11-24 20:50:20,217 INFO [3580:MainThread] mopidy.commands: Starting Mopidy audio
2015-11-24 20:50:20,225 INFO [3580:MainThread] mopidy.commands: Starting Mopidy backends: SpotifyBackend, SpotifyTunigoBackend, StreamBackend, M3UBackend, FileBackend, TuneInBackend, YouTubeBackend
2015-11-24 20:50:20,305 INFO [3580:MainThread] mopidy.m3u.playlists: Loaded 0 M3U playlists from /music
2015-11-24 20:50:20,375 INFO [3580:Audio-2] mopidy.audio.actor: Audio output set to "audioresample ! audioconvert ! wavenc ! filesink location=/tmp/snapfifo"
2015-11-24 20:50:20,820 INFO [3580:MainThread] mopidy.commands: Starting Mopidy core
2015-11-24 20:50:21,027 INFO [3580:SpotifyEventLoop] spotify.session: Spotify logged in
2015-11-24 20:50:21,029 INFO [3580:SpotifyEventLoop] mopidy_spotify.backend: Logged in to Spotify in offline mode
2015-11-24 20:50:21,798 INFO [3580:SpotifyEventLoop] mopidy_spotify.backend: Logged in to Spotify in online mode
2015-11-24 20:50:33,933 INFO [3580:MainThread] mopidy.commands: Starting Mopidy frontends: MpdFrontend, HttpFrontend, QueueManagerFrontend
2015-11-24 20:50:33,939 INFO [3580:MainThread] mopidy.mpd.actor: MPD server running at [::]:6600
2015-11-24 20:50:33,949 INFO [3580:HttpFrontend-16] mopidy.http.actor: HTTP server running at [::]:6680
2015-11-24 20:50:34,871 INFO [3580:MpdSession-18] mopidy.mpd.session: New MPD connection from [::1]:35388
2015-11-24 20:51:25,173 WARNING [3580:MainThread] mopidy.audio.gst: Element doesn't implement handling of this stream. Please file a bug.
2015-11-24 20:51:55,840 INFO [3580:HttpServer] tornado.access: 200 GET /musicbox_webclient/images/icons/play_alt_16x16.png (192.178.168.126) 26.90ms
2015-11-24 20:52:02,206 ERROR [3580:MainThread] mopidy.audio.gst: Could not perform seek on resource.
2015-11-24 20:53:11,579 WARNING [3580:MainThread] mopidy.audio.gst: Element doesn't implement handling of this stream. Please file a bug.
2015-11-24 20:55:18,886 ERROR [3580:MainThread] mopidy.audio.gst: Could not perform seek on resource.

Any idea how to improve my configuration?

@adamcik
Copy link
Member

adamcik commented Nov 24, 2015

I have no idea what snapcast is, but my guess is that you are having problems because we close, and then reopen the outputs between tracks. Go ahead and give develop a go as we recently landed most of the gapless fixes which are meant to resolve this exact issue.

@vdbee
Copy link
Author

vdbee commented Nov 24, 2015

Thaks for your quick response. Getting develop up and running, using mopidy documentation, is beyond my skills for now.. Any idea when the new version will arrive?

@adamcik
Copy link
Member

adamcik commented Nov 24, 2015

Probably this year, but essentially when it's ready :-)

Oh, and as this is a FIFO endpoint, it might not be that simple :( I've previously looked into FIFOs for #775 and gapless might help, but I won't guarantee that it alone is really enough.

@vdbee
Copy link
Author

vdbee commented Nov 28, 2015

.. Tried a bit harder... Yes, the develop version solves my issue. Thanks!

@vdbee vdbee closed this as completed Nov 28, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants