Can't Transcode FLACs

Need help? Post your questions here.

Moderator: moderators

Can't Transcode FLACs

Postby thread » Wed Jul 07, 2010 12:23 pm

I've been struggling with this for a while, and finally decided to just ask the forum.

When I try to play FLAC files in the web interface, they simply never start playing. The log says something like this:

Code: Select all
[2010-07-07 08:14:25,449] DEBUG TranscodeInputStream - Starting transcoder: [/home/mythtv/apps/subsonic/transcode/lame] [-S] [-h] [-b] [192] [/storage/music/DJ Beats/DJ Spooky/DJ Spooky vs. the frieght elevator quartet - File Under Futurism (FLAC)/08 - Experimental Asyncronicity.flac] [-]


That's all that happens.

On my phone, I get an error dialog:

Code: Select all
Error playing "Name of my Song".

Prepare failed.: status=0x1 (IOException)


I followed the troubleshooting advice over here... I have my flac and lame executables symlinked within the $SUBSONIC_HOME's transcode folder. This is linux, by the way.

I've totally had this working in the past, but I guess since I upgraded the Subsonic server some weeks ago, it broke.

Any thoughts? Anything more I could add?

Thanks very much in advance!
thread
 
Posts: 13
Joined: Sat Feb 13, 2010 10:29 pm

Postby Poffa » Wed Jul 07, 2010 1:07 pm

Hi

Try to copy lame and flac executables to your subsonic/transcode folder. I had a similiar problem with symlinks.
Poffa
 
Posts: 62
Joined: Sun Jun 28, 2009 4:21 pm
Location: Bergen, Bergen

Postby thread » Wed Jul 07, 2010 1:15 pm

Thank you for the response, Poffa!

Unfortunately, that didn't seem to help. I get the exact same result with actual files instead of symlinks.
thread
 
Posts: 13
Joined: Sat Feb 13, 2010 10:29 pm

Postby delcypher » Wed Jul 07, 2010 11:05 pm

Could you please post your transcoder settings for "flac > mp3" (In the web interface under Settings>Transcoders)

These default for "flac > mp3" actually uses ffmpeg (not the flac tool) for decoding the FLAC file to wav then passes that on to Lame. The flac tool will be useless if you don't tell subsonic to use it.

I haven't finished the list yet. Put I've posted a list of transcoder configurations on the wiki.
http://sourceforge.net/apps/mediawiki/subsonic/index.php?title=Transcoders
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby thread » Wed Jul 07, 2010 11:19 pm

Right, good point!

I just went looking for the line I needed, but came up short. I'm surprised this tweak is so well hidden.

I actually just added ffmpeg to my transcode directory, and the default command does work for me now!... Is there some reason I should use the flac tool over ffmpeg?

I suppose if we've come this far, you may as well and just let us know what the flac version of the command would look for...

I have:

flac > mp3:
Step 1: ffmpeg -i %s -f wav -
Step 2: lame -b %b - -

Thanks!
thread
 
Posts: 13
Joined: Sat Feb 13, 2010 10:29 pm

Postby delcypher » Wed Jul 07, 2010 11:26 pm

I don't know of any good reason to use flac over ffmpeg for conversion. I expect they use the same implementation.

It is on the wiki but if you did want to use flac instead of ffmpeg for converting "flac > mp3" then you would want.

Code: Select all
#step 1
flac --decode --stdout %s
#step 2
lame -b %b - -


For a basic configuration. Look at flac's and lame's manual pages for more info on what you can do with them.
delcypher
 
Posts: 109
Joined: Tue Jun 01, 2010 10:39 am

Postby thread » Wed Jul 07, 2010 11:27 pm

Thanks again, delcypher. I really appreciate you clearing this up for me!
thread
 
Posts: 13
Joined: Sat Feb 13, 2010 10:29 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests