DIR2OGG(1)
π DIR2OGG π
okay bestie, gather round, because this is dir2ogg, a lil manual page from the General Commands Manual collection and honestly? she's a whole vibe. β¨
πΈ NAME πΈ
dir2ogg β Convert MP3, WAV, and M4A files to OGG format π
π¦ SYNOPSIS π¦
dir2ogg [ options ] path [path] ...
β¨ DESCRIPTION β¨
So like, dir2ogg converts MP3, M4A, WMA and WAV files into the open-source OGG format. It's literally a python script that just binds together mpg123, faad, and oggenc so you don't have to suffer through doing it yourself β it makes converting your music files so much easier, no cap. π
OGGs are about 15 to 20 percent smaller than MP3 files, with the same relative audio quality. iconic behavior honestly.
You can call dir2ogg with the -d flag at the command line to convert any number of directories at once, OR you can just hand it MP3, M4A, WMA, and/or WAV filenames as arguments and it'll convert only those files. π«Ά
heads up bestie: if you're converting WAV, M4A or WMA files with-dyou must add the-w,-mor-Wcommand line flags respectively. Those flags are not neccesary unless you're using-d.
Also, 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. π The author really can't notice a difference in quality with 'naked' ears themselves, so do with that what you will.
π General Options π
-hor--helpβ print quick usage details to the screen. your little cheat sheet, bestie π-dor--directoryβ convert all MP3 files in directory. WAV and M4A files will be converted if used with the-wand-mcommand line flags. This option is for compatibility purposes only and does not need to be specified anymore. (she's retired but still showing up to the party π)-ror--recursiveβ like-dbut descends recursively into directories. she goes deep π-por--preserve-wavβ preserve all WAV files. By default they are deleted. π-Por--no-pipeβ Do not use pipes to send data from the decoder to the encoder, use temporary wav files instead. old school route, respect π«‘--delete-inputβ Delete the input file after conversion. bye bye original π-vor--verboseβ increasedir2ogg's verbosity. she will NOT stop talking π£οΈ-Qor--quietβ 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. (not her fault, blame the decoders π)
π₯ Conversion options π₯
--convert-allβ Convert all supported audio files found in the directories given on the command-line to Ogg Vorbis. the "do everything" button, periodt β¨-for--convert-apeβ Convert all APE (Monkey's Audio) files found in the directories given on the command-line to Ogg Vorbis, using eitherogg123orflacormplayer. π-for--convert-flacβ Convert all FLAC (Free Lossless Audio Codec) files found in the directories given on the command-line to Ogg Vorbis, usingogg123orflacormplayer. π-mor--convert-m4aβ convert all M4A (MPEG-4 Audio) files found in the directories given on the command-line to Ogg Vorbis, usingfaadormplayer. For decoding ALAC (Apple Lossless) files,'alac-decoder'may be used. π-mor--convert-mpcβ convert all MPC (MusePack) files found in the directories given on the command-line to Ogg Vorbis, usingmpcdecormplayer. π§-Wor--convert-wmaβ Convert all WMA (Windows Media Audio) files found in the directories given on the command-line to Ogg Vorbis, usingmplayer. πͺ-wor--convert-wavβ Convert all WAV files found in the directories given on the command-line to Ogg Vorbis. π-Vor--convert-wvβ Convert all WV (WavPack) files found in the directories given on the command-line to Ogg Vorbis. π¦-nor--no-mp3β ingore all MP3 files found in directories given on the command-line. (that's "ignore" but we're keeping the typo, it's part of her charm π)--(ape|flac|m4a|mp3|mpc|wma|wv)-decoder=COMMANDβ Set the decoder you want to use for one filetype, e.g.:--mp3-decoder=lame. Rundir2ogg --helpto see the available decoders. π οΈ-qNor--quality=Nβ OGG quality. N is a number between-1and10. Default is3. Decimals are OK (ie:3.7). fine-tune her like a lil playlist ποΈ-tor--smart-mp3β Try to use the same quality as the input file. MP3 input only! π§
π EXIT CODES π
dir2oggexits with0on success β1for most errors β- and
2if conversion of one or more files failed (most likely due to an internal error) π΅
π SEE ALSO π
mpg123(1), mplayer(1), oggenc(1)
the whole squad fr fr π«Ά
π BUGS π
Enter you bug reports in Launchpad at https://bugs.launchpad.net/dir2ogg
(yes bestie, go tell them, they want to know π)
π AUTHORS π
0.10and newer: Julian Andres Klode <jak@jak-linux.org>0.9.3and older: Darren Kirby <d@badcomputer.org>
π§ CONTRIBUTORS π§
- original wma support: Cameron Stone <camerons@cse.unsw.edu.au>
smart-mp3: Marek Palatinus <marek@palatinus.cz>
and that's the whole page bestie!! π this was dir2ogg version 0.12, dated 2009-08-04 β a true vintage icon serving us Unix realness since way back. slay, stay converted, drink water, and always read your man pages. mwah π
β¨πΈ
π¦ where this page comes from
- debian bookworm: dir2ogg 0.13-1 Β· GPL-2.0-or-later
- debian trixie: dir2ogg 0.13-1 Β· GPL-2.0-or-later
- ubuntu jammy: dir2ogg 0.13-1 Β· GPL-2.0-or-later
- ubuntu noble: dir2ogg 0.13-1 Β· GPL-2.0-or-later
- ubuntu resolute: dir2ogg 0.13-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: dir2ogg 0.13-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms