oggit
Version 1.5.0 (13 March 2011), copyright ©2005-2011 Brett Scaife
Introduction
oggit is a Perl script for encoding files in various audio formats to either FLAC or Ogg Vorbis format, with comments based on a template file and on any tags in the input file.
"Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for mid to high quality (8kHz-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and variable bitrates from 16 to 128 kbps/channel. This places Vorbis in the same competitive class as audio representations such as MPEG-4 (AAC), and similar to, but higher performance than MPEG-1/2 audio layer 3, MPEG-4 audio (TwinVQ), WMA and PAC."
In other words Ogg Vorbis is a much better way to keep your music collection on your computer than MP3 - it's better quality and it's Free Software. Oggit provides an easy way to encode a WAV or MP3 file to Ogg Vorbis. It's designed to be used for fairly small numbers of files - it is not designed for batch processing of your collection of thousands!
FLAC stands for Free Lossless Audio Codec, a compressed audio format that is lossless, meaning that audio is compressed in FLAC without any loss in quality. "FLAC stands out as the fastest and most widely supported lossless audio codec, and the only one that at once is non-proprietary, is unencumbered by patents, has an open-source reference implementation, has a well documented format and API, and has several other independent implementations."
License
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 3 of the License, or (at your option) any later version.
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 the GNU General Public License for more details.
A copy of the GNU General Public License is distributed with this software.
Requirements
oggit requires:
- Perl
- Term::ReadLine::GNU
- MP3::Tag
- AudioFile::Info::MP4::Info
- oggenc
- ogginfo
- mplayer
- mpg321
- normalize.
- FLAC
- file, which should be part of most GNU/Linux distributions
Installation
You could simply unpack the archive and copy the files you want to the locations you want them but I've written a shell script that will install the files for you. Once you've downloaded the archive, unpack it:
tar xjf oggit-1.5.0.tar.bz2
Change to the oggit-1.5.0 directory and type:
./install.sh
Detailed instructions are given in the INSTALL file
distributed with the script.
Usage
oggit [template] filename
What it does
Once oggit has been invoked you have the following options:
- Change a comment's value
- Encode the file and save the present values to the template
- Encode the file and keep the old template values
- Turn normalising on/off
- Alter the encoding quality/compression level
- Change the encoding format
- Quit without encoding
Check the README file distributed with the script for
more details on how to use it.
Download
Changelog
1.5.0
13 March 2011
- Added MPEG-4 (AAC) to the input list
- Minor changes in messages
1.4.2
10 May 2009
- Fixed problem with recognising some MP3 files
1.4.1
24 April 2009
- Increased amount of info when encoding
- Added a default bail-out if problems recognising file whilst converting prior to encoding
- Replaces '%' in filenames with 'Percent'
- Normalizing status also set from template
1.4.0
11 March 2008
- Encodes to either Ogg Vorbis or FLAC
- Allows input of Ogg Vorbis and FLAC as well
- Uses 'file' to determine filetype
- Requires MP3::Tag and flac
- Changed the 'encoding' key to 'E'
- Reads tags from input file
- Cleaned up some unused variables from code
1.3.3
24 September 2007
- Actually alters encoding quality rather than just claiming it does.
1.3.2
17 September 2007
- Now allows encoding quality to be altered (value can be saved in templates). This meant altering the key for quitting without encoding to X to allow Q to be used for altering the quality.
1.3.1
1 July 2007
- Changed license to GPL v3
- Will now eliminate exclamation marks from file names; replace $ with Dollars (written after the figure) in filenames. Whitespace cleaning up in filenames is improved
- Put a random number into the failsafe filename to help guard against accidental overwriting.
1.3.0
14 January 2007
- Uses ogginfo to run a crude validity check on encoded file
1.2.3
16 July 2006
- Will now eliminate question marks from filenames
1.2.2
16 July 2006
- Corrected problem with removing dots from filename introduced in previous version
- Added another template
1.2.1
13 July 2006
- Made some minor alterations to the file name rationalistion rules
1.2.0
12 July 2006
- Now use Term::ReadLine::GNU for input of comments. A history file is kept in ~/.oggit
- Fixed failure to show help when --help given as command line argument
1.1.2
09 December 2005
- Fixed problem where quotes in a comment would cause comment to be truncated and filename to be possibly wrong
1.1.1
17 September 2005
- Now replaces slashes in filename with hyphens to prevent creation of unwanted directories
1.1
09 September 2005
- Fixed problems with filename construction which resulted in stray seperators or spaces appearing in some filenames
- Changed location of system-wide templates to
/usr/share/oggit - Updated
install.sh
1.0
02 July 2005
- Initial release

