I recently wanted to add cover art to my collection of FLAC-encoded audio files. I wrote the following simple script to help me automate the process. Running this script in a given directory (I group my music in directories per artist, followed by a subdirectory for each album) with the name of the album art image file name as argument then automatically embeds the image in the FLAC/Vorbis tag.
#!/bin/bash # # This script embeds a given image (usually .jpg) as album art in the # FLAC files in the present directory (and its subdirectories). # # Time-stamp: <2011-07-31 20:43:23 (lennart)> coverart=$1 find . -name "*.flac" -print0 |xargs -0 metaflac --import-picture-from="$coverart" |