to rebump the damn thing, in linux is actually simple to repair your id3 tainted flacs! first strange thing in the linux world is that id3 tagged flacs will not bite you in any way until you try to use oggenc! you can play the flacs just fine, you can tag it in programs like kid3-qt and vorbis tags will coexist with id3 tags! ugh! ... commands like flac -t music.flac
or flac -t music.flac
will not give you any hint that is something wrong with you flacs! then you will try something like oggenc --utf8 -q 4 music.flac
and bang!
ERROR: Input file "music.flac" is not a supported format
WHAT!?
and finally, you do, at years distance of the original ripping movements, that final check you forgot to do:
file *.flac
music.flac: Audio file with ID3 version 2.3.0, unsynchronized frames, contains: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 13427568 samples
WTF!? from where is this alien bug landed on my hdd!? and what to do now? i want my flacs back! well, in linux world is simple:
for input in $(find . -maxdepth 1 -type f -name '*.flac'); \
do temp=$(basename $input .flac); \
metaflac --export-tags-to=$temp.metaflac $input; \
id3v2 -D $input; \
metaflac --import-tags-from=$temp.metaflac $input; \
rm -v $temp.metaflac; \
done
and voila, all you flacs is back and sane:
file *.flac
music.flac: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 13427568 samples
caveats emperors:
rm -v $temp.metaflac; \
is dangerous, use only if my bash programming skills look strong enough, or else is safe to edit my code snipets and delete this line
metaflac --export-tags-to
export only metadata tags, embeded pictures and imported cuesheets will be lost