Page 1 of 1

jukebox freezes when switching songs

PostPosted: Tue Jan 20, 2015 3:47 pm
by dafreez
I just installed subsonic on my headless ubuntu (14.04) server that is connected to my home stereo. I intend to use it primarily in jukebox mode as a replacement for MPD using my (Android) phone to control it. However I have run into the following issue:

After (re)starting the server I can select an album/song using my android phone in jukebox mode and begin playing it. However, if I select a different album/song from the library during playback and do 'play now' The current song stops and no new song is begun. The phone displays the new song as playing, but when I log into the desktop client is shows whatever song I had first selected as the now playing song in the android jukebox player. At this point there is nothing I can do to get the jukebox to start working again, except restarting the service entirely (sudo service subsonic restart)

NB: If I tun ps -aux |grep subsonic on the server while it is 'frozen' it shows that a process for /var/subsonic/transcode/ffmpeg is still running with the following settings: /var/subsonic/transcode/ffmpeg -ss 0 -i [/path/to/file].flac -map 0:0 -v 0 -f au -

I suspect that the problem is that subsonic terminates playback for the first song, but cannot begin anew ffmpeg process for the new song (or something along those lines). This happens regardless of whether I have transcoding set on or off in the player settings.

Has anybody experienced similar problems? Any suggestions for a solution? I would be grateful! The program looks great, but like this it is quite unusable;-(

Re: jukebox freezes when switching songs

PostPosted: Wed Feb 11, 2015 4:07 am
by wintrmute
I strongly suspect I'm suffering the same problem. If you find a solution, do let me know.

Re: jukebox freezes when switching songs

PostPosted: Wed Feb 11, 2015 4:08 am
by wintrmute
Don't know if it's related, but at least one poster seems to suggest OpenJDK just plain doesn't work for Jukebox mode?
viewtopic.php?f=2&t=15058

Re: jukebox freezes when switching songs

PostPosted: Wed Feb 11, 2015 5:12 am
by wintrmute
However I've tested on Oracle JRE 1.8 and it doesn't work for me there either :(

Re: jukebox freezes when switching songs

PostPosted: Wed Feb 11, 2015 5:32 am
by wintrmute
Try reverting the sound.properties back to the "DirectAudioProvider" mode, as per http://keithp.com/blogs/Java-Sound-on-Linux/ -- this looks like it cleared up one of the several issues I've been having with Jukebox mode freezing!