FLAC-1.2.1

Introduction to FLAC

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

This package is known to build and work properly using an LFS-7.0 platform.

Package Information

  • Download (HTTP): http://downloads.sourceforge.net/flac/flac-1.2.1.tar.gz

  • Download MD5 sum: 153c8b15a54da428d1f0fadc756c22c7

  • Download size: 1.9 MB

  • Estimated disk space required: 205 MB (includes running the test suite)

  • Estimated build time: 0.6 SBU (additional 8 SBU to run the test suite)

FLAC Dependencies

Optional

libogg-1.3.0, NASM-2.09.10, DocBook-utils-0.6.14, Doxygen-1.7.5 and Valgrind

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

Installation of FLAC

Install FLAC by running the following commands:

sed -i 's/#include <stdio.h>/&\n#include <string.h>/' \
    examples/cpp/encode/file/main.cpp &&

./configure --prefix=/usr --disable-thorough-tests &&
make

To test the results, issue: make check. 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

--disable-thorough-tests: This parameter is used so that the test suite will complete in a reasonable amount of time. Remove it if you desire more extensive tests.

--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.

--disable-static: This switch prevents the static libraries from being built.

Contents

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

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.

libFLAC{,++}.{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 2011-12-28 23:27:03 +0000