The oggconvert command helps - but you normally have to install it.
I use ffmpeg2theora with the following script:
for file in *.mp3
This will convert all the mp3 files in a directory to ogg format, then erase the originals. It will actually work with any files that ffmpeg recognizes - like flv and mpeg.