Implementation for libav conversion.  This also detects if libav is installed, and if not defaults to the old mencoder implementation.  The libav conversion is more sophisticated.  It checks what the container format is, what the audio codec is, and the video codec is.  Copying if possible, but otherwise doing the conversion.
Updated the readme with details for what I just committed.