
MUSICA SCRIPT

The musica script performs thirty one conversions from and to different
audio formats and uses a lot of programs to perform these conversions.  Some
of them can cause the problems.

As for the conversions from APE format the only method is to use mac program
from mac package
(see: http://etree.org/shnutils/shntool/support/formats/ape/unix/3.99-u4-b5/).
Slackware users can install it using SlackBuilds.org scripts.  Mint users have
to compile that program manually.

As for the conversion from MP3 to the other formats -- especially FLAC --
the original musica script uses sox to read MP3 files because mpg321 does
not provide the valid information about the size of the audio data to flac.
It is possible to read MP3 files with sox when it is compiled with lame and
mad libraries support.  Slackware version of sox works well.  Mint version
of sox does not work so libsox-fmt-mp3 library installation is required.

In the other Linux distributions the compilation of the modified sox can
help.  In order to perform it edit CMakeLists.txt file, find the line:

   set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} -lm)

and put below it the line:

   set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} mpglib)

Users that do not want to compile the programs can use musica.old script
which uses mpg321 program to read MP3 files and stores the data in
transitional WAV files if necessary.  In such a case the best option is to
move musica.old script to musica one.  It is possible to use musica.old
script without renaming it but cdwrite uses the script named musica for
audio conversions so the renaming of the script is the better option.


Copyright (C) 2011-2015 Cezary M. Kruk <c.kruk@bigfoot.com>

