Music Library Cleanup and Merging

From Pikes' Wiki
Jump to navigation Jump to search

Process

  • Find all files with incorrect extensions
    • find Artist ! -type d -regex "[^.]+"
      replace "Artist" with directory to search. It cannot contain or be "." due to the regex used.
  • Find files that are DRM protected and remove them or the protection
#!/bin/bash
if /tmp/mplayer/mplayer.exe -ao dummy -identify "$1" 2>&1 | egrep -i -q -s "encumbered with drm"
then
        echo $1;
fi
  • Find files with special or unicode characters and fix
find . -name "*[$(/bin/echo -e '\201')-$(/bin/echo -e '\377')]*" | tee /tmp/filelist.log
    • \302\264 becomes apostrophe
    • \342\200\231
    • \241\257
    • \242\245
    • \222


  • Convert remaining all non-MP3 files to MP3 with same quality and transfer tags
    • Load all tracks into MP3TAG and sort first by bitrate and then by encoding.
    • Go to the bottom and select all wma with bitrate set (missing bitrate most likely means a damaged file)
    • Open Xrecode
    • Drag from MP3TAG to Xrecode all selected tracks
    • Select mp3 output
    • Select encoding rate
    • (optional) Select tracks in MP3TAG by bitrate and choose encoding rate in Xrecode based on source
  • Use MP3Tag to normalize track numbers to 2 digits.
    This will help in fixing tags using Jaikoz in a later step
  • Open Folder in Jaikoz
    • sort by track number then subfolder
    • open

Tools

  • Replay Gain is a technology for audio level normalization.
  • xrecode$$ is a tool for recoding to different formats that supports moving of tags.