The simple and naive command, which I think, be fitted to almost all situation, is
avconv -i input.ogg output.mp3
, because of its man page as follows:
ffmpeg will be discarded soon.
send an email with an attachment by the command line mail (0) 2013.09.24 convert ogg to mp3 by avconv on Debian Linux (0) 2013.08.20 optimal options for rdesktop for connection to window server (0) 2013.08.08 disk full at /boot (Ubuntu) (0) 2013.06.10