Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Tree [842e73] master /
History



File Date Author Commit
src 2011-12-04 Kristofer Henriksson Kristofer Henriksson [52ea91] Release version 0.31
web 2011-12-04 Kristofer Henriksson Kristofer Henriksson [842e73] Adjust name of rst2html.py
.gitignore 2010-12-01 Kristofer Henriksson Kristofer Henriksson [341082] Add man page and build rules for man page
.mailmap 2010-09-18 Kristofer Henriksson Kristofer Henriksson [826366] Add mailmap file for git-blame and friends
AUTHORS 2006-08-11 David Collett David Collett [9b8387] cleanup debug code
COPYING 2007-08-26 David Collett David Collett [ddbd71] update license to gplv3
INSTALL 2010-07-11 Kristofer Henriksson Kristofer Henriksson [a3c584] Add install instructions for Ubuntu
Makefile.am 2010-12-01 Kristofer Henriksson Kristofer Henriksson [341082] Add man page and build rules for man page
NEWS 2011-12-04 Kristofer Henriksson Kristofer Henriksson [52ea91] Release version 0.31
README.rst 2011-12-04 Kristofer Henriksson Kristofer Henriksson [52ea91] Release version 0.31
autogen.sh 2010-06-02 Kristofer Henriksson Kristofer Henriksson [3d0e5a] Add more build system optimizations
configure.ac 2011-12-04 Kristofer Henriksson Kristofer Henriksson [52ea91] Release version 0.31
mp3fs.1.txt 2011-12-04 Kristofer Henriksson Kristofer Henriksson [52ea91] Release version 0.31

Read Me

MP3FS

Maintainer:

Kristofer Henriksson (kthenry@users.sourceforge.net)

Authors:
Web site:

http://mp3fs.sourceforge.net/

We're pleased to announce the release of version 0.31 of mp3fs! This is a small update which fixes a few bugs and adds configuration options for the ReplayGain support.

Introduction

MP3FS is a read-only FUSE filesystem which transcodes audio formats (currently FLAC) to MP3 on the fly when opened and read. This was written to enable me to use my FLAC collection with software and/or hardware which only understands the MP3 format e.g. gmediaserver to a Netgear MP101 MP3 player.

It is also a novel alternative to traditional MP3 encoders. Just use your favorite file browser to select the files you want encoded and copy them somewhere!

How it Works

When a file is opened, the decoder and encoder are initialised and the file metadata is read. At this time the final filesize can be determined as we only support constant bitrate (CBR) MP3 files.

As the file is read, it is transcoded into an internal per-file buffer. This buffer continues to grow while the file is being read until the whole file is transcoded in memory. The memory is freed only when the file is closed. This simplifies the implementation.

Seeking within a file will cause the file to be transcoded up to the seek point (if not already done). This is not usually a problem since most programs will read a file from start to finish. Future enhancements may provide true random seeking.

ID3 version 2.4 and 1.1 tags are created from the vorbis comments in the FLAC file. They are located at the start and end of the file respectively.

A special optimisation is made so that applicatins which scan for id3v1 tags do not have to wait for the whole file to be transcoded before reading the tag. This dramatically speeds up such applications.

For build instructions see the bundled INSTALL file.

Usage

NOTE: The command line format changed in version 0.30, making bitrate a command-line or mount option of the program.

Mount your filesystem like this:

mp3fs [-b bitrate] musicdir mountpoint [-o fuse_options]

For example,

mp3fs -b 128 /mnt/music /mnt/mp3 -o allow_other,ro

In recent versions of FUSE and mp3fs, the same can be achieved with the following entry in /etc/fstab:

mp3fs#/mnt/music /mnt/mp3 fuse allow_other,ro,bitrate=128 0 0

Note that this requires /sbin/mount.fuse from the fuse-utils package.

At this point the filesystem is ready to be used. Here are the original files:

dave@bender:~/mp3fs$ ls -l /mnt/music/Smashing\ Pumpkins/Pisces\ Iscariot/
total 345316
-rw-r--r-- 1 mythtv mythtv 10267876 2005-06-19 18:36 01 - Soothe.flac
-rw-r--r-- 1 mythtv mythtv 23512276 2005-06-19 18:36 02 - Frail And Bedazzled.flac
-rw-r--r-- 1 mythtv mythtv 23332187 2005-06-19 18:36 03 - Plum.flac
-rw-r--r-- 1 mythtv mythtv 26402936 2005-06-19 18:36 04 - Whir.flac
-rw-r--r-- 1 mythtv mythtv 21591252 2005-06-19 18:36 05 - Blew Away.flac
-rw-r--r-- 1 mythtv mythtv 16719855 2005-06-19 18:36 06 - Pissant.flac
-rw-r--r-- 1 mythtv mythtv 33454889 2005-06-19 18:36 07 - Hello Kitty Kat.flac
-rw-r--r-- 1 mythtv mythtv 32073747 2005-06-19 18:36 08 - Obscured.flac
-rw-r--r-- 1 mythtv mythtv 17614217 2005-06-19 18:36 09 - Landslide.flac
-rw-r--r-- 1 mythtv mythtv 65406696 2005-06-19 18:36 10 - Starla.flac
-rw-r--r-- 1 mythtv mythtv 18651734 2005-06-19 18:36 11 - Blue.flac
-rw-r--r-- 1 mythtv mythtv 25055200 2005-06-19 18:36 12 - Girl Named Sandoz.flac
-rw-r--r-- 1 mythtv mythtv 28060023 2005-06-19 18:36 13 - La Dolly Vita.flac
-rw-r--r-- 1 mythtv mythtv 11432008 2005-06-19 18:36 14 - Spaced.flac

