Using an external player for Jukebox mode

General discussions.

Moderator: moderators

Using an external player for Jukebox mode

Postby ccandreva » Sat Jun 05, 2010 3:15 pm

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/
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Postby ccandreva » Wed Jun 09, 2010 8:52 pm

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.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Postby flacflac » Wed Jul 28, 2010 8:29 pm

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
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby ccandreva » Wed Jul 28, 2010 9:50 pm

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.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm


Return to General

Who is online

Users browsing this forum: No registered users and 10 guests