Converting MP3 to OGG in CentOS
You can also try using sox:
sox input.mp3 output.ogg
That should do the trick.
P.S: sox is available through yum on CentOS.
I typically use FFmpeg for this:
ffmpeg -i source.mp3 -codec:a libvorbis -qscale:a 8 output.ogg
Note though that you should really convert from the lossless source, not an MP3. You're losing another level of quality by using a lossy codec on a file that was already compressed with a lossy codec.
Also, given the time of the question, I assume you wanted to use Vorbis for the codec. For anyone finding this answer now, consider Opus. It will fit in your Ogg container, but has much higher quality for a given bitrate.
There is a fine audio/video conversion utility avconv
. So are able to do:
avconv -i file.mp3 file.ogg
Unlike sox
it is able to convert also aac
, and webm
formats.