Conversor de APE/FLAC a MP3 (script)

Script para convertir de forma cómoda y automática CDs completos en formatos LOSSLESS (sin perdida) a MP3 para poder reproducirlos en reproductores tipo IPOD. Dejo este script con fines históricos ya que ahora hay herramientas mucho mejores y más potentes.

La ayuda es la siguiente y puede verse ejecutando el script sin parámetros:

Usage:
./te2mp3_v0.6.1.sh -c CUE_file -f sound_file [-y YEAR] [-g genre] [-o output_directory] [-u] [-r] [-l]
./te2mp3_v0.6.1.sh [-l] [-o output_directory] -b batch_file
./te2mp3_v0.6.1.sh -c Marduk_-_Nightwing.cue -f Marduk_-_Nightwing.flac
./te2mp3_v0.6.1.sh -c Marduk_-_Nightwing.cue -f Marduk_-_Nightwing.flac -y 1998
./te2mp3_v0.6.1.sh -c Marduk_-_Nightwing.cue -f Marduk_-_Nightwing.flac -y 1998 -g 138
./te2mp3_v0.6.1.sh -c Marduk_-_Nightwing.cue -f Marduk_-_Nightwing.flac -y 1998 -o /home/the_evangelist/music -g 138 -u
./te2mp3_v0.6.1.sh -b batch_file
NOTE: -u = change espaces for underscores (Optional)
NOTE: -g = Genre, to see list 'id3v2 -L' (Optional)
NOTE: -r = do not remove temporaly CUE and WAV files (default is remove)
NOTE: -l = create a letter (first letter of band name) directory before band name directory:
NOTE: in Batch mode -l and -o MUST be before -b option)
NOTE: -b = Batch mode has this format (for each file to process):
AUDIO file (including path to)
CUE file (including path to)
YEAR
GENRE (to see list 'id3v2 -L')
UNDERSCORE (1 = yes, any other = no)
---------------------------------------------------------------------
bash       -> Necessary to run this script (Mandatory)
cueprint   -> get info from CUE files (Mandatory)
lame       -> for compressing MP3 files (Mandatory)
shntool    -> for xtracting WAV from compress files (Mandatory)
perl       -> For renaming white spaces to underscores (Mandatory)
mac        -> for decompressing  APE files (Optional)
flac       -> for decompressing FLAC files (Optional)
wavpack    -> for decompressing   WV files (Optional)
hope in future versions will not be necessary
---------------------------------------------------------------------

CHANGELOG

  • 2006-04-22 <-> v0.6.1
    • * Fix Album name problem, change '/' for '-' in Album name
    • * Fix, check if Batch file exists if not show error and exit
  • 2006-04-17 <-> v0.6
    • * change all SED, now using builtin Bash Strings Manipulation
    • now script more portable and one external program less
    • + added option -l to create directory before band name (b/bathory)
    • + added more comments and corrected some grammar ;-)
    • + Now illegal option is print in RED
    • + Now -o OUTPUT can be used in Batch mode
  • 2006-04-16 <-> v0.5
    • * Reorganice script in functions
    • + added batch process (-b ) to convert several files rapidly
    • + added by default genre "Metal" (9), instead of nothing
    • * Fix name problem, change '/' for '-' in title name and mp3 file
    • * Fix problem (ALBUM_DIR) when year (-y) is NOT specified
  • 2006-04-15 <-> v0.4.1
    • * Fix problem with CUE, first line must be FILE "...."
    • now hope will be resolved forever ;-)
    • - cueconvert no more needed
  • 2006-04-14 <-> v0.4
    • * Fix problem when renaming white spaces
    • * Some fixes and improvements
    • + added option -r to remove or not temporal CUE and WAV files
    • + added required commands
    • + added more comments
  • 2006-04-13 <-> v0.3
    • + added capitalize all words
    • NOTE: change perl to sed or something else
    • * Fix CUE bug
    • + added --add-id3v2 option to lame
    • force addition of version 2 tag
  • 2006-04-12 <-> v0.2
    • + added support for parameters (getopts)
    • + added support for genre
    • + added destination path (optional) default current
    • * several bugfixes
  • 2006-04-10 <-> v0.1
    • First version

Descargar el script te2mp3_v0.6.1.sh

Retro

Lugares

Redes

Sistemas

Varios