Extract Audio from M2TS to OGG — Free Online Tool
Extract audio from M2TS Blu-ray and AVCHD files and save it as an OGG Vorbis file — a free, open-source format with excellent quality-to-size ratio. This tool strips the video stream entirely and re-encodes the audio using the Vorbis codec, making it ideal for archiving or sharing audio from high-definition disc content.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your M2TS file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
M2TS files are MPEG-2 Transport Stream containers commonly holding high-definition video alongside multi-channel audio codecs like Dolby TrueHD, DTS-HD, AC-3, or AAC. During this conversion, FFmpeg discards the video stream entirely (using the -vn flag) and re-encodes whatever audio track is present into Vorbis, an open lossy codec developed by Xiph.Org, wrapped in an OGG container. Because Vorbis uses variable bitrate encoding controlled by a quality scale, the output file will be significantly smaller than the original M2TS — you lose video and compress the audio, but the result is a lightweight, broadly compatible audio file suitable for web playback and open-source media players.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg tool, which handles all the demuxing, decoding, encoding, and muxing required to extract and convert the audio from the M2TS Transport Stream container. |
-i input.m2ts
|
Specifies the input file — an M2TS file, which is a Blu-ray or AVCHD container potentially holding HD video and multi-channel audio streams such as Dolby TrueHD, DTS-HD, or AC-3. |
-vn
|
Disables video output entirely, telling FFmpeg to ignore all video streams in the M2TS file so only audio data is processed and written to the OGG output. |
-c:a libvorbis
|
Encodes the extracted audio using the Vorbis codec (via libvorbis), Xiph.Org's open-source lossy audio codec that is the native and most compatible audio format for OGG containers. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a 0–10 scale, which targets approximately 128–160 kbps — a balanced default that provides good audio quality at a reasonable file size for most M2TS source material. |
output.ogg
|
Defines the output file as an OGG container, which FFmpeg recognizes by the .ogg extension and uses to mux the encoded Vorbis audio stream into the open Xiph.Org container format. |
Common Use Cases
- Extracting the stereo or surround audio track from a Blu-ray rip to create a standalone music or soundtrack file for a media library
- Pulling audio from AVCHD camcorder footage (stored as .m2ts) to produce a voice recording or ambient sound file without the video overhead
- Converting Blu-ray concert disc audio to OGG Vorbis for playback in open-source players like VLC or Foobar2000 that natively support the format
- Archiving the audio commentary track from a Blu-ray M2TS file as a compressed OGG file to save storage space
- Preparing audio extracted from broadcast-recorded M2TS files for use in a video editing project where only the audio stem is needed
- Stripping audio from an AVCHD travel or event recording to share as a podcast-style listen-along without the large video file
Frequently Asked Questions
Yes, some quality loss is expected because Vorbis is a lossy codec. However, M2TS files often contain high-bitrate audio like Dolby TrueHD or DTS-HD that is already decoded and then re-encoded to Vorbis during this process, which introduces generational loss. At the default quality setting of -q:a 4 (roughly 128–160 kbps variable bitrate), the result is transparent to most listeners for music and speech. If your source has lossless audio and you want to preserve fidelity, consider using FLAC inside OGG instead by changing the codec.
Yes, the Vorbis codec inside OGG supports multi-channel audio including 5.1 surround. If your M2TS file contains a 5.1 Dolby or DTS track, FFmpeg will attempt to transcode all channels into the OGG Vorbis output. However, complex formats like Dolby TrueHD or DTS-HD MA may require FFmpeg to first decode them before re-encoding to Vorbis, which it handles automatically.
By default, FFmpeg selects the first audio stream it finds in the M2TS file, which is typically the primary audio track. M2TS files from Blu-ray discs commonly contain multiple audio streams (e.g., a TrueHD main track and an AC-3 compatibility track). To target a specific track, you can add -map 0:a:1 to the FFmpeg command to select the second audio stream, for example.
The -q:a flag controls Vorbis quality on a scale from 0 (lowest, ~64 kbps) to 10 (highest, ~500 kbps), with 4 being the default (roughly 128–160 kbps). To increase quality, change it to -q:a 6 or -q:a 8. For example: ffmpeg -i input.m2ts -vn -c:a libvorbis -q:a 7 output.ogg. Higher values produce larger files but better audio fidelity.
Yes. On Linux or macOS, you can run a shell loop: for f in *.m2ts; do ffmpeg -i "$f" -vn -c:a libvorbis -q:a 4 "${f%.m2ts}.ogg"; done. On Windows using PowerShell: Get-ChildItem *.m2ts | ForEach-Object { ffmpeg -i $_.FullName -vn -c:a libvorbis -q:a 4 ($_.BaseName + '.ogg') }. This is especially useful for large collections of AVCHD recordings from camcorders.
OGG Vorbis is a solid choice for compressed audio archiving — it is an open, patent-free format with good codec longevity and wide support in open-source software. However, it is lossy, so it is not ideal for a lossless archive master. If you want lossless quality from a Blu-ray source, consider OGG FLAC (using -c:a flac in place of libvorbis) or a standalone FLAC file, which preserves every bit of the original decoded audio.
Technical Notes
M2TS files wrap an MPEG-2 Transport Stream and are designed for Blu-ray and AVCHD storage, often containing audio encoded as Dolby TrueHD, DTS-HD Master Audio, AC-3, or AAC — none of which can be directly placed into an OGG container. As a result, this conversion always involves full audio transcoding (not a lossless remux) regardless of the source audio codec. The OGG container supports Vorbis, Opus, and FLAC audio codecs, but not video streams, so all video data is discarded. Metadata such as chapter markers and title tags present in the M2TS file are generally not carried over to OGG Vorbis output during this conversion. If the M2TS source contains multiple audio streams (common on Blu-ray rips), only the first stream is extracted by default. For high-fidelity archiving, consider bumping -q:a to 7 or higher, or switch the codec to FLAC with -c:a flac -q:a 0 for lossless output within the same OGG container.