Skip to content

OggToMp3

OGG for Games: Codec, Mono and Loop Settings

Which OGG settings RPG Maker MZ, Godot, Minecraft, Foundry VTT and Unity expect, when to use mono, and why some loops click after converting from MP3.

· OggToMp3

MP3 to OGG
OGG for Games: Codec, Mono and Loop Settings

Your music plays in every media player, but the game stays silent, or the loop has a tiny gap. With .ogg files there are usually three causes: the wrong codec inside the file, stereo where the game expects mono, or padding that came with an MP3.

The short version: use Ogg Vorbis, not Opus, unless the documentation of your engine names Opus. Use mono for sounds that come from a place in the world. Make loops from a WAV file.

What each engine expects

An .ogg file can hold Vorbis or Opus, and the ending does not tell you which. This is what the documentation said when we checked it in December 2026:

Engine Formats it names Worth knowing
RPG Maker MZ Ogg Vorbis The only audio format its help names. It repeats a track from the LOOPSTART and LOOPLENGTH fields in the file, when they are there
Godot WAV, Ogg Vorbis, MP3 Opus is not listed. WAV for short sounds, Ogg Vorbis for music and speech
Minecraft Java (Fabric docs, wiki) Ogg Vorbis Mono sounds have a position, stereo sounds do not
Foundry VTT FLAC, MP3, WAV, OGG, WebM, Opus For ambient loops it recommends WebM, WAV or OGG
Unity Compresses to Vorbis or MP3 itself Give it your best source file and let it do the compression

For the first four, MP3 to OGG starts with the right codec: Vorbis at quality 5, about 160 kbps. If you are not sure about a file you were given, the checker on What Is an OGG File? tells you whether it is Vorbis or Opus.

Mono or stereo?

  • Footsteps, doors, creatures, voices: mono. The engine places the sound and makes it quieter with distance. In Minecraft, a stereo file keeps the same volume wherever the player stands.
  • Music and background ambience: stereo. These are not tied to a place.

A mono file can also be smaller. To change a file, open Sample Rate and Channels in the converter and set Audio Channels to mono.

Why a loop clicks or pauses

An MP3 encoder and decoder add a short delay, which leaves a little silence at the start and the end of the file. Many MP3 files carry a note that says how much to cut off. Others have lost it, for example after an edit.

We tested what that means for a loop, with a 4-second stereo clip at 44.1 kHz and the converters on this site:

How the OGG was made Length in samples Extra
From the WAV file 176,400 None
From an MP3 with the note 176,400 None
From the same MP3 without the note 178,560 2,160 samples, or 49 ms

49 milliseconds is enough to hear a hiccup every time the music starts over. So "MP3 always breaks loops" is not quite right, but you cannot see from the outside which kind of MP3 you have.

To get a clean loop:

  1. Start from a WAV or FLAC file if you have one. Convert to OGG takes both.
  2. If the MP3 is all you have, convert it and listen to the loop in the game.
  3. If it pauses, open the OGG in an audio editor such as Audacity, cut the silence at both ends and export it as Ogg Vorbis again.
  4. If it clicks but does not pause, zoom in on both ends of the waveform. It has to end at the level where it begins. Move each cut to a point where the line crosses the middle, or add a fade of a few milliseconds at both ends.

Does your file already carry LOOPSTART and LOOPLENGTH? We converted a FLAC, an MP3 and an OGG that had both fields, and all three new OGG files still had them with the same numbers. The numbers count samples, so leave Sample Rate at Keep source sample rate. At another rate they point to the wrong place.

Settings to start with

Sound Codec and quality Channels
Background music Vorbis q5, or q6 for dense music Stereo
Ambience, such as rain or a crowd Vorbis q4 Stereo
Voice lines Vorbis q3 to q4 Mono
Short effects in the world Vorbis q3 to q4, or WAV if the engine prefers it Mono

Then listen to it in the game, not in your media player. If you cannot hear a difference, take the smaller file.

Remember that playing compressed audio costs processing time. Godot's documentation says Ogg Vorbis needs clearly more than WAV and also more than MP3. That hardly matters for one music track. It can matter for dozens of short effects at once, which is why WAV is the usual choice for them.

If the game stays silent

  1. Check the codec. Of the engines above, only Foundry VTT names Opus. If the file holds Opus, convert it to Vorbis.
  2. Check that it is a real Ogg file. An MP3 renamed to .ogg is still an MP3. The converter and the checker both tell you.
  3. Check the path and the name. In Minecraft's sounds.json, the path is written without .ogg at the end. The converters on this site replace spaces and special characters in a file name with hyphens, so Boss Fight.mp3 comes out as Boss-Fight.ogg.

Need OGG files for your game?

Turn MP3 files into Ogg Vorbis, the kind of OGG that game engines name, up to 50 files at a time.

MP3 to OGG