FLAC-1.1.2

Introduction to FLAC

FLAC is an audio CODEC similar to MP3, but lossless, meaning that audio is compressed without losing any information.

Package Information

Additional Downloads

FLAC Dependencies

Optional

libogg-1.1.3, XMMS-1.2.10, NASM-0.98.39, DocBook-utils-0.6.14, Doxygen-1.4.6 and Valgrind

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/flac

Installation of FLAC

Install FLAC by running the following commands:

patch -Np1 -i ../flac-1.1.2-xmms_plugin_fix-1.patch &&
LIBS=-lm ./configure --prefix=/usr &&
make

If you have Valgrind version 3.0.0 or higher installed and you plan on running the test suites after passing the --enable-valgrind-testing parameter to configure, you need to issue the following command to change some test scripts:

sed -i -e "s/logfile-fd/log-fd/" `grep -lr logfile-fd test/*sh`

To test the results, issue: make check. This test suite will take quite a while. Note that if you passed the --enable-exhaustive-tests and --enable-valgrind-testing parameters to configure and then run the test suite, it will take a very long time (up to 300 SBUs) and use about 375 MB of disk space.

Now, as the root user:

make install

Command Explanations

LIBS=-lm ./configure --prefix=/usr: libFLAC uses a function from the math library but is not linked with libm. Passing the environment variable to configure satisfies this dependency.

--enable-sse: This option is off by default and should be set on if your machine has SSE capability. One way to find out if you have SSE is to issue cat /proc/cpuinfo and see if sse is listed in the flags.

Contents

Installed Programs: flac and metaflac
Installed Libraries: libFLAC.{so,a}, libFLAC++.{so,a}, libOggFLAC.{so,a}, libOggFLAC++.{so,a}, and libxmms-flac.{so,a}
Installed Directories: /usr/share/doc/flac-1.1.2

Short Descriptions

flac

is a command-line utility for encoding, decoding and converting FLAC files.

metaflac

is a program for listing, adding, removing, or editing metadata in one or more FLAC files.

lib{,Ogg}FLAC{,++}.{so,a}

these libraries provide native FLAC and Ogg FLAC C/C++ APIs for programs utilizing FLAC.

libxmms-flac.{so,a}

is a plugin for XMMS.

Last updated on 2007-01-15 17:25:53 -0600