Convert MP4 to OGG — Free Online Tool

Convert MP4 video files to OGG audio format by extracting and re-encoding the audio stream using the Vorbis codec — a fully open, patent-free alternative to AAC or MP3. This is ideal for web audio delivery and projects requiring open-format compliance without proprietary codec dependencies.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

MP4 containers typically carry AAC or MP3 audio alongside a video stream. During this conversion, FFmpeg discards the video stream entirely and re-encodes the audio — whether it was originally AAC, MP3, or Opus inside the MP4 — into Vorbis, the default and most widely supported audio codec for OGG containers. Because Vorbis and AAC use different perceptual audio models, this is a full transcode rather than a simple remux: the audio is decoded from its original format and re-encoded into Vorbis at the target quality level. The resulting OGG file contains only the audio, with no video data, making it significantly smaller than the original MP4.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool, which handles the demuxing of the MP4 container, audio decoding, Vorbis re-encoding, and muxing into the OGG container.
-i input.mp4 Specifies the input MP4 file. FFmpeg reads the container, identifies the video and audio streams inside, and makes them available for processing — in this case, only the audio stream will be used.
-c:a libvorbis Sets the audio encoder to libvorbis, the Xiph.Org Vorbis encoder. This re-encodes the MP4's original audio (typically AAC) into Vorbis format, which is the standard and most compatible audio codec for OGG containers.
-q:a 4 Sets the Vorbis variable bitrate quality level to 4 on a 0–10 scale, targeting approximately 128 kbps. This default offers a good balance between file size and audio fidelity suitable for both music and voice content.
output.ogg Defines the output filename and tells FFmpeg to mux the encoded Vorbis audio stream into an OGG container. The .ogg extension signals FFmpeg to use the OGG muxer, and the resulting file will contain audio only — the video stream from the MP4 is implicitly dropped because OGG has no video stream to receive it.

Common Use Cases

  • Extract background music or a soundtrack from an MP4 video to use in a web game or interactive project that requires open-format audio for browser compatibility
  • Strip audio from a recorded lecture or webinar MP4 to produce an OGG file for use on a website that serves audio without relying on proprietary codec licensing
  • Convert MP4 podcast recordings to OGG for distribution on platforms like icecast streaming servers, which have native OGG/Vorbis support
  • Prepare audio assets from MP4 source footage for use in open-source game engines like Godot, which prefer or require OGG Vorbis audio files
  • Extract and convert the audio from an MP4 interview or documentary to OGG for archival purposes in a fully open, royalty-free format
  • Convert MP4 music videos to OGG audio files for embedding in web pages using the HTML5 audio element with open-format browser support in Firefox and Chrome

Frequently Asked Questions

Yes, some quality loss is expected because this conversion involves transcoding from one lossy codec (typically AAC inside the MP4) to another lossy codec (Vorbis inside the OGG). Each encode-decode cycle introduces generational loss. However, at the default quality setting of -q:a 4, Vorbis produces audio that is perceptually transparent for most listeners at roughly 128–160 kbps. If pristine quality is critical, you can raise the quality value toward 10, though it will increase file size.
The video stream is completely discarded. OGG is used here strictly as an audio container — while OGG technically supports video via the Theora codec, this tool produces audio-only OGG files. The output file will contain only the re-encoded Vorbis audio track, with no video data, which is why OGG files are much smaller than the original MP4.
OGG does support chapter markers and, technically, multiple logical streams, but practical support varies widely across players and applications. Subtitle tracks from the MP4 will be lost entirely, as OGG does not support subtitle streams. If your MP4 has multiple audio tracks, only the default audio track will be extracted and converted into the OGG output.
Adjust the -q:a value, which controls Vorbis variable bitrate quality on a scale from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps). The default is 4, which targets approximately 128 kbps and is suitable for most voice and music content. For example, use '-q:a 7' for higher-quality music output or '-q:a 2' to minimize file size for speech-only content.
Yes. On Linux or macOS, you can run a shell loop: 'for f in *.mp4; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.mp4}.ogg"; done'. On Windows Command Prompt, use: 'for %f in (*.mp4) do ffmpeg -i "%f" -c:a libvorbis -q:a 4 "%~nf.ogg"'. This applies the same Vorbis encoding settings to every MP4 in the current directory.
OGG Vorbis is supported natively in Firefox, Chrome, and Opera, but Safari and older versions of Edge do not support it without plugins or fallbacks. If you need universal browser compatibility, MP3 or AAC would be safer choices. However, if your audience is primarily on Firefox or Chrome, or you are serving audio through an open-source platform, OGG Vorbis is a reliable and patent-free option.

Technical Notes

OGG is a streaming-friendly container developed by Xiph.Org, and Vorbis is its most established audio codec — predating the royalty-free Opus codec that Xiph later developed. Unlike AAC (the default audio codec in MP4), Vorbis is entirely patent-free, making it a preferred choice in open-source ecosystems. The -q:a parameter in Vorbis encoding is a variable bitrate quality scale, not a fixed bitrate target, so actual file sizes will vary depending on the complexity of the audio content. Metadata such as title, artist, and album tags from the MP4 container will generally be preserved and remapped to OGG's Vorbis comment metadata format by FFmpeg, though some custom or proprietary MP4 metadata atoms may be dropped. The OGG format does support chapters via a non-standard but widely implemented extension, and FFmpeg will attempt to carry chapter data over from the MP4 if present. One important limitation: if your MP4 source uses the Opus audio codec, you could alternatively use '-c:a libopus' to avoid a full transcode and preserve better quality, though the default Vorbis setting is appropriate for the broadest compatibility with OGG players.

Related Tools