Music Library Cleanup and Merging
Jump to navigation
Jump to search
Goals
- Proper tags on all tracks
The definition of "proper" has to be established
- Normalize Audio using something like ReplayGain
My preference would be to have some way to playback tracks where levels are more or less the same. Ideally this would be by way of a reversible or non-destructive modification possibly through tags. ReplayGain esp. via MP3Gain implementation is once such possibility.
- Maintain artificial collections
When merging into my library a collection such as "100 top hits of 200" or "Rolling Stone's 500 Best R&R Songs" preserve the collection while also staying true to the over all organizational scheme. This might be done via user defined tags or playlists
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 Artist ! -type d -regex "[^.]+"
- Find files that are DRM protected and remove them or the protection
#!/bin/bash
if /tmp/mplayer/mplayer.exe -ao pcm:file=abc.wav "$1" 2>&1 | egrep -q overflow;
then
echo $1;
fi
rm abc.wav
You can replace abc.wav with /dev/null and eliminate the need for the "rm abc.wav" on most systems. I ran this initially on a winders box.