There's a variety of tools available to do that. Apt has this to say about dir2ogg:
Code:
apt-cache show dir2ogg
Quote:
Description: audio file converter into ogg-vorbis format
dir2ogg converts MP3, M4A, WMA, FLAC, WAV files and Audio CDs to the
open-source OGG format.
.
It is a Python script that simply binds together the various decoders and
oggenc making it easier for the user to convert his/her music files. It also
supports ID3 tags.
Homepage: http://jak-linux.org/projects/dir2ogg/
|
So it's simply a script. Based on its dependencies it uses mplayer to do the work, which you could use without the script as well -- though I think there are some "convenient" things this script does, otherwise I don't see why it would need to exist at all. Another option would be ffmpeg,
Code:
ffmpeg -i audio.wav audio.mp3
provided that you have it and the required libraries installed (libmp3lame in this case).
Altough there are several ways to achieve the goal (convert wma to ogg, mp3 or something else) I still recommend that you re-rip the audio from the
original source (you have it, don't you?), then encode it to the format you like -- at the same time you can get the track information from a CDDB server, if you're using CDs. You'll get much better sound quality and more importantly can tune the quality/file size to your liking than if you re-encoded a lossy format to another lossy format. If you've bought the trakcs (legally) from the internet, you obviously can't do this, but I assume you wouldn't have bought the music in wma format anyway.
Even if you did use the script you mentioned, check out what it holds inside: you can probably tune the settings if you like (bitrate etc.)