[Documentation still being developed.]
MythMusic has a number of pre-requisites that must be satisfied before it is operational. Depending on your distribution, some of these prerequisites can be satisfied through the various package managers. If your distribution doesn't offer pre-compiled versions of the software below, then follow the generic instructions for manually compiling and installing the software.
The pre-requisites for MythMusic are:
These instructions are for distributions which don't have pre-compiled versions of the software necessary to run MythTV.
Download MAD from http://www.mars.org/home/rob/proj/mpeg/ Save it to a directory you can find later.
$ tar -xzf mad-0.14.2b.tar.gz
$ cd mad-0.14.2b
$ ./configure
$ make
$ su
# make install
# exit
$
Download FLAC from http://flac.sourceforge.net and install:
$ tar -xzf flac-1.1.0.tar.gz
$ cd flac-1.1.0
$ ./configure
$ make
$ su
# make install
# exit
$
Download libcdaudio from libcdaudio.sourceforge.net and install:
$ tar -xzf libcdaudio-0.99.9.tar.gz
$ cd libcdaudio-0.99.9
$ ./configure
$ make
$ su
# make install
# exit
$
Download cdparanoia from http://www.xiph.org/paranoia/down.html.
$ tar -xzf cdparanoia-III-alpha9.8.src.tgz
$ cd cdparanoia-III-alpha9.8
$ ./configure
$ make
$ su
# make install
# cd /usr/lib
# ln -sf libcdda_interface.so.0.9.8 libcdda_interface.so
# ln -sf libcdda_paranoia.so.0.9.8 libcdda_paranoia.so
# exit
$
Mandrake 9.0 has a number of the pre-requisites available on the installation CD. Some of the software you're going to need will have to be obtained from the "contrib" or "cooker" development repositories. Applications downloaded from "cooker" come from the development branch, so there may be issues with some software.
urpmi is the simplest tool for installation of packages from the command line. The difficult part is the configuration aspect. The following website http://plf.zarb.org/~nanardon/urpmiweb.php will allow you to choose a mirror site and then present the command-line configuration text for that mirror. You will most likely need to add a "Contrib" mirror to your setup. Once you have done that, you can proceed.
# urpmi libmad0 libmad0-devel libflac4 libflac4-devel libcdaudio cdparanoia
# urpmi libcdda0 libcdda0-devel libvorbis0 libvorbis0-devel
Additional visualizations have been added to MythMusic. If you wish to use these, there are some prerequisites you must install prior to compiling.
fftw
may be obtained from
http://www.fftw.org/. It may also be installed in Mandrake 9.1 with
# urpmi libfftw2 libfftw2-devel
OpenGL
should be installed on practically all distributions.
However, you will need the devel module. On Mandrake 9.1, you would need to
install # urpmi libMesaGLU1-devel
.
SDL
may be obtained from
http://www.libsdl.org. On Mandrake 9.1,
you may install it by executing: # urpmi libsdl1.2 libsdl1.2-devel
Once all the pre-requisites have been
installed, you can proceed with getting MythMusic going. Make sure that you
run ./configure
first. If you wish to use the new visualizations,
make sure you install the prerequisites. Run ./configure --help
for help.
$ make
$ su
# make install
# exit
$ cd musicdb
$ mysql -u root < metadata.sql
Edit the /usr/local/share/mythtv/mythmusic-settings.txt
file for
your particular system. Here's some explanation about the Ignore_ID3 and
The NonID3FileNameFormat:
If Ignore_ID3 is set to TRUE, mythmusic will try to determine the Genre, Artist, Album, Track Number, and Title from the filename of the mp3 file. The NonID3FileNameFormat variable should be set to the directory/file format where the mp3 files are stored. For instance, I store mine in the above shown Genre/Artist/Album/Track format. Mythmusic will then use this information to fill in the proper fields when it populates the musicmetadata table rather than searching for an ID3 tag in the mp3 file.
The files can be layed out in any format, such as:
Genre/Artist/Album/Title Artist/Genre/Album/Title Artist/Album/Title (with Genre left as Unknown)
The track number is optional but can be specified with the title by using the TRACK_TITLE keyword instead of TITLE. If TRACK_TITLE is used, then the filename can have a space, hyphen, or underscore separating the track number from the track title. Keywords are case insensitive, so if you specify GENRE it's the same as Genre in the format field.
The Ignore_ID3 option does not disable the code that determines the track length, just the portion that tries to read ID3 info.
MythMusic is fairly simple to use. It is recommended that you insert the CD before selecting "Import CD". You should also ensure that your system doesn't try to automount the CD and begin playing it automatically.
Another item to consider: there are some CD's that contain computer data that runs as a "CD Extra". After the CD information lookup, ensure that the "(Data for CD Extra)" track is not selected for encoding, otherwise MythMusic will hang attempting to encode the non-audio data.