Page 1 of 1

Using an external player for Jukebox mode

PostPosted: Sat Jun 05, 2010 3:15 pm
by ccandreva
I've made an interesting discovery: You can play any format in Jukebox mode, without actually transcoding, by making a transcoder that is actually an external player.

After having no luck with transcoding FLAC to wav to play in the Jukebox, I decided to make a fake transcoder for flac > ALSA using mplayer instead. The command is
Code: Select all
mplayer -ao alsa %s


This works perfectly, without the overhead of transcoding. Don't forget to create a link to mplayer in /var/subsonic/transcode/

Now it would be great if the web page let you directly control the Jukebox player at all; scrubber, time counter, etc. This would even be possible with an external player. I found this article on controlling mplayer from Air:
http://mchristoff.com/2009/12/using-the ... l-mplayer/

PostPosted: Wed Jun 09, 2010 8:52 pm
by ccandreva
Sadly I've discovered a problem with this. While the playback works, it seems to lock up parts of the web interface. The playlist stops updating, so you can't see what you've added to the playlist until you stop the jukebox player.

PostPosted: Wed Jul 28, 2010 8:29 pm
by flacflac
Interesting workaround for a problem that seems to not get much attention unfortunately. :/

Do you hear a sound glitch whenever the next track starts or is it seamless? :)

Thanks!

ff

PostPosted: Wed Jul 28, 2010 9:50 pm
by ccandreva
I've stopped using this method because of the lockup, if you look in another thread I did figure out how to get FLAC to play without transcoding to MP3 first.