Extract a Video's Audio Track (Lossless)

Pull one audio stream out of a video without re-encoding — a lossless stream-copy into MKA, M4A or OGG. Runs in your browser, nothing is uploaded.

Try:
Extracted audio

Extract a video’s audio track without re-encoding

Use this when you already like the audio codec inside a video and just want the soundtrack as a standalone file. The tool runs ffmpeg locally in your browser with -vn -map 0:a:<track> -c:a copy, so it drops the video stream and copies the selected audio packets into a new container without changing quality.

What to choose

Worked example

For a normal MP4 with AAC audio, choose M4A and keep track 0. The generated ffmpeg plan is equivalent to:

ffmpeg -i in.mp4 -vn -map 0:a:0 -c:a copy out.m4a

That remuxes the AAC stream into an M4A file without transcoding. If you are not sure which codec the source has, start with MKA.

Limits and edge cases

Is this lossless?

Yes. The audio stream is copied with ffmpeg’s -c:a copy, so samples are not decoded and encoded again. The output quality is the same as the selected audio track in the source video.

Why does the default output use MKA?

MKA is the audio-only Matroska container and can hold many codecs. It is the safest default when you do not know whether the source audio is AAC, Opus, Vorbis, ALAC, or something else.

When should I choose M4A or OGG?

Choose M4A for AAC or ALAC audio, especially from MP4 and MOV files. Choose OGG for Vorbis or Opus audio, commonly found in WebM-style workflows. If you pick a container that cannot hold the source codec, use MKA instead.

How is this different from extracting MP3 or WAV?

MP3 and WAV extraction requires re-encoding or decoding the audio into a new format. This tool keeps the original codec untouched; use the separate extract-audio-from-video or audio-convert tools when you want conversion instead of lossless demuxing.

Developer & Automation Access

Run it from the terminal

Same engine as this page, headless — via the gizza CLI:

gizza tool video-extract-audio-track 'url=https://example.com/input' 'container=mka' 'track=0'

New to the CLI? Get gizza →

Open it by URL

Pre-fill and auto-run this tool with query parameters — the names match the API/CLI:

https://gizza.ai/tools/video-extract-audio-track/?url=https://example.com/input&container=mka&track=0

Machine-readable descriptor: tool.json — title + parameters JSON Schema for agents.