Convert M2TS to OGG — Free Online Tool

Convert M2TS Blu-ray video files to OGG audio, extracting the audio stream and re-encoding it to Vorbis format for use in open-source and web-based applications. This tool automatically strips the video, subtitle, and transport stream overhead from the M2TS container, delivering a clean, lightweight OGG/Vorbis audio file entirely in your browser.

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

M2TS files are MPEG-2 Transport Stream containers typically carrying H.264 or H.265 video alongside multi-channel audio (often AAC, AC-3, or DTS) as found on Blu-ray discs and AVCHD camcorders. During this conversion, FFmpeg discards the video stream entirely and transcodes the audio — whatever codec it uses inside the M2TS — into Vorbis, encoded with the libvorbis encoder and packaged into an OGG container. Because Vorbis is a lossy codec and M2TS audio may itself be lossy (e.g., AAC or AC-3), this is a lossy-to-lossy transcode, meaning some audio generation loss occurs. The OGG format has no video track concept, so the output is a pure audio file. The quality scale used is Vorbis's VBR quality ladder (-q:a), not a fixed bitrate.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg multimedia processing tool. In this browser-based tool, FFmpeg runs as a WebAssembly (WASM) binary compiled from the same codebase, so the command you see here is identical to what you would run in a desktop terminal.
-i input.m2ts Specifies the input file — an M2TS Blu-ray MPEG-2 Transport Stream. FFmpeg will parse its video, audio, and subtitle streams (and any PGS subtitle tracks embedded from Blu-ray chapters) before processing begins.
-c:a libvorbis Sets the audio codec to libvorbis, the reference Vorbis encoder, producing a compressed audio stream in the royalty-free Vorbis format suitable for the OGG container. Any audio codec found in the M2TS source (AAC, AC-3, DTS, LPCM, etc.) will be decoded and re-encoded into Vorbis.
-q:a 4 Sets the Vorbis encoder's variable bitrate quality level to 4 on a 0–10 scale, targeting approximately 128–160 kbps. This is a VBR quality parameter rather than a fixed bitrate, meaning the encoder dynamically allocates more bits to complex audio passages from the M2TS source for better perceptual quality.
output.ogg Defines the output filename and triggers OGG container muxing. Because OGG is an audio-only container in this context, FFmpeg automatically drops the video and subtitle streams from the M2TS without requiring an explicit -vn flag, producing a self-contained OGG/Vorbis audio file.

Common Use Cases

  • Extracting a concert or live performance audio track from a Blu-ray rip (M2TS) to listen to offline or archive as an open-format audio file
  • Pulling dialogue or narration audio from an AVCHD camcorder clip for use in a video editing project that requires OGG/Vorbis source assets
  • Preparing audio from Blu-ray disc chapters for playback in a web browser via the HTML5 audio element, which natively supports OGG/Vorbis
  • Converting M2TS audio to OGG for use in open-source game engines like Godot, which prefer or require OGG/Vorbis for audio assets
  • Archiving the audio portion of a broadcast recording stored in M2TS format into the royalty-free OGG container for long-term storage without licensing concerns
  • Stripping the audio from a high-definition AVCHD clip to create a smaller file for transcription, podcast editing, or audio analysis workflows

Frequently Asked Questions

Yes, some quality loss is expected. M2TS files from Blu-ray discs often contain high-quality lossy audio (AAC, AC-3, or DTS), and re-encoding those streams into Vorbis introduces a second generation of lossy compression. The default -q:a 4 setting produces roughly 128–160 kbps variable bitrate Vorbis audio, which is generally transparent for most listeners, but the transcoding step means this is not a lossless extraction. If the M2TS contains a lossless audio track such as TrueHD or FLAC, the quality loss is more significant and you may want to consider using the FLAC codec option in OGG instead.
OGG is designed primarily as an audio container by Xiph.Org, and while a theoretical video format (OGV/Theora) exists, this tool targets OGG as an audio-only output format. The FFmpeg command does not include a video codec mapping, so FFmpeg automatically drops the video stream. This is intentional — if you need to preserve the video, you should convert to a video container format instead.
It depends on the source. If the M2TS contains a 5.1 or 7.1 surround audio track, FFmpeg will attempt to encode all channels into the Vorbis stream, and OGG/Vorbis does support multi-channel audio. However, if the source uses a format like DTS-HD or Dolby TrueHD that FFmpeg cannot decode cleanly in the WebAssembly environment, channel mapping may not work as expected. For most AAC or AC-3 5.1 sources in M2TS files, the channel layout should be preserved in the Vorbis output.
Yes. The -q:a 4 flag controls Vorbis VBR quality on a scale from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps). To increase quality, raise the value — for example, replace -q:a 4 with -q:a 7 for approximately 220–260 kbps output, which is closer to Vorbis's transparent ceiling. To reduce file size at the cost of quality, use -q:a 2 or -q:a 1. Unlike CBR bitrate flags, -q:a lets the encoder allocate more bits to complex passages automatically.
Yes. On Linux or macOS you can run a shell loop: for f in *.m2ts; do ffmpeg -i "$f" -c:a libvorbis -q:a 4 "${f%.m2ts}.ogg"; done. On Windows PowerShell, use: Get-ChildItem *.m2ts | ForEach-Object { ffmpeg -i $_.FullName -c:a libvorbis -q:a 4 ($_.BaseName + '.ogg') }. This is especially useful for batch-extracting audio from a set of Blu-ray chapter files, which are commonly split into multiple M2TS segments.
Subtitle tracks are silently dropped during this conversion. M2TS supports embedded PGS (Presentation Graphic Stream) subtitles common on Blu-ray discs, but the OGG audio container has no mechanism to store subtitle data. Since the output is audio-only, there is nowhere for subtitle streams to go, and FFmpeg will simply ignore them without producing an error.

Technical Notes

M2TS files from Blu-ray sources can carry a wide variety of audio codecs — AAC, AC-3 (Dolby Digital), E-AC-3, DTS, DTS-HD Master Audio, TrueHD, and LPCM — and FFmpeg's WebAssembly build may have limited decoder support for some of the more exotic lossless or high-bitrate variants (DTS-HD, TrueHD). If FFmpeg.wasm cannot decode the primary audio track, the conversion may fail or produce silence. In those cases, running the command locally with a full FFmpeg build is recommended, which is why the exact command is displayed on this page. The OGG container supports chapters (unlike MP4), so if you add chapter metadata manually post-conversion it will be preserved. Metadata tags such as TITLE, ARTIST, and ALBUM embedded in the M2TS file may not survive the transcode cleanly, as MPEG-2 Transport Streams use a different metadata model (PMT/PAT/DVB descriptors) than OGG's Vorbis comment tags — you should plan to re-tag the output OGG file if metadata is important. The libvorbis encoder used here is the reference implementation and produces excellent VBR quality; at the default q:a 4, expect output files roughly 60–70% smaller than the original M2TS due to video removal and audio compression combined.

Related Tools