Reputation: 2296
We need to play MP3 files in jPlayer without using Flash as a fallback.
For playing these files with Firefox, I want to convert it to Ogg. Do you guys have any options/alternative for this? I tried to use dir2ogg in CentOS, but it says "no DECODER found for MP3".
Please recommend a tool for converting MP3 to Ogg in CentOS.
Upvotes: 4
Views: 8533
Reputation: 163292
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.
Upvotes: 2
Reputation: 16507
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.
Upvotes: 0
Reputation: 487
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.
Upvotes: 18