MP3 Tags: Windows Media Player vs. iTunes

The place for "I can't figure out how to..." questions.
Post Reply
Posts: 1
Joined: Fri Jun 17, 2005 9:31 pm

MP3 Tags: Windows Media Player vs. iTunes

Post by cmonaghan76 » Fri Jun 17, 2005 9:39 pm

Has anyone seen this issue and/or know a solution?

Using 1.7.4:

v1 tags work fine in both Windows Media Player and Apple iTunes.

v2.3 tags work in Apple iTunes and NOT in Windows Media Player

v2.4 tags work in Windows Media Player and NOT in Apple iTunes

is there a happy medium? Is there per chance something I am doing incorrectly?

Code looks like this:

$TaggingFormat = 'UTF-8';
// Initialize getID3 engine
$getID3 = new getID3;
$getID3->encoding = $TaggingFormat;
// Initialize getID3 tag-writing module
$tagwriter = new getid3_writetags;
$tagwriter->filename = $source_file;
$tagwriter->tagformats = array('id3v1', 'id3v2.3');
$tagwriter->remove_other_tags = true;
$tagwriter->overwrite_tags = true;
$tagwriter->tag_language = 'eng';

// set various options (optional)
$tagwriter->overwrite_tags = true;
$tagwriter->tag_encoding = $TaggingFormat;
$tagwriter->remove_other_tags = true;

// populate data array
$TagData['title'][] = stripslashes($row_metadata['title']);
$TagData['artist'][] = stripslashes($row_metadata['name']);
$TagData['album'][] = '';
$TagData['year'][] = substr($row_metadata['record_date'], 0, 4);
$TagData['genre'][] = 'Sermon';
$TagData['comment'][] = stripslashes($row_metadata['reference']);
$TagData['track'][] = '';

$tagwriter->tag_data = $TagData;

// write tags
if ($tagwriter->WriteTags()) {
echo 'Successfully wrote tags<br>';
if (!empty($tagwriter->warnings)) {
echo 'There were some warnings:<br>'.implode('<br><br>', $tagwriter->warnings);
} else {
echo 'Failed to write tags!<br>'.implode('<br><br>', $tagwriter->errors);

James Heinrich
getID3() v1 developer
Posts: 1477
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada

Post by James Heinrich » Thu Jul 14, 2005 4:04 am

You could always try ID3v2.2 tags, maybe that'll work in both?
ID3v1 is always compatible with everything, except it's quite limited :(

Posts: 1
Joined: Thu Aug 09, 2007 8:25 am

it appeared that...

Post by wmo2007 » Thu Aug 09, 2007 8:31 am

when we read the windows media player support, id3v2 must be uncompressed and synchronized (or reverse... lol) to works...

Is somebody knows HOW TO DO THAT???

I need to write tags on mp3 for my job wich must be read by wmp, winamp AND i-tunes...

Please help me!!!!


Guillaume (france)

Post Reply