dir2ogg - Convert MP3, WAV, and M4A files to OGG format


dir2ogg [ options ] ( filename [filename2] ... || directory [directory2] ... || [cdrom-device] ... )


dir2ogg converts MP3, M4A, WMA and WAV files to the open-source OGG format. dir2ogg 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. dir2ogg can be called with the -d flag at the command line to convert any number of directories at once, or given MP3, M4A, WMA, and/or WAV filenames as arguments, dir2ogg will convert only those files. If converting WAV, M4A or WMA files with -d you must add the -w, -m or -W command line flags respectively. These flags are not neccesary unless using -d. 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.

General Options

Conversion options


mpg123(1), mplayer(1), oggenc(1)


Enter you bug reports in Launchpad at




In contrast to the information given at the end of the webpage, this content is licensed under the GPL 2 (or at your option) any later version.