Extract Audio from M2TS to AIF — Free Online Tool
Extract lossless PCM audio from M2TS Blu-ray and AVCHD files and save it as an AIF file — preserving the full uncompressed audio quality using the pcm_s16be codec. Ideal for Mac users who need studio-ready audio pulled directly from high-definition disc or camcorder footage.
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 carrying multiple audio tracks alongside HD video — often encoded as AAC, AC-3, DTS, or TrueHD on Blu-ray sources. This tool strips the video stream entirely and decodes whichever audio track FFmpeg selects by default (usually the first), then re-encodes it into uncompressed PCM audio using the pcm_s16be codec (16-bit, big-endian signed PCM) wrapped in Apple's AIF container. Because AIF is uncompressed and lossless, no audio quality is sacrificed during the output encoding stage — though if the source audio itself was lossy (e.g., AAC or AC-3), the PCM output is a lossless representation of that already-decoded lossy signal, not a recovery of the original uncompressed source.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg media processing engine — in this browser-based tool, that's FFmpeg compiled to WebAssembly (FFmpeg.wasm), running entirely locally in your browser without uploading your M2TS file to any server. |
-i input.m2ts
|
Specifies the input file — your M2TS source, which may be a Blu-ray rip, AVCHD camcorder clip, or broadcast capture. FFmpeg reads the MPEG-2 Transport Stream container and identifies all available video and audio streams inside it. |
-vn
|
Disables video output entirely — this is the core 'extract audio only' instruction. Since the goal is an AIF audio file, there is no reason to decode or carry the HD video stream from the M2TS, and dropping it significantly reduces processing time. |
-c:a pcm_s16be
|
Sets the audio codec to 16-bit signed big-endian PCM, which is the standard uncompressed encoding format for AIF files. This decodes whatever compressed audio codec (AAC, AC-3, TrueHD, etc.) was in the M2TS and writes it as raw PCM samples in the byte order expected by Apple's AIF specification. |
output.aif
|
Defines the output filename and format. The .aif extension signals FFmpeg to wrap the PCM audio in Apple's Audio Interchange File Format container, making the file immediately readable by Logic Pro, GarageBand, Final Cut Pro, and other Mac-native audio applications. |
Common Use Cases
- Extracting dialogue or ambient audio from AVCHD camcorder footage for use in a Mac-based audio editing session in Logic Pro or GarageBand
- Pulling a lossless audio track from a Blu-ray rip in M2TS format for archival or mastering purposes on macOS
- Separating a film score or soundtrack from a Blu-ray M2TS file to import into a professional DAW that requires uncompressed AIF input
- Converting AVCHD wedding or event videography footage to AIF so an audio editor can clean up and master the audio independently from the video
- Extracting audio from broadcast-captured M2TS recordings for podcast production or voice-over reuse on Mac systems
- Creating a lossless AIF reference file from Blu-ray audio to compare against compressed versions during audio quality evaluation
Frequently Asked Questions
It depends on the codec used in the source M2TS file. If the original Blu-ray audio track is lossless — such as TrueHD or DTS-HD Master Audio — then decoding it to PCM and saving as AIF preserves full fidelity with no quality loss. However, many M2TS files, particularly from AVCHD camcorders, carry AAC or AC-3 audio, which is already lossy. In those cases, the AIF output is an uncompressed representation of the decoded lossy audio — the AIF container adds no further degradation, but the lossy artifacts from the original codec are already baked in.
By default, FFmpeg selects the first audio stream in the M2TS container, which is typically the primary language track. M2TS files from Blu-ray discs often contain several tracks — including commentary, alternate languages, or descriptive audio. If you need a specific track, you can modify the FFmpeg command by adding '-map 0:a:1' (for the second audio track) or '-map 0:a:2' (for the third) before the output filename. The tool displays the exact command so you can adapt it for multi-track scenarios on your desktop.
AIF stores audio as raw, uncompressed PCM data — every sample is written at full bit depth with no compression whatsoever. A single minute of stereo audio at 16-bit/48kHz PCM takes roughly 11MB. M2TS files typically use compressed codecs like AAC or AC-3 that achieve 5:1 to 10:1 compression ratios, so the AIF output will be significantly larger than the audio portion of the source. This size increase is the direct trade-off for the uncompressed, immediately editable format that AIF provides.
Yes. The default FFmpeg command uses pcm_s16be, which produces 16-bit big-endian PCM — the standard AIF format. If your M2TS source contains high-resolution audio (such as 24-bit Blu-ray lossless tracks), you can change the codec flag to '-c:a pcm_s24be' for 24-bit output, or '-c:a pcm_s32be' for 32-bit. Running the modified command locally on your desktop via the displayed FFmpeg command is the easiest way to do this for files over 1GB or when you need a non-default bit depth.
The displayed command handles a single file, but you can adapt it for batch processing in a shell script. On macOS or Linux, a simple loop works: 'for f in *.m2ts; do ffmpeg -i "$f" -vn -c:a pcm_s16be "${f%.m2ts}.aif"; done'. On Windows, a similar for-loop in PowerShell achieves the same result. This is particularly useful for processing large collections of AVCHD clips from a camcorder, where each scene is stored as a separate M2TS file.
Basic text metadata such as title or language tags may carry over if present in the M2TS stream, but AIF has limited metadata support compared to formats like FLAC or MP4. Blu-ray-specific metadata structures and chapter markers are not preserved in the AIF output — AIF has no chapter support and the conversion command does not include a metadata mapping flag. If metadata retention is critical, you may want to manually tag the AIF file afterward using a tool like MP3Tag or Apple's built-in metadata editors.
Technical Notes
The pcm_s16be codec used in this conversion produces 16-bit, big-endian, signed PCM audio — the canonical encoding for Apple's AIF format and the expected byte order for Mac-native audio tools. M2TS containers can carry audio sampled at 48kHz (standard for video) rather than the 44.1kHz common in music production; FFmpeg passes through the source sample rate unchanged, so the resulting AIF will be 48kHz if the M2TS source is 48kHz. Most professional DAWs handle 48kHz AIF natively, but consumer software may prompt for sample rate conversion. One known limitation is that M2TS files using DTS-HD or TrueHD — lossless Blu-ray audio formats — require FFmpeg to be built with the appropriate decoder libraries; the WebAssembly build used in this browser tool supports these codecs, but very exotic or encrypted Blu-ray disc audio streams may not decode correctly. AIF does not support multiple audio tracks or embedded subtitles, so only the default audio stream from the M2TS is extracted. The output file is immediately compatible with Logic Pro, GarageBand, Final Cut Pro, and any other Mac application that reads standard AIF.