.TH DIR2OGG 1 "2009-08-04" "dir2ogg 0.12"
dir2ogg \- Convert MP3, WAV, and M4A files to OGG format
\fBdir2ogg\fP [ options ] \fIpath\fP [\fIpath\fP] ...
\fIdir2ogg\fP converts MP3, M4A, WMA and WAV files to the open\-source OGG format. \fIdir2ogg\fP is a python script that simply binds together mpg123, faad, and oggenc making it easier for the user to convert his/her music files. OGGs are about 15 to 20 percent smaller than MP3 files, with the same relative audio quality. \fIdir2ogg\fP can be called with the \fI\-d\fP flag at the command line to convert any number of directories at once, or given MP3, M4A, WMA,
and/or WAV filenames as arguments, \fIdir2ogg\fP will convert only those files. If converting WAV, M4A or WMA files with \fI\-d\fP you must add
the \fI\-w\fP, \fI\-m\fP or \fI\-W\fP command line flags respectively. These flags are not neccesary unless using \fI\-d\fP.
Note that converting M4A files requires you to have faad installed, and converting WMA files requires mplayer.
Keep in mind that converting from MP3 or M4A to OGG is a conversion between two lossy formats. This is fine if you just want to free up some disk space, but if you're a hard\-core audiophile you may be disappointed. I really can't notice a difference in quality with 'naked' ears myself.
.SS General Options
\fB\-h or \-\-help\fP
print quick usage details to the screen.
\fB\-d or \-\-directory\fP
convert all MP3 files in \fIdirectory\fP. WAV and M4A files will be converted
if used with the \fI\-w\fP and \fI\-m\fP command line flags. This option is for
compatibility purposes only and does not need to be specified anymore.
\fB\-r or \-\-recursive\fP
like \fI\-d\fP but descends recursively into directories.
\fB\-p or \-\-preserve-wav\fP
preserve all WAV files. By default they are deleted.
\fB\-P or \-\-no\-pipe\fP
Do not use pipes to send data from the decoder to the encoder, use temporary
wav files instead.
Delete the input file after conversion
\fB\-v or \-\-verbose\fP
increase \fIdir2ogg\fP's verbosity.
\fB\-Q or \-\-quiet\fP
Do not display progress messages, except the name of the file which is
currently converted. Some decoders provide no way to disable messages and thus
may still display some.
.SS Conversion options
Convert all supported audio files found in the directories given on the
command-line to Ogg Vorbis.
\fB\-f or \-\-convert-ape\fP
Convert all APE (Monkey's Audio) files found in the directories given on
the command-line to Ogg Vorbis, using either ogg123 or flac or mplayer.
\fB\-f or \-\-convert-flac\fP
Convert all FLAC (Free Lossless Audio Codec) files found in the directories
given on the command-line to Ogg Vorbis, using ogg123 or flac or mplayer.
\fB\-m or \-\-convert-m4a\fP
convert all M4A (MPEG-4 Audio) files found in the directories given on the
command-line to Ogg Vorbis, using faad or mplayer. For decoding ALAC
(Apple Lossless) files, 'alac-decoder' may be used.
\fB\-m or \-\-convert-mpc\fP
convert all MPC (MusePack) files found in the directories given on the
command-line to Ogg Vorbis, using mpcdec or mplayer.
\fB\-W or \-\-convert-wma\fP
Convert all WMA (Windows Media Audio) files found in the directories given
on the command-line to Ogg Vorbis, using mplayer.
\fB\-w or \-\-convert-wav\fP
Convert all WAV files found in the directories given on the command-line
to Ogg Vorbis.
\fB\-V or \-\-convert-wv\fP
Convert all WV (WavPack) files found in the directories given on the
command-line to Ogg Vorbis.
\fB\-n or \-\-no-mp3\fP
ingore all MP3 files found in directories given on the command-line.
Set the decoder you want to use for one filetype, e.g.: \-\-mp3-decoder=lame.
Run dir2ogg \-\-help to see the available decoders.
\fB\-qN or \-\-quality=N\fP
OGG quality. N is a number between \-1 and 10. Default is 3. Decimals are OK (ie: 3.7)
\fB\-t or \-\-smart\-mp3
Try to use the same quality as the input file. MP3 input only!
.SH "EXIT CODES"
\fIdir2ogg\fP exits with 0 on success, 1 for most errors, and 2 if conversion
of one or more files failed (most likely due to an internal error).
.SH "SEE ALSO"
\fImpg123\fP(1), \fImplayer\fP(1), \fIoggenc\fP(1)
Enter you bug reports in Launchpad at https://bugs.launchpad.net/dir2ogg
\fB0.10 and newer:\fP Julian Andres Klode <firstname.lastname@example.org>
\fB0.9.3 and older:\fP Darren Kirby <email@example.com>
\fBoriginal wma support:\fP Cameron Stone <firstname.lastname@example.org>
\fBsmart-mp3:\fP Marek Palatinus <email@example.com>