And now you can use the (virtual) MP3 files from the mp3fs mountpoint:

dave@bender:~/mp3fs$ ls -l /mnt/mp3/Smashing\ Pumpkins/Pisces\ Iscariot/
total 53896
-rw-r--r-- 1 mythtv mythtv  2446849 2005-06-19 18:36 01 - Soothe.mp3
-rw-r--r-- 1 mythtv mythtv  3197934 2005-06-19 18:36 02 - Frail And Bedazzled.mp3
-rw-r--r-- 1 mythtv mythtv  3467503 2005-06-19 18:36 03 - Plum.mp3
-rw-r--r-- 1 mythtv mythtv  4003745 2005-06-19 18:36 04 - Whir.mp3
-rw-r--r-- 1 mythtv mythtv  3414845 2005-06-19 18:36 05 - Blew Away.mp3
-rw-r--r-- 1 mythtv mythtv  2413413 2005-06-19 18:36 06 - Pissant.mp3
-rw-r--r-- 1 mythtv mythtv  4348572 2005-06-19 18:36 07 - Hello Kitty Kat.mp3
-rw-r--r-- 1 mythtv mythtv  5132656 2005-06-19 18:36 08 - Obscured.mp3
-rw-r--r-- 1 mythtv mythtv  3099704 2005-06-19 18:36 09 - Landslide.mp3
-rw-r--r-- 1 mythtv mythtv 10542719 2005-06-19 18:36 10 - Starla.mp3
-rw-r--r-- 1 mythtv mythtv  3210041 2005-06-19 18:36 11 - Blue.mp3
-rw-r--r-- 1 mythtv mythtv  3449127 2005-06-19 18:36 12 - Girl Named Sandoz.mp3
-rw-r--r-- 1 mythtv mythtv  4098213 2005-06-19 18:36 13 - La Dolly Vita.mp3
-rw-r--r-- 1 mythtv mythtv  2337344 2005-06-19 18:36 14 - Spaced.mp3

dave@bender:~/mp3fs$ id3info /mnt/mp3/Smashing\ Pumpkins/Pisces\ Iscariot/01\ -\ Soothe.mp3

*** Tag information for /mnt/mp3/Smashing Pumpkins/Pisces Iscariot/01 - Soothe.mp3
=== TSSE (Software/Hardware and settings used for encoding): LAME v3.96.1
=== TIT2 (Title/songname/content description): Soothe
=== TPE1 (Lead performer(s)/Soloist(s)): Smashing Pumpkins
=== TALB (Album/Movie/Show title): Pisces Iscariot
=== TRCK (Track number/Position in set): 1
*** mp3 info
MPEG1/layer III
Bitrate: 128KBps
Frequency: 44KHz

dave@bender:~/mp3fs$ time cp /mnt/mp3/Smashing\ Pumpkins/Pisces\ Iscariot/01\ -\ Soothe.mp3 /tmp/

real    0m12.917s
user    0m0.004s
sys     0m0.020s

dave@bender:~/mp3fs$ xmms /mnt/mp3/Smashing\ Pumpkins/Pisces\ Iscariot/* &

Download

Releases are made through the sourceforge files page:

https://sourceforge.net/projects/mp3fs/files/

There are now two different branches of mp3fs development:

  • Active development will occur on the main branch, which has version numbers 0.20 or higher. FLAC version 1.1.4 or higher is required.
  • Only bug fixes will happen on the legacy branch, which has version numbers less than 0.20. Any version of FLAC is supported.

The reason for two branches is to maintain compatibility with old versions of FLAC. This is necessary because a major Linux vendor provides only an ancient version of FLAC in several of their releases.

The bottom line is that if you have a suitable version of FLAC, you should use the very latest version of mp3fs. If not, you can use a version from the legacy branch.

Development

MP3FS uses Git for revision control. You can obtain the full repository with:

git clone git://mp3fs.git.sourceforge.net/gitroot/mp3fs/mp3fs

MP3FS is written in C and uses the following libraries:

License

This program can be distributed under the terms of the GNU GPL version 3 or later. You can find it online or in the mp3fs distribution in the COPYING file.