Music Import into Beets and Volumio
Importing Music Overview
The basic path is
beets import -> rsync -> QNAP -> Volumio
This does not consistently work for WAV files since the metadata is inconsistent. It is best to convert to FLAC first and then follow the beets import path.
WAV -> FLAC -> beets import -> rsync -> QNAP -> Volumio
Since the WAV may not have the correct metadata for an import it is possible that the MusicBrainz ID will need to be specified as part of the import.
Import Details
WAV to FLAC (Optional)
Change directory to the directory that has the WAV files and them
execute the command /afs/cz/service/software/music-config/aaa2flac.sh.
Once the FLAC files have been created the WAV files can be deleted.
For example:
cd /afs/cz/service/music/Dea\ Matrona/
/afs/cz/service/software/music-config/wav2flac.sh
rm *.wav
Importing Into Beets
If the files are ripped from a CD using abcde they already have
sufficient metadat and can be imported very simply using the
command:
beet import /afs/cz/service/music/<artist>/<album>
If the metadata looks wrong or is not existant beets will ask for confirmation of what to do. If the metadata needs to be repaired then the best tactic is to lookup up the MusicBrainz ID and use that on the import. For example:
cd /afs/cz/service/music/Dea\ Matrona/Hate\ That\ I\ Care
beet import --search-id 0e927262-c6c0-4401-893d-f79f2709a292 .
To make sure that the metadata in the file in the beets library is
correct the metaflac command can be used. For example:
cd /afs/cz/service/music-beets/music/Dea\ Matrona/Hate\ That\ I\ Care
metaflac --list 01\ Hate\ That\ I\ Care.flac
Copying to NFS for Volumio
The music files need to be copied from the beets library to the NFS served directory on the QNAP NAS storage. Volumio's idea of file sharing is primitive and it is simplest for Volumio to access the files using SMB, i.e. Windows networking. There is a script that does the work that is served from remctl.
remctl keddie cz-music update