How to convert mp3 to ogg for Firefox HTML5 audio player

On Chrome, Safari, Internet Explorer 10, iPhone, iPad and Android, Amazing Audio Player will use HTML5 to directly play MP3 files.

On Firefox and Opera, MP3 format is not supported by its HTML5 player, OGG format is supported instead.

In step 1 - Audios dialog, after adding an MP3 file, you can also add an optional OGG file. Amazing Audio Player will then use HTML5 to play the OGG file on Firefox and Opera.

The OGG file is optional, if it's not provided, Amazing Audio Player will use Flash to play MP3 files on Firefox and Opera.

This tutorial will guide you how to convert MP3 to OGG format.

Download FFMPEG

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It is free software licensed under the LGPL or GPL. You can download the Windows or OS X builds at http://www.ffmpeg.org/download.html

Use command line tool to convert MP3 to OGG

To convert MP3 to OGG, you can use the following command:

ffmpeg -i music.mp3 -acodec libvorbis -aq 6 music.ogg

The parameter aq specifies the audio quality. Range is 0–10, where 10 is highest quality. 3–6 is a good range to try.