Compiling aoTuV
As of March 2006, the recommended encoder for Ogg Vorbis is aoTuV beta 4. Here are notes for compiling aoTuV under Linux in case you do not want to use the binaries from rarewares.org, for example if you want to optimize for your CPU, want to link other programs, or if you don't use an Intel-compatible CPU.
- Get the patched libvorbis source code from the aoTuV website
- unpack the tarball and change into to the directory aotuv-b4_20050617_111merged/
- If you want to overwrite your existing vorbis libraries:
CFLAGS=-fno-strict-aliasing sh ./configure
make
make install
- If you want to keep your existing libraries:
CFLAGS=-fno-strict-aliasing sh ./configure --prefix=/usr/local
make
make install
- Call oggenc as
LD_PRELOAD=`echo /usr/local/lib/libvorbis*.so` oggenc -q4 foo.wav
The flag -fno-strict-aliasing
is necessary if you compile with gcc 4, see the thread on HydrogenAudio.