Page 1 of 1

FLAC Streaming Issues on linux

PostPosted: Fri Jun 05, 2009 2:13 pm
by guitargurus
I've been hacking away at this problem for a week or so and I figured I would see if anyone else has encountered it before I give up.

I'm running Ubuntu 9 x64 on vmware ESX. When I stream an MP3 file, everything is fine. When I stream a FLAC, nothing happens. The flash player doesn't seem to attempt to play. If I use an external player, I'll hear garbled sound every few seconds. I have tried 3 different linux distros (ubuntu, centos, FC) and the behavior is exactly the same on all 3. I'm using subsonic 3.6. I have a windows 2003 based subsonic server, with the same exact flac files and it works perfectly. I'm at a loss, any help is appreciated.

Mike

PostPosted: Fri Jun 05, 2009 2:27 pm
by guitargurus
This might help:

at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Caused by: entagged.audioformats.exceptions.CannotReadException: fLaC Header not found
at entagged.audioformats.flac.util.FlacInfoReader.read(Unknown Source)
at entagged.audioformats.flac.FlacFileReader.getEncodingInfo(Unknown Source)
... 67 more

PostPosted: Fri Jun 05, 2009 3:26 pm
by guitargurus
Also, I've tried standalone and war...

PostPosted: Fri Jun 05, 2009 3:30 pm
by guitargurus
Ok, found the problem. This NEEDS to be documented somewhere... .Very important. Each command in the transcode options MUST be in the transcode directory. Simply putting lame in will not do the trick. You must have each command line utility in that directory, or it will not work.

PostPosted: Fri Jun 05, 2009 9:17 pm
by sindre_mehus
Yes I will document that better.

(The reason for this restriction is security. We don't want Subsonic to execute whatever is in the path.)

PostPosted: Mon Jun 29, 2009 7:12 pm
by Poffa
guitargurus wrote:Ok, found the problem. This NEEDS to be documented somewhere... .Very important. Each command in the transcode options MUST be in the transcode directory. Simply putting lame in will not do the trick. You must have each command line utility in that directory, or it will not work.

Hi

How to I do this?

I have symlinked lame in /var/subsonic/transcode (lame -> /usr/bin/lame) on my Ubuntu server 8.04, but that is apparently not enough.

I only hear noise while playing flac files (flac --> mp3) in the web player.
subsonic.log shows:

Code: Select all
[2009-06-29 21:06:41,235] INFO PlaylistInputStream - Opening new song Keep It Hid/06 - Real Desire.flac
[2009-06-29 21:06:41,237] DEBUG TranscodeInputStream - Starting transcoder: [/var/subsonic/transcode/lame] [-S] [-h] [-b] [128] [/media/music/squeeze/Dan Auerbach/Keep It Hid/06 - Real Desire.flac] [-]


Tx

PostPosted: Mon Jun 29, 2009 7:16 pm
by guitargurus
Subsonic doesn't work with symlinks any more. Just do a

cp /usr/bin/lame /var/subsonic/transcode/lame

Also, install "flac" and do the same thing. You can install it on ubuntu by running

sudo apt-get install flac

After it is installed:

cp /usr/bin/flac /var/subsonic/transcode/flac

Make sure transcoding for flac is enabled in the subsonic web interface.

After you do this, everything should work fine.

PostPosted: Mon Jun 29, 2009 7:24 pm
by Poffa
Thank you very much. Worked liked a charm.

PostPosted: Mon Jun 29, 2009 7:26 pm
by guitargurus
No problem. Enjoy!