getting tags from itunes m4a files?

The place for "I can't figure out how to..." questions.

getting tags from itunes m4a files?

Postby jxn » Thu Feb 23, 2006 11:26 am

I've looked and looked for examples and documentation and in forums, but I can't seem to figure out how to grab itunes m4a file tags. I saw a post from a while back in the main forum about the itunes tagging format changing, is this still a hurdle for getid3 to support reading them? Reading ogg vorbis/mp3 tags is working just dandy, but not m4a. I'm using the latest stable version... here's a relevant sample:

Code: Select all
$getID3 = new getID3;


Code: Select all
$trackInfo = $getID3->analyze($dir.$file);
getid3_lib::CopyTagsToComments($trackInfo);
$title = (isset($trackInfo['comments_html']['title'][0]) ? $trackInfo['comments_html']['title'][0] : "");
$artist = (isset($trackInfo['comments_html']['artist'][0]) ? $trackInfo['comments_html']['artist'][0] : "");
$bitrate = explode(".",($trackInfo['audio']['bitrate']/1000));
$bitrate = $bitrate[0]."k";
$playtime = $trackInfo['playtime_string'];
$publisher = (isset($trackInfo['comments_html']['publisher'][0]) ? $trackInfo['comments_html']['publisher'][0] : "");
$genre = (isset($trackInfo['comments_html']['genre'][0]) ? $trackInfo['comments_html']['genre'][0] : "");
$track = (isset($trackInfo['comments_html']['track'][0]) ? $trackInfo['comments_html']['track'][0] : "");
$album = (isset($trackInfo['comments_html']['album'][0]) ? $trackInfo['comments_html']['album'][0] : "");


thanks!
jxn
User
 
Posts: 7
Joined: Thu Feb 23, 2006 11:14 am

Re: getting tags from itunes m4a files?

Postby James Heinrich » Sat Feb 25, 2006 3:56 pm

jxn wrote:is this still a hurdle for getid3 to support reading them?
No new code has been added for parsing such tags, so it quite likely is still a problem.
James Heinrich
getID3() v1 developer
 
Posts: 702
Joined: Fri May 04, 2001 11:00 am
Location: Kingston, ON, Canada

Postby vollmerk » Tue Nov 28, 2006 10:50 am

I'm using a patched 1.7.7 (James' patch to fix the genre issue) and I'm encountering an issue with the track # on m4a files specifically

Code: Select all
A faad -i brings:

*********** Ahead Software MPEG-4 AAC Decoder V2.0 ******************

Build: Nov  9 2005
Copyright 2002-2004: Ahead Software AG
http://www.audiocoding.com
Floating point version

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License.

**************************************************************************

bin/01 Kassengift.m4a file info:

LC AAC  235.824 secs, 2 ch, 44100 Hz

title: Kassengift
artist: Rosenstolz
album: Kassengift
track: 1
totaltracks: 13
date: 2000
compilation:
tempo: 00000 BPM
tool: iTunes v4.9, QuickTime 7.0.1
iTunNORM:  000010FD 000014C0 00008227 0000A11D 00012135 0003155E
00007F17 00007F17 00004B61 00004B61
iTunes_CDDB_IDs: 13+66E307CDBB192D64CC388D453BE2CE05+857942
genre: Pop


A full output of Getid3() gives me the following

m4a.dump

Am I blind or is the track not listed?

-Karl
vollmerk
User
 
Posts: 18
Joined: Wed Jun 14, 2006 4:42 pm

Postby vollmerk » Thu Dec 21, 2006 2:38 pm

Is this not going to be fixed in the 1.7.x tree? (I'm ok with that I'm hoping to move to 2.x soon!)
vollmerk
User
 
Posts: 18
Joined: Wed Jun 14, 2006 4:42 pm

Postby Allan Hansen » Thu Dec 21, 2006 3:23 pm

Sorry for not responding until now. I require a sample file in order to fix this problem.

ah at artemis dot dk
Allan Hansen
getID3() v2 developer
 
Posts: 447
Joined: Sun May 04, 2003 9:22 am
Location: Holmegaard, Denmark

Postby andy » Wed Jan 17, 2007 4:01 pm

Did you ever get your sample file? You can convert any mp3 file to m4a (aac) within iTunes and see this problem occur. Then use getID3() and I do not see Artist, Album, Track, Genre, other information.

Please fix this if possible. Judging by the number of views this thread has you can tell it is important to many people.

Thanks for your wonderful product!
andy
User
 
Posts: 1
Joined: Wed Jan 17, 2007 4:00 pm

Postby Allan Hansen » Wed Jan 17, 2007 9:16 pm

andy wrote:Did you ever get your sample file? You can convert any mp3 file to m4a (aac) within iTunes and see this problem occur. Then use getID3() and I do not see Artist, Album, Track, Genre, other information.

Please fix this if possible. Judging by the number of views this thread has you can tell it is important to many people.

Thanks for your wonderful product!


Please provide a sample file. I do not wish to install/uninstall iTunes again.
Allan Hansen
getID3() v2 developer
 
Posts: 447
Joined: Sun May 04, 2003 9:22 am
Location: Holmegaard, Denmark

Re: getting tags from itunes m4a files?

Postby thecheese » Thu May 28, 2009 1:49 pm

Are there any plans to fix this issue? the latest 2.0 beta and the latest 1.7 versions both still have trouble reading these tags. Is a sample file still needed? I can provide plenty
thecheese
User
 
Posts: 2
Joined: Thu May 28, 2009 1:26 pm

Re: getting tags from itunes m4a files?

Postby James Heinrich » Fri May 29, 2009 7:03 am

Some sample files would be welcome. PM me a link to them.
James Heinrich
getID3() v1 developer
 
Posts: 702
Joined: Fri May 04, 2001 11:00 am
Location: Kingston, ON, Canada

Re: getting tags from itunes m4a files?

Postby Pernod » Fri May 29, 2009 10:29 am

Does the attached module (based on 1.7.9) fix your issues?
Attachments
module.audio-video.quicktime.php
(80.13 KiB) Downloaded 146 times
Pernod
User
 
Posts: 40
Joined: Sat Mar 21, 2009 12:30 pm
Location: London, UK

Re: getting tags from itunes m4a files?

Postby thecheese » Fri May 29, 2009 11:50 am

Pernod wrote:Does the attached module (based on 1.7.9) fix your issues?


This worked like a charm. My main concern was getting it to read the track number (it was only returning a couple basic tags before) and this successfully fixed that. Thanks!
thecheese
User
 
Posts: 2
Joined: Thu May 28, 2009 1:26 pm

Re: getting tags from itunes m4a files?

Postby James Heinrich » Fri May 29, 2009 4:38 pm

Could someone who has a sample file affected by this issue please send me a sample file, please?
James Heinrich
getID3() v1 developer
 
Posts: 702
Joined: Fri May 04, 2001 11:00 am
Location: Kingston, ON, Canada

Re: getting tags from itunes m4a files?

Postby coffear » Fri Mar 19, 2010 1:56 pm

Hi James

Just to let you know the patch that was submitted a few posts ago in this thread resolved the genre issue for me. If you still need a sample file however feeel free to email me on the address I registered here on and can quite happily provide 1 for you.
coffear
User
 
Posts: 1
Joined: Fri Mar 19, 2010 1:51 pm


Return to Support 1.7.x

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests