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 -d you must add the -w, -m or -W command 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 πŸŽ€

  • -h or --help β€” print quick usage details to the screen. your little cheat sheet, bestie πŸ“
  • -d or --directory β€” convert all MP3 files in directory. WAV and M4A files will be converted if used with the -w and -m command 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 πŸ’€)
  • -r or --recursive β€” like -d but descends recursively into directories. she goes deep πŸŒ€
  • -p or --preserve-wav β€” preserve all WAV files. By default they are deleted. πŸ™ˆ
  • -P or --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 πŸ‘‹
  • -v or --verbose β€” increase dir2ogg's verbosity. she will NOT stop talking πŸ—£οΈ
  • -Q or --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 ✨
  • -f or --convert-ape β€” 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. πŸ’
  • -f or --convert-flac β€” 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. πŸ’œ
  • -m or --convert-m4a β€” 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. 🍎
  • -m or --convert-mpc β€” convert all MPC (MusePack) files found in the directories given on the command-line to Ogg Vorbis, using mpcdec or mplayer. 🎧
  • -W or --convert-wma β€” Convert all WMA (Windows Media Audio) files found in the directories given on the command-line to Ogg Vorbis, using mplayer. πŸͺŸ
  • -w or --convert-wav β€” Convert all WAV files found in the directories given on the command-line to Ogg Vorbis. 🌊
  • -V or --convert-wv β€” Convert all WV (WavPack) files found in the directories given on the command-line to Ogg Vorbis. πŸ“¦
  • -n or --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. Run dir2ogg --help to see the available decoders. πŸ› οΈ
  • -qN or --quality=N β€” OGG quality. N is a number between -1 and 10. Default is 3. Decimals are OK (ie: 3.7). fine-tune her like a lil playlist 🎚️
  • -t or --smart-mp3 β€” Try to use the same quality as the input file. MP3 input only! 🧠

πŸ’€ EXIT CODES πŸ’€

  • dir2ogg 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) 😡

🌈 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.10 and newer: Julian Andres Klode <jak@jak-linux.org>
  • 0.9.3 and 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 πŸ’…βœ¨πŸŒΈ