dir2ogg - audio conversion tool
dir2ogg is a GPL'ed python script which converts mp3, m4a, wma, and wav files into ogg-vorbis format. It was inspired by the perl script mp32ogg
| Status | License | Language | Launchpad | VCS | Latest release |
|---|---|---|---|---|---|
| Maintenance | GPL-2+ | Python | dir2ogg | Bazaar@LP | dir2ogg-0.11.7.tar.gz |
How you can help
- Use the software (using OSX/FreeBSD/other unixes? write a mail)
- report bugs you find
- Try development versions
- Tell others about it
- package it for your distribution / your operating system
Downloads
The current stable release is 0.11.7 (NEWS). It is recommended that you install and use this version.
Browse
You may browse the current releases: 0.10, 0.11
Installation
Users running Debian (including Debian GNU/kFreeBSD), Gentoo or Ubuntu can install the software using their standard package managment solution. Ubuntu users need to enable the universe component.
Users running other distributions may need to manually install it:
# tar xzf dir2ogg-0.11.6.tar.gz # cd dir2ogg-0.11.6 # sh install.sh # or simply run dir2ogg via ./dir2ogg
Dependencies
| Format | Recommended | Alternatives | |
|---|---|---|---|
| MP3 | mpg123/mpg321¹ | lame,mplayer | |
| MP4/M4A/AAC | faad | alac-decoder (for ALAC files), mplayer | |
| FLAC | flac | ogg123 (included in vorbis-tools), mplayer | |
| WMA/ASF | mplayer | ||
| Audio-CD | cdparanoia | icedax, cdda2wav, mplayer | |
¹ Problems with some MP3 files, see LP 272341
Usage
These are some examples. For more information, read the manpage
Convert files
$ dir2ogg foo.mp3 # one file... $ dir2ogg -t foo.mp3 # one file (keep quality, only for mp3)... $ dir2ogg foo.mp3 bar.m4a baz.wma qux.wav # multiple files...
Converting directories
$ dir2ogg -d /path/to/mp3directory # single directory... $ dir2ogg -r /path/to/mp3directory # single directory (and subdirs)... $ dir2ogg -d /path/1/ /path/2 /path/3 # multiple directories... $ dir2ogg -r /path/1/ /path/2 /path/3 # recursive...
Converting Audio CDs
$ dir2ogg -c # convert cd in /dev/cdrom $ dir2ogg -c /dev/cdrom1 # convert cd in /dev/cdrom1
Warning
"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. You might want to do your conversion, then compare with the original before erasing them." - Darren Kirby, first dir2ogg developer
