Under Unix/Linux, media hive does not reencode media out-of-the-box. You must
supply reencoding binaries that are compiled specifically for your system.

The only audio format that media hive reencodes to is MP3. When it comes to
decoding, however, it's a bit more flexible - it can convert MP4, Ogg Vorbis,
and FLAC to MP3. It also does MP3 to MP3 reencoding for when you want to change
the bitrate of your stream (to stream in low-bandwidth conditions, for example).

All reencoder plugin configuration files come pre-configured in the Unix/Linux
distribution, which means all you have to do is supply the appropriate binaries
to enable reencoding. The following programs are referenced in media hive's
default reencoding configuration files:

lame (MP3 decoding/encoding)
faad (MP4 decoding)
flac (FLAC decoding)
ffmpeg (Video reeencoding)

Use the following list to determine which binaries must be present to reencode
each audio format:

MP3 -> MP3: lame
MP4 -> MP3: faad, lame
FLAC -> MP3: flac, lame
Ogg Vorbis -> MP3: lame

You do not need to supply all these binaries - only the ones required for the
format(s) you want to reencode.

For video, FFmpeg is used, which is capable of handling a number of different
formats.

You can download source code for the above programs at the following locations:

lame: http://lame.sourceforge.net/
faad: http://www.audiocoding.com/faad2.html
flac: http://flac.sourceforge.net/download.html
ffmpeg: http://ffmpeg.mplayerhq.hu/

You can also use the sources that are in the "mhive/support/source" directory.
They should work fine, but aren't guaranteed to be the most up-to-date versions.
Note that since FFmpeg doesn't do formal source releases, a source bundle isn't
included in the media hive distribution - you'll have to go to the FFmpeg web
site to get it.

Once you have compiled the programs on your system, place them in the
"mhive/support" directory (or create symbolic links) and reencoding will work.
Media hive's reencoder configuration files reference the binaries by the names
used above, so don't rename them unless you're up for editing the configuration
files (see below).

If you want to use different binaries, or want to locate the binaries in a
directory other than the support directory, you will need to modify the
reencoder plugin configuration files that reference the binaries in question.
Reencoder configuration files are located in the "plugins" directory, and end
with ".streamreencoder.xml".

TROUBLESHOOTING

If you hear static or get other unexpected behavior during reencoding, check
that the correct options are configured for the command(s) in the appropriate
config file. (As a suggestion, sometimes the presence/omission of the -x flag in
the lame configuration can cause problems, depending on your system and the
program that is supplying lame with input data.)
