Here are some tips for working with and encoding audio files.
Tips on using Lame MP3 encoder.
Using ffmpeg to encode audio.
Encoding audio to OGG format.
More to come later...