what program to play 24 bit FLACs?

Steve O'Hara-Smith steve at sohara.org
Mon Mar 31 15:27:26 PDT 2008

On Tue, 26 Jun 2007 16:33:52 +1000
Andrew Snow <andrew at modulus.org> wrote:

> Now I have 24/96 audio working with mplayer.

	I know it's been a long time, but I'm now in the same boat as you
were then and I've found a solution :)

> It is working for 24/96 WAV files, but I am trying to play 24/96 FLACs, 
> and the only program that appears to support 24 bit audio properly is 
> mplayer.  Unfortunately while WAV works well with mplayer, FLAC is choppy.

	It's a bit long winded but this does the trick.

flac -d -c --force-raw-format --endian=little --sign=signed "$file" |
mplayer -rawaudio channels=2:rate=96000:samplesize=3 -format s32le -demuxer

	I also have a tiny little C program (40 lines of source) that does
nothing but play a 24/96 raw audio stream on stdin which works fine in
place of mplayer in the above pipeline. If time permits I may work this up
into a self contained flac player.

	Now - did you or anyone else ever find anything better ?

C:>WIN                                      |   Directable Mirror Arrays
The computer obeys and wins.                | A better way to focus the sun
You lose and Bill collects.                 |    licences available see
                                            |    http://www.sohara.org/

More information about the freebsd-multimedia mailing list