Skip to content
86% off$349 $48.86code BF2026

Guides

Extract Audio From Video on Mac Without Re-encoding

Copy the audio track out of a video on Mac without re-encoding using ffmpeg, pick the right file extension, fix VLC's "formatless file" MP3, and batch it.

TroubleshootingUpdated 6 min read

On this page

You have a video and someone wants the soundtrack "without changing the audio in any way." Or you tried VLC's Convert / Stream to MP3 on an MKV and got what people describe as "just a formatless file" that won't play, even after adding .mp3 to the name. Both problems come from the same mix-up: converting and extracting are different operations.

Why it happens

  • Converting re-encodes. Any "convert to MP3" or "export as AAC" step decodes the audio and encodes it again. If the goal is untouched audio, that is the wrong step.
  • The soundtrack is its own stream with its own codec. H.264 is a video codec. The audio inside the file might be AAC, MP3, PCM, FLAC, AC-3 or something else, and the Audio: line from ffprobe tells you which. The audio codec, not the video format, decides which file type can hold a straight copy.
  • Renaming a file changes nothing inside it. If VLC wrote data that isn't a valid MP3, adding .mp3 will not fix it. We can't tell from the reports what VLC actually wrote, so check it with the file command (see below).
  • Some codecs don't fit some containers. Copying DTS or Opus audio into .m4a, for example, is refused or produces an unplayable file.

Fix 1: copy the audio stream with ffmpeg

ffmpeg is free and handles one file or a whole folder.

  1. Install it with Homebrew:

    bash
    brew install ffmpeg

    This installs ffmpeg and ffprobe. To remove it later, run brew uninstall ffmpeg.

  2. Find the audio codec. This only reads the file:

    bash
    ffprobe -hide_banner input.mov

    Look for a line like Stream #0:1: Audio: aac .... The word after Audio: is the codec.

  3. Copy the audio into a matching container:

    bash
    ffmpeg -i input.mov -vn -c:a copy output.m4a

    -vn drops the video, -c:a copy copies the audio without decoding it. The original file is not touched.

Audio codec in the videoUse this extension
AAC.m4a
MP3.mp3
PCM (for example pcm_s16le, pcm_s24le).wav
FLAC.flac
AC-3.ac3

Pick a specific track

MKV files and some others hold several audio tracks. Choose one with -map:

bash
ffmpeg -i input.mkv -map 0:a:0 -c:a copy output.m4a

0:a:0 is the first audio track; use 0:a:1 for the second.

Fix 2: the codec doesn't fit the container

Symptom: ffmpeg stops with an error that the codec or tag isn't compatible with the output container, or the file it writes won't play.

Cause: the extension you chose can't hold that codec.

Fix: run ffprobe, then use the extension from the table. If the codec isn't listed and you need an Apple-friendly file, the audio has to be converted, so it will no longer be unchanged. Two options:

  • Decode to WAV: ffmpeg -i input.mkv -vn -c:a pcm_s24le output.wav. The file is large, but it adds no new lossy encoding step.
  • Encode to AAC: ffmpeg -i input.mkv -vn -c:a aac output.m4a. If your ffmpeg build includes Apple's AudioToolbox encoder (run ffmpeg -encoders and look for aac_at), you can use -c:a aac_at instead. Either way this is an encode.

Fix 3: VLC's "formatless file"

Symptom: Convert / Stream to MP3 on an MKV gives a file that won't play, even renamed to .mp3.

Cause: conversion to MP3 re-encodes, and the output wasn't a valid MP3. Renaming can't repair that.

Fix: see what you actually got:

bash
file output.mp3

file reports the real type of the contents. If it says data, the file has no recognizable format. Delete it, run ffprobe on the MKV, and use the copy command with the extension that matches the codec. VLC is still handy for checking that the result plays.

Batch: extract audio from many .mov files

If every file holds AAC audio, a zsh loop (the default shell on current macOS) does the job. Run it in the folder with the files:

bash
for f in *.mov; do ffmpeg -i "$f" -vn -c:a copy "${f%.mov}.m4a"; done

Each .mov gets an .m4a with the same name beside it. ffmpeg asks before overwriting. Files with a different codec may fail while the rest continue, so check ffprobe on any that error. The pattern is case-sensitive: use *.MOV for uppercase extensions.

QuickTime Player's Audio Only export

QuickTime Player can export one video as audio only: open the file, then choose File > Export As > Audio Only. People often suggest it. We don't have documentation saying whether it copies the track or re-encodes it, so don't rely on it when the audio must stay unchanged.

Choosing a method

MethodAudio unchanged?BatchCost
ffmpeg -c:a copyYes, stream is copiedYes, with a loopFree
QuickTime Player, Audio OnlyNot documentedNoBuilt in
Gizmojar Extract AudioNot documentedYesMacSuite license, 7-day trial

Where Gizmojar fits

Gizmojar's Extract Audio tool ("Save the soundtrack as M4A") covers the convenience and batch side of this job, not the "unchanged" guarantee. It has no options and saves <name> (audio).m4a next to the original, never altering the original. You can drop many files or a folder; a dropped folder is saved as a mirror folder, <Folder> (Gizmojar), by default. It says "This video has no audio track." when there is nothing to extract.

We don't document whether it copies the track or re-encodes it, so for bit-exact audio use the ffmpeg command above. MKV input isn't verified either; Gizmojar recognizes .mov, .mp4, .m4v, .qt, .3gp and .3g2 by extension, so use ffmpeg for MKV.

To run it, press ⌃⌥Space (the default command bar shortcut), drop your videos in, type extract audio and press ↵. Gizmojar is part of MacSuite and free for 7 days; see the Gizmojar page and the video tools doc.

Checklist before you try again

  • ffprobe shows an Audio: line (otherwise there is no audio).
  • The extension matches the codec from the table.
  • You used -c:a copy, not another codec name.
  • For several tracks, you picked one with -map 0:a:N.
  • file output.m4a (or your extension) reports an audio type, not data.

Other common snags: command not found: ffmpeg means the install didn't finish or Homebrew isn't on your path, so rerun brew install ffmpeg and open a new Terminal window.

If nothing works

For a copy that only some players reject, ask the ffmpeg community or the player's vendor. For QuickTime Player issues, contact Apple Support. For Gizmojar, see the troubleshooting doc or support. Include the Audio: line from ffprobe, the exact ffmpeg message, your macOS version and the command you ran:

text
Subject: Audio stream copy fails on Mac

I'm extracting audio from a video without re-encoding.
Command: ffmpeg -i input.mkv -vn -c:a copy output.m4a
ffprobe audio line: <paste the "Audio:" line>
Error: <paste the exact message>
macOS version: <version>
The file plays / does not play in: <app>

Common questions

Can I extract MP3 from a video without re-encoding?

Only if the video's audio is already MP3. Then -c:a copy into an .mp3 file works. If the audio is AAC, an MP3 file would require converting.

Will the quality change when I copy the stream?

No. Copying moves the encoded audio into a new container without decoding it. Quality changes only if you choose a different codec.

Why can't I put H.264's audio into an MP3?

H.264 is the video codec. The audio is usually AAC, which belongs in .m4a. Making it an MP3 means re-encoding.

Is there a simpler route if I don't need the audio unchanged?

Yes. How to Extract Audio from a Video on Mac covers the easier methods.

Every app.
One purchase.