Rev | Author | # | Line |
---|---|---|---|
2 | CraigBox | 1 | !Copy ID3v2 tags to ID3v1 tags on the Linux commandline |
1 | CraigBox | 2 | |
4 | CraigBox | 3 | This was hard to find on the internet, so lets lend us some googlejuice. Taken from http://www.webninja.com/2006/04/ (thanks to Caleb Shay) and quietened down a bit, so it will run a bit quicker. |
1 | CraigBox | 4 | |
5 | <tt>apt-get install libmp3-info-perl</tt> first. | ||
6 | |||
7 | <verbatim> | ||
8 | #!/usr/bin/perl | ||
9 | # addv1.pl to copy the id3v2 tag to the id3v1 data | ||
10 | use MP3::Info qw(:all); | ||
11 | use_mp3_utf8(); | ||
12 | |||
13 | $v2tags = get_mp3tag($ARGV[0],2); | ||
14 | set_mp3tag($ARGV[0],$v2tags); | ||
15 | </verbatim> | ||
2 | CraigBox | 16 | |
17 | Usage: <tt>find /dump/mp3/albums/ -type f -name '*.mp3' -exec /usr/local/bin/addv1.pl "{}" \;</tt> | ||
1 | CraigBox | 18 | |
19 | CategoryNotes |
lib/blame.php:177: Warning: Invalid argument supplied for foreach()