MP3 scripts for playing and archiving

























Last change at 27. of May, 2001




I use this set of scripts to handle my mp3 files. First, there's a script "mp.pl" to rename mp3 files to my preferred style (no spaces, no uppercases, ...).

The other script (mp_play.pl) behaves differently, depending on its name. So if you set up some symbolic links to this file, you have different commands available. The recognized names and actions are:

  • mp_play list1 [list2...]
    Read all the lists and play the files in them in normal order.

  • mp_shuffle list1 [list2...]
    Read all the lists and play the related files in random order.

  • mp_copy targ-dir size list1 [list2...]
    Copies all given files (in the list) to targ-dir/dir0, targ-dir/dir1... and let every subdir become only [size] size.

  • mp_mkcd targ-dir list1 [list2...]
    Convert every file in the given lists to CD raw format and put the output into targ-dir

  • mp_check list1 [list2...]
    Just check, if all the given files do exist.

  • mp_randomize list1 [list2...]
    Randomize the order of files in each DIR section in every given file.

  • mp_mkmpcd targ-dir list1 [list2...]
    Copy every mp3 file in the list to targ-dir but prepend an increasing number to the file names, so they are burnt in the given order to a CD.



  • The list files are normal text files with one entry per line. Leading "./" are ignored. Normally these files are searched in the actual working directory. A line like "DIR directory" lets the scripts be searched in that directory.

    Download the script here: mp3.tbz2 (2255 Bytes).