Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Tree [89aee3] master /
History



File Date Author Commit
CMakeModules 2007-07-28 prakashkc prakashkc [9e1b40] remove unused modules
aften 2011-01-04 Justin Ruggles Justin Ruggles [89aee3] cosmetics: update copyright year
bindings 2008-10-18 jbr79 jbr79 [66ca9e] update C# bindings to reflect API change
libaften 2011-01-04 Justin Ruggles Justin Ruggles [f35f93] Improve rematrixing flag decision by using mini...
pcm 2010-01-10 Prakash Punnoor Prakash Punnoor [f92def] user proper float constants to silence warnings...
util 2011-01-04 Justin Ruggles Justin Ruggles [89aee3] cosmetics: update copyright year
API C#.txt 2010-01-03 Justin Ruggles Justin Ruggles [d457da] Merge branch 'master' of ssh://jbr79@aften.git....
API.txt 2010-01-03 Justin Ruggles Justin Ruggles [d457da] Merge branch 'master' of ssh://jbr79@aften.git....
CMakeLists.txt 2010-01-03 Justin Ruggles Justin Ruggles [d457da] Merge branch 'master' of ssh://jbr79@aften.git....
COPYING 2006-08-05 jbr79 jbr79 [097d64] import initial 0.04 tree
Changelog 2011-01-04 Justin Ruggles Justin Ruggles [d91aa6] Update Changelog with stereo rematrixing changes.
README 2011-01-04 Justin Ruggles Justin Ruggles [89aee3] cosmetics: update copyright year
bswap.h 2008-10-18 jbr79 jbr79 [452ce8] cosmetics: if and for spacing
common.h 2009-04-27 jbr79 jbr79 [b9f3e6] use x86 version of read_time() from FFmpeg for ...

Read Me

-------------------------------------------------------------------------------
Aften: A/52 audio encoder

A simple AC3-compatible audio encoder based on FFmpeg.

-------------------------------------------------------------------------------
Aften, Copyright (c) 2006-2011 Justin Ruggles <justin.ruggles@gmail.com>
                     2006-2011 Prakash Punnoor <prakash@punnoor.de>
http://aften.sourceforge.net/
-------------------------------------------------------------------------------
FFmpeg, Copyright (c) 2000-2011 Fabrice Bellard, et al.
http://www.ffmpeg.org/
-------------------------------------------------------------------------------


Building Aften with CMake
==========================

Note: Avoid gcc-3 if you care for fast vector code.
gcc-4.2 generates slow MMX code. Try using gcc-4.1 instead. If
your CPU supports SSE2 though, this is not an issue, as the SSE2 code
replaces the MMX code and the former is unaffected by the gcc bug.

The aim of using CMake is making portable development easier, as CMake
contains generators for various build systems. On e.g. *nix Makefiles
will be built, and on Windows MS VC++ project files, if you wish. You
can get CMake at http://cmake.org/.

This document explains briefly how to build with CMake on Linux via an
out-of-tree build:

   - Change to the toplevel directory containing the Aften sources.
   - Create a directory, e.g. "default", and change into it.
   - Now run something like:

        cmake .. -DCMAKE_INSTALL_PREFIX:STRING="/usr"
        make
        make install

     If you exported your CFLAGS, there is no need to specify them
     explicitly, as CMake will pick them up.

   - Aften should get installed as you got used to it.

I really would like to get CMake building Aften on every supported
platform. So please contact me if it doesn't build on yours. I'll try to
fix this with your help.

Following Options might be of interest for you:

SHARED: Builds aften as a shared lib, as well. The API hasn't been set
        in stone, so you have been warned. ;-)
DOUBLE: Builds aften using double precision. Beware that you won't get
        SIMD code, as the SSE code hasn't been ported to SSE2, yet.
BINDINGS_CXX: Builds C++ bindings for aften. Include aftenxx.h in your
        C++ project and link to aftenxx. You will find aften related
        classes in the namespace Aften.
BINDINGS_CS: Builds C# bindings for aften. Include a reference to
        AftenSharp.dll in your C# project. You will find aften related
        classes in the namespace Aften.

Some tips:

   - You can use a console GUI named ccmake for configuring cmake. This
     also comes in handy, to find out about available options. You can
     also set options via command-line:

        ccmake .. -DCMAKE_INSTALL_PREFIX:STRING="/usr"

     sets the two variables defined on command line and then starts the
     GUI. Press 'c' the first time and every time you want to commit
     changes in the config. Finally press 'g' to run the generator. Btw,
     to set boolean vars from the command line, use -DVAR:BOOL=X, where
     X is eg. ON or OFF.

   - If you want more output at compile time, use

        make VERBOSE=1

   - If you want to install to a different directory (using same
     prefix), use

        make install DESTDIR=/foo/bar

   - CMake doesn't have a distclean target by default, so you better
     really do an out-of-tree build, then you can simply delete its
     content when you want a distclean... Furthermore it is easier to
     have different builds using different parameters via out-of-tree
     builds.

   - If you are interested in variables to set, take a look into
     CMakeCache.txt after having run the configuring stage.

   - If you update your source tree via git and want to rebuild an
     previously built lib without cleaning, you better at least clear
     the CMake cache (remove CMakeCache.txt) otherwise a modified CMake
     project file could result in unwanted behaviour.