WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Need help? Post your questions here.

Moderator: moderators

WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby ccandreva » Fri Jun 11, 2010 10:10 pm

Subject says it all. Is anyone successfully playing FLAC files in Jukebox mode without transcoding to MP3 first ? How are you doing it ?

I've tried ffmpeg, flac, and sox, none of which work completely. ffmpeg doesn't play at all, flac plays one files but won't go to the next, and sox will suddenly die in the middle of the second song of a playlist.
Last edited by ccandreva on Sat Jun 12, 2010 3:09 am, edited 1 time in total.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Re: Is anyone playing FLAC > WAV in Jukebox under Linux ?

Postby flacflac » Sat Jun 12, 2010 12:22 am

ccandreva wrote:Subject says it all. Is anyone successfully playing FLAC files in Jukebox mode without transcoding to MP3 first ? How are you doing it ?

I've tried ffmpeg, flac, and sox, none of which work completely. ffmpeg doesn't play at all, flac plays one files but won't go to the next, and sox will suddenly die in the middle of the second song of a playlist.


Hi there - it's interesting to hear that these problems exist on Linux as well as on Windows: The lossless playback is unfortunately not implemented properly (yet?) - FLAC to WAV only plays one track at this time, and has done so for the past year - a search should bring up a few threads on this topic. Maybe you can add yourself to the 'me-too' list requesting proper implementation of this feature. Let's hope Sindre can find the time to work on this.

Best wishes,
ff :shock:
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby ccandreva » Sat Jun 12, 2010 3:14 am

Well knowing it was happening on Windows too means it wasn't a problem with my versions of ffmpeg, etc. So I think the definition of the problem is now:

Jukebox mode will only talk correctly to lame as the last program in a filter pipeline.

So the workaround is to make lame the last program in the pipeline, even if we don't need it. I've set up flac > wav like this:

Step 1: ffmpeg -i %s -f wav -
Step 2: lame --decode - -

The '--decode' option tells lame to decode to wav. Since the input is a wav, this should end up doing nothing, but since subsonic is now talking to lame instead of ffmpeg -- IT WORKS !

I've listened to two albums all the way through this way.

In fact, you can use this to listen to MIDI files in Jukebox mode now. Add .mid as a file type, install timidity++ and make sure it works (comes with most Linux distros, no idea how to get it on Windows), link it from /var/subsonic/transcode, and set up the pipeline thusly:

Step 1: timidity -Ow -o - %s
Step 2: lame --decode - -

If mikmod could write WAV data to a pipe I'd have MOD files playing too.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Postby ccandreva » Sun Jun 13, 2010 3:31 am

Seems there is one more issue. The internal player has a problem switching between MP3 and WAV files, it either hangs up, or starts to play static.

The solution, of course, is to make sure it always plays only WAV files !
Set up an MP3 > WAV transcoder, exactly the same as the FLAC>WAV transcoder, and so far all transitions between MP3/FLAC have worked.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Postby flacflac » Sun Jun 20, 2010 8:57 pm

@ccandreva,

thanks for this great workaround. One question: do you have a 'click' sound whenever the next track is started with your setup? Playlists are correctly played with your method, but this 'click' or ultra-brief static sound is a bit bothersome. Wondering if this is the same for you.

Thank you.

ff :shock:
flacflac
 
Posts: 141
Joined: Mon Jun 01, 2009 7:43 am

Postby ccandreva » Sun Jun 20, 2010 9:10 pm

Yes, the same happens. Also really long playlists sometimes stop in the middle. I tlooks like ffmpeg or lame dies and Subsonic doesn't know, and thinks the track is still playing.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Postby maxslug » Sun Mar 06, 2011 9:33 pm

maxslug
 
Posts: 44
Joined: Tue Oct 26, 2010 11:23 pm

Re: WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby iamdooser » Tue Jan 17, 2012 10:02 pm

Is this obsolete?

I turned off the default mp3 transcode for my jukebox players, and FLAC plays without any other intervention. As per the log, it looks like ffmpeg is being used to transcode to pcm.

Ideas?
iamdooser
 
Posts: 11
Joined: Tue Jan 17, 2012 10:00 pm

Re: WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby ccandreva » Tue Jan 17, 2012 10:06 pm

Yes, this is obsolete. Starting with 4.6 the Jukebox is handled differently, ffmpeg is used to convert everything.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Re: WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby maxslug » Fri Mar 23, 2012 1:14 am

Hmmmm so with 4.6 and later, how do we get un-modified audio to play for external players and/or the juke box?

-m
maxslug
 
Posts: 44
Joined: Tue Oct 26, 2010 11:23 pm

Re: WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby ccandreva » Fri Mar 23, 2012 3:33 am

It just works now.
User avatar
ccandreva
 
Posts: 104
Joined: Fri May 28, 2010 8:22 pm

Re: WORKAROUND FOUND: For doing FLAC > WAV in Jukebox !

Postby maxslug » Fri Mar 23, 2012 4:06 pm

ccandreva wrote:It just works now.


I disagree. I can force a transcode to 320k, but I can't find a way to play a FLAC file without transcoding. This was working in previous versions w/ the solution i added to the wiki.
I know, I know, I know... I can't hear the difference between a 320k mp3 and flac -- but I need the audio-geek bragging rights here :D

-m
maxslug
 
Posts: 44
Joined: Tue Oct 26, 2010 11:23 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests