Extract Audio from M2TS to OGA — Free Online Tool
Extract audio from M2TS Blu-ray and AVCHD files and save it as an OGA file using the Vorbis codec. This tool is ideal for pulling high-quality audio tracks from Blu-ray rips or AVCHD camcorder footage into an open, streamable Ogg container without re-encoding the video.
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 typically carrying H.264 or H.265 video alongside audio encoded in formats like AAC, AC-3, DTS, or TrueHD. During this conversion, the video stream is completely discarded using the -vn flag — no video decoding or encoding takes place. The audio stream is then decoded from whatever codec it was stored in within the M2TS file and re-encoded using the Vorbis codec (libvorbis), which is the default audio codec for the OGA container. The output is an OGA file — an Ogg container holding a Vorbis audio stream — which is compact, open-source, and widely supported by modern media players and browsers. Because OGA only supports a single audio track, if the M2TS source contains multiple audio tracks (common in Blu-ray content with multiple language tracks), only the first detected audio track will be extracted by default.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program, the open-source multimedia processing engine that handles the decoding of the M2TS transport stream and encoding into the OGA Ogg Vorbis output. |
-i input.m2ts
|
Specifies the input file — an M2TS file, which is a BDAV MPEG-2 Transport Stream typically containing HD video and multi-channel audio from a Blu-ray disc or AVCHD camcorder. |
-vn
|
Disables video output entirely, ensuring that no video stream from the M2TS file is decoded or written to the output — this is what makes the conversion an audio extraction rather than a full remux. |
-c:a libvorbis
|
Encodes the extracted audio using the libvorbis encoder, producing an Ogg Vorbis audio stream — the native and default audio codec for the OGA container format. |
-q:a 4
|
Sets the Vorbis variable bitrate quality level to 4 on a 0–10 scale, which targets approximately 128 kbps and provides a good balance between file size and audio quality suitable for most M2TS source material. |
output.oga
|
Defines the output file with the .oga extension, telling FFmpeg to write an audio-only Ogg container file — the standard extension for Ogg files that contain audio streams rather than multiplexed video. |
Common Use Cases
- Extract the stereo or surround audio commentary track from a Blu-ray rip stored as an M2TS file to listen to separately
- Pull the audio from AVCHD camcorder footage (.m2ts) to create a standalone audio recording of an event, interview, or performance
- Convert Blu-ray music concert video files to OGA for playback in open-source media players like VLC or music apps that support Ogg Vorbis
- Archive the audio portion of a Blu-ray disc's main feature in an open, patent-free format for long-term storage
- Extract a specific language audio track from a multi-language Blu-ray M2TS file to produce a focused audio file for transcription or translation work
- Prepare audio from high-definition broadcast recordings in M2TS format for use in open-source video editing or podcast production workflows
Frequently Asked Questions
Yes, some quality loss will occur unless the source audio in the M2TS is already Vorbis-encoded. Most M2TS files from Blu-ray discs use high-bitrate AC-3, DTS, TrueHD, or AAC audio, so converting to Vorbis involves a decode-then-re-encode step. At the default quality setting of -q:a 4, Vorbis produces output comparable to roughly 128 kbps, which is transparent for most casual listening. If you need true lossless preservation, consider using the FLAC codec within an OGA container instead.
By default, FFmpeg selects the first audio stream it finds in the M2TS file when no explicit stream is specified. Blu-ray M2TS files often contain multiple audio tracks for different languages or commentary. To extract a specific track, you can modify the command by adding -map 0:a:1 (for the second audio track) or -map 0:a:2 (for the third) before the output filename, replacing the index as needed.
Both OGA and OGG use the same underlying Ogg container format, but OGA is the officially designated file extension for audio-only Ogg files, while OGG is a more generic extension often associated with Ogg Vorbis audio historically. Using the .oga extension more clearly signals to media players and operating systems that the file contains audio only — no video — which can improve compatibility and library organization.
The -q:a flag controls Vorbis quality on a scale from 0 (lowest, roughly 64 kbps) to 10 (highest, roughly 500 kbps), with 4 as the default (approximately 128 kbps). To increase quality, change -q:a 4 to a higher value like -q:a 6 or -q:a 8. For example: ffmpeg -i input.m2ts -vn -c:a libvorbis -q:a 6 output.oga. Higher values increase file size but improve audio fidelity, which is more noticeable when the source M2TS contains lossless or high-bitrate audio.
Yes. OGA supports FLAC audio, which gives you lossless extraction if your source M2TS contains a lossless audio track (like TrueHD or LPCM on Blu-ray). Change the command to: ffmpeg -i input.m2ts -vn -c:a flac output.oga. The resulting file will be significantly larger than a Vorbis-encoded OGA, but no audio quality will be lost in the process.
Yes, you can adapt the command for batch processing using a shell loop. On Linux or macOS, run: for f in *.m2ts; do ffmpeg -i "$f" -vn -c:a libvorbis -q:a 4 "${f%.m2ts}.oga"; done. On Windows Command Prompt, use: for %f in (*.m2ts) do ffmpeg -i "%f" -vn -c:a libvorbis -q:a 4 "%~nf.oga". This is particularly useful when working with multi-episode Blu-ray rips or large AVCHD camcorder libraries where converting files one at a time would be impractical.
Technical Notes
M2TS files embedded in Blu-ray disc structures (BDMV folders) or produced by AVCHD camcorders often contain audio encoded in Dolby Digital (AC-3), DTS, Dolby TrueHD, or LPCM — none of which are natively supported by the OGA container. This means FFmpeg must fully decode the source audio before re-encoding it as Vorbis, which is a lossy transcode step even if the original was lossless. OGA's Ogg container does support chapter markers, which can be carried over if the M2TS source has chapter data, but subtitle tracks present in the M2TS file are dropped entirely since OGA has no subtitle support. Additionally, because OGA only supports a single audio track, multi-track Blu-ray sources require explicit stream mapping to choose the desired language or mix. Metadata tags such as title and track information are generally not preserved automatically from M2TS to OGA and may need to be set manually using -metadata flags. For files larger than 1GB — common with full Blu-ray feature rips in M2TS format — running the FFmpeg command locally on your desktop is recommended, as it avoids browser memory constraints.