mp3fs - A filesystem which translates many types of music files into mp3's

Author: Chris Stucchio (

mp3fs solves the problem that you store your music files in lossless flac or other formats,
but your mp3 player or phone wants mp3 files.

A simple example illustrates what mp3fs does:

    $ ls music
    01 Ghosts I.flac  03 Ghosts I.wav  mp3file.mp3
    02 Ghosts I.wav   04 Ghosts I.ogg  nin_ghosts_I-IV_flac

    $ mkdir mp3music

    $ mp3fs music mp3music

    $ ls mp3music
    01 Ghosts I.mp3  03 Ghosts I.mp3  mp3file.mp3
    02 Ghosts I.mp3  04 Ghosts I.mp3  nin_ghosts_I-IV_flac

Now, lets copy some mp3 files to our music player.

    $ cp mp3music/01\ Ghosts\ I.mp3 /media/NEXUS\ ONE

When you type this command, mp3fs will convert 01\ Ghosts\ 1.flac into 01\ Ghosts\ I.mp3 and
then the mp3 version will be copied to /media/NEXUS\ One. In short, mp3fs lazily converts your
music files to mp3 format.

It assumes you have the following command line tools installed:
    lame (required for all formats)
    flac (required to convert flac files)
    oggdec (required to convert ogg files)
    faad (required for mp4 and aac files)

If you lack some of these, mp3fs will degrade gracefully. If you lack lame, it just won't work.

Some caveats:
  * Obviously this is somewhat slow and CPU heavy.
  * Any calls to getfilestat (e.g., via ls -l in an mp3fs directory) will cause the file to be converted.
    ls -l will be a VERY slow operation.
  * Nautilus (the Gnome file manager) will, by default, call getfilestat on all files contained in the
    root of any newly mounted directory. This can be switched off via gconfeditor, at the path