Music::Tag::OGG - Plugin module for Music::Tag to get information from ogg-vorbis headers.
use Music::Tag my $filename = "/var/lib/music/artist/album/track.ogg"; my $info = Music::Tag->new($filename, { quiet => 1 }, "OGG"); $info->get_info(); print "Artist is ", $info->artist;
Music::Tag::OGG is used to read ogg-vorbis header information. It uses Ogg::Vorbis::Header::PurePerl. I have gone back and forth with using this and Ogg::Vorbis::Header. Finally I have settled on Ogg::Vorbis::Header::PurePerl, because the autoload for Ogg::Vorbis::Header was a pain to work with.
To write Ogg::Vorbis headers I use the program vorbiscomment. It looks for this in the path, or in the option variable "vorbiscomment." This tool is available from http://www.xiph.org/ as part of the vorbis-tools distribution.
Music::Tag::Ogg objects should be created by Music::Tag.
No values are required (except filename, which is usually provided on object creation).
Uses standard tags for these
Uses custom tag "ASIN" for this
Uses MusicBrainz recommended tags for these.
Returns the default options for the plugin.
Save info from object back to ogg vorbis file using vorbiscomment
Get info for object from ogg vorbis header using Ogg::Vorbis::Header::PurePerl
A list of values that can be set by this module.
A list of values that can be saved by this module.
Close the file and destroy the Ogg::Vorbis::Header::PurePerl object.
Returns the Ogg::Vorbis::Header::PurePerl object.
The full path to the vorbiscomment program. Defaults to just "vorbiscomment", which assumes that vorbiscomment is in your path.
No known additional bugs provided by this Module
Please use github for bug tracking: http://github.com/riemann42/Music-Tag-OGG/issues.
Ogg::Vorbis::Header::PurePerl, Music::Tag, http://www.xiph.org/
Source is available at github: http://github.com/riemann42/Music-Tag-OGG.
Edward Allen III <ealleniii _at_ cpan _dot_ org>
Copyright © 2007,2008,2010 Edward Allen III. Some rights reserved.
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.
# vim: tabstop=4
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::OGG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Music::Tag::OGG
CPAN shell
perl -MCPAN -e shell install Music::Tag::OGG
For more information on module installation, please visit the detailed CPAN module installation guide.