Penguin
Note: You are viewing an old revision of this page. View the current version.

Copy ID3v2 tags to ID3v1 tags on the Linux commandline

This was hard to find on the internet, so lets lend us some googlejuice. Taken from http://www.webninja.com/2006/04/ and quietened down a bit.

apt-get install libmp3-info-perl first.

#!/usr/bin/perl
# addv1.pl to copy the id3v2 tag to the id3v1 data
use MP3::Info qw(:all);
use Data::Dumper;
use_mp3_utf8();

$v2tags = get_mp3tag($ARGV[0],2);
set_mp3tag($ARGV[0],$v2tags);

Usage: find /dump/mp3/albums/ -type f -name '*.mp3' -exec /usr/local/bin/addv1.pl "{}" \;

CategoryNotes