Music::Tag::M4A - Plugin module for Music::Tag to get information from Apple QuickTime headers.
use Music::Tag my $filename = "/var/lib/music/artist/album/track.m4a"; my $info = Music::Tag->new($filename, { quiet => 1 }, "M4A"); $info->get_info(); print "Artist is ", $info->artist;
Music::Tag::M4A is used to read header information from QuickTime MP4 containers. It uses Audio::M4P::QuickTime and MP4::Info.
It is not currently able to write M4A tags (safely). Audio::M4P::QuickTime can write these tags, but iTunes has trouble reading them after they have been written. Setting the option "write_m4a" will enable some tags to be written, but iTunes will have problems!
No values are required (except filename, which is usually provided on object creation).
Returns the default options for the plugin.
Save object back to MPEG4 container. THIS IS DANGEROUS. Requires write_m4a be set to true.
Load information from MPEG4 container.
A list of values that can be set by this module.
A list of values that can be saved by this module.
Load information using Audio::M4P::QuickTime
Load information using MP4::Info
Close the file and destroy the Audio::M4P::QuickTime object. As this can be large, do this soon after running get_tag if you do not intend to write back to the file ever.
Returns the Audio::M4P::QuickTime object
Set to true to allow some tags to be written to disc. Not recommended.
M4A Tags are error-prone. Writing tags is not reliable.
Please use github for bug tracking: http://github.com/riemann42/Music-Tag-M4A/issues.
Audio::M4P::QuickTime, MP4::Info, Music::Tag
Source is available at github: http://github.com/riemann42/Music-Tag-M4A.
Edward Allen III <ealleniii _at_ cpan _dot_ org>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either:
a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or
b) the "Artistic License" which comes with Perl.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See either the GNU General Public License or the Artistic License for more details.
You should have received a copy of the Artistic License with this Kit, in the file named "Artistic". If not, I'll be glad to provide one.
You should also have received a copy of the GNU General Public License along with this program in the file named "Copying". If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA or visit their web page on the Internet at http://www.gnu.org/copyleft/gpl.html.
Copyright © 2007,2010 Edward Allen III. Some rights reserved.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '©'. Assuming UTF-8
To install Music::Tag::M4A, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::Tag::M4A
CPAN shell
perl -MCPAN -e shell install Music::Tag::M4A
For more information on module installation, please visit the detailed CPAN module installation guide.