UP  |  HOME

Music Archival

Table of Contents

Ripping (abcde)

Currently using abcde for ripping CDs. Typical call is:

abcde -o flac -d /dev/sr0

For mixed data/audio CD abcde will choke on the data track. Workaround has been to specify a tracklist manually.

Rip tracks 2-15 and 19 in flac
abcde -o flac -d /dev/sr0 2-15 19

Result is a folder of files that need to be tagged, named, and relocated.

Extracting audio from video formats

Extracting DVD title/chapter audio

By title

for i in $(lsdvd  Misfits_Project_1950.iso | grep -v "Audio streams: 00" | \
      grep "^Title"|cut -d ' ' -f 2|sed -e 's/,/ /g'); do
      vlc -I dummy --no-sout-video --sout-audio --no-sout-rtp-sap \
            --no-sout-standard-sap --ttl=1 --sout-keep \
            --sout "#transcode{acodec=s16l,channels=2}:std{access=file,mux=wav,dst=$i.wav}" \
            dvd:///mnt/video/iso/Misfits\:\ Project\ 1950/Misfits_Project_1950.iso\#$i vlc://quit;
done

copying instead of re-encoding

vlc --no-sout-video --sout "#std{access=file,mux=raw,dst=09.ac3}" \
      dvd:///mnt/video/iso/Misfits\:\ Project\ 1950/Misfits_Project_1950.iso\#9: vlc://quit
for i in $(lsdvd  Misfits_Project_1950.iso | grep -v "Audio streams: 00" | \
      grep "^Title"|cut -d ' ' -f 2|sed -e 's/,/ /g'); do
      vlc --no-sout-video --sout "#std{access=file,mux=raw,dst=$i.ac3}" \
            dvd:///mnt/video/iso/Misfits\:\ Project\ 1950/Misfits_Project_1950.iso\#$i: vlc://quit;
done

By chapter TODO

Extracting mov/mpg/flv files

ffmpeg -i test.mov

will list track codecs

ffmpeg -i Flesh\ Into\ Gear.mov -vn -acodec copy Flesh\ Into\ Gear.mp3

if you give it an incompatible extension ffmpeg will fail

still need a good way to auto-name the file extension

TODO

Tagging (picard)

MusicBrainz Picard is excellent for tagging. I usually open the folder with it. Cluster each album. Then usually scan or lookup does a good job of finding the right thing.

If it's being finicky about finding the right album you can browse MusicBrainz directly then paste the URL or release id in Picard's search box. Then manually drag the tracks to the correct release.

Hit Save to update the metadata.

Naming Files (exfalso)

Ex Falso does quick renaming based on tags.

For single artist albums my naming is: Albums/Artist/Album/<tracknumber> - Title.flac

For compilation, and various artist albums my naming is: Compilations/Album/<tracknumber> - Title.flac

For soundtracks my naming is: Soundtracks - <type>/Album/<tracknumber> - Title.flac where <type> is Movies, Anime, or Games.

Excluding Files

MPD supports a .mpdignore file with paths and wildcards so some files aren't included in the library. I chose to maintain one .mpdignore in the root of my music directory. I usually specify files individually. This way I can ignore things like interviews, terrible songs, and non-music tracks, but reference it all from a single file.

Later I may use this file list to maintain different file permissions so these aren't included in library copies/re-encodes for other devices.