Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ogg::vorbis::header::pureperl(3pm) [debian man page]

PurePerl(3pm)						User Contributed Perl Documentation					     PurePerl(3pm)

NAME
Ogg::Vorbis::Header::PurePerl - An object-oriented interface to Ogg Vorbis information and comment fields, implemented entirely in Perl. Intended to be a drop in replacement for Ogg::Vobis::Header. Unlike Ogg::Vorbis::Header, this module will go ahead and fill in all of the information fields as soon as you construct the object. In other words, the "new" and "load" constructors have identical behavior. SYNOPSIS
use Ogg::Vorbis::Header::PurePerl; my $ogg = Ogg::Vorbis::Header::PurePerl->new("song.ogg"); while (my ($k, $v) = each %{$ogg->info}) { print "$k: $v "; } foreach my $com ($ogg->comment_tags) { print "$com: $_ " foreach $ogg->comment($com); } DESCRIPTION
This module is intended to be a drop in replacement for Ogg::Vorbis::Header, implemented entirely in Perl. It provides an object-oriented interface to Ogg Vorbis information and comment fields. (NOTE: This module currently supports only read operations). CONSTRUCTORS
"new ($filename)" Opens an Ogg Vorbis file, ensuring that it exists and is actually an Ogg Vorbis stream. This method does not actually read any of the information or comment fields, and closes the file immediately. "load ([$filename])" Opens an Ogg Vorbis file, ensuring that it exists and is actually an Ogg Vorbis stream, then loads the information and comment fields. This method can also be used without a filename to load the information and fields of an already constructed instance. INSTANCE METHODS
"info ([$key])" Returns a hashref containing information about the Ogg Vorbis file from the file's information header. Hash fields are: version, channels, rate, bitrate_upper, bitrate_nominal, bitrate_lower, bitrate_window, and length. The bitrate_window value is not currently used by the vorbis codec, and will always be -1. The optional parameter, key, allows you to retrieve a single value from the object's hash. Returns "undef" if the key is not found. "comment_tags ()" Returns an array containing the key values for the comment fields. These values can then be passed to "comment" to retrieve their values. "comment ($key)" Returns an array of comment values associated with the given key. "add_comments ($key, $value, [$key, $value, ...])" Unimplemented. "edit_comment ($key, $value, [$num])" Unimplemented. "delete_comment ($key, [$num])" Unimplemented. "clear_comments ([@keys])" Unimplemented. "write_vorbis ()" Unimplemented. "path ()" Returns the path/filename of the file the object represents. AUTHOR
Andrew Molloy <amolloy@kaizolabs.com> Dan Sully <daniel | at | cpan.org> COPYRIGHT
Copyright (c) 2003, Andrew Molloy. All Rights Reserved. Copyright (c) 2005-2008, Dan Sully. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. A copy of this license is included with this module (LICENSE.GPL). SEE ALSO
Ogg::Vorbis::Header, Ogg::Vorbis::Decoder perl v5.12.4 2011-09-18 PurePerl(3pm)

Check Out this Related Man Page

VORBISCOMMENT(1)						 Ogg Vorbis Tools						  VORBISCOMMENT(1)

NAME
vorbiscomment - List or edit comments in Ogg Vorbis files SYNOPSIS
vorbiscomment [-l] [-R] [-e] file.ogg vorbiscomment -a [ -c commentfile | -t "name=value" ] [-q] [-R] [-e] in.ogg [out.ogg] vorbiscomment -w [ -c commentfile | -t "name=value" ] [-q] [-R] [-e] in.ogg [out.ogg] DESCRIPTION
vorbiscomment Reads, modifies, and appends Ogg Vorbis audio file metadata tags. OPTIONS
-a, --append Append comments. -c file, --commentfile file Take comments from a file. The file is the same format as is output by the the -l option or given to the -t option: one element per line in 'tag=value' format. If the file is /dev/null and -w was passed, the existing comments will be removed. -h, --help Show command help. -l, --list List the comments in the Ogg Vorbis file. -q, --quiet Quiet mode. No messages are displayed. -t 'name=value', --tag 'name=value' Specify a new tag on the command line. Each tag is given as a single string. The part before the '=' is treated as the tag name and the part after as the value. -w, --write Replace comments with the new set given either on the command line with -t or from a file with -c. If neither -c nor -t is given, the new set will be read from the standard input. -R, --raw Read and write comments in UTF-8, rather than converting to the user's character set. -e, --escapes Quote/unquote newlines and backslashes in the comments. This ensures every comment is exactly one line in the output (or input), allowing to filter and round-trip them. Without it, you can only write multi-line comments by using -t and you can't reliably dis- tinguish them from multiple one-line comments. Supported escapes are c-style " ", " ", "\" and "". A backslash followed by anything else is an error. Note: currently, anything after the first "" is thrown away while writing. This is a bug -- the Vorbis format can safely store null characters, but most other tools wouldn't handle them anyway. -V, --version Display the version of vorbiscomment. EXAMPLES
To just see what comment tags are in a file: vorbiscomment -l file.ogg To edit those comments: vorbiscomment -l file.ogg > file.txt [edit the comments in file.txt to your satisfaction] vorbiscomment -w -c file.txt file.ogg newfile.ogg To simply add a comment: vorbiscomment -a -t 'ARTIST=No One You Know' file.ogg newfile.ogg To add a set of comments from the standard input: vorbiscomment -a file.ogg ARTIST=No One You Know ALBUM=The Famous Album <ctrl-d> TAG FORMAT
See http://xiph.org/ogg/vorbis/doc/v-comment.html for documentation on the Ogg Vorbis tag format, including a suggested list of canonical tag names. AUTHORS
Program Authors: Michael Smith <msmith@xiph.org> Ralph Giles <giles@xiph.org> Manpage Author: Christopher L Cheney <ccheney@debian.org> SEE ALSO
oggenc(1), oggdec(1), ogg123(1), ogginfo(1) Xiph.Org Foundation December 30, 2008 VORBISCOMMENT(1)
Man Page