>FFmpegLab Start free
FFmpeg Guide

How to extract audio from video with FFmpeg

Pull the soundtrack out of a video — copy it untouched, convert to MP3, AAC, or WAV, grab a single track, or rip just a time range.

The key flag is -vn — "no video" — which drops the video stream and keeps only audio. From there you decide whether to copy the existing audio as-is (fastest, lossless) or re-encode it to a different format like MP3.

Key takeaways

Extract audio losslessly (no re-encode)

If you just need the original audio in its own file, copy the stream. Match the extension to the source codec — AAC audio goes into .m4a, for example:

ShareRenders{ } CodeConfig
Generated CodeLogsCustomize
# copy the existing AAC track into an .m4a
ffmpeg -i in.mp4 -vn -c:a copy out.m4a

Convert to MP3, AAC, or WAV

To get a portable file, re-encode. MP3 for sharing, WAV for lossless editing, AAC for small high-quality files:

ShareRenders{ } CodeConfig
Generated CodeLogsCustomize
# MP3, high quality (VBR)
ffmpeg -i in.mp4 -vn -c:a libmp3lame -q:a 2 out.mp3

# AAC at 192k
ffmpeg -i in.mp4 -vn -c:a aac -b:a 192k out.m4a

# uncompressed WAV
ffmpeg -i in.mp4 -vn -c:a pcm_s16le out.wav

Rip only part of the audio

Add a start and end time to grab a clip — the 30 seconds you actually want, not the whole file:

ShareRenders{ } CodeConfig
Generated CodeLogsCustomize
# extract audio from 00:30 to 01:00 as MP3
ffmpeg -ss 00:00:30 -to 00:01:00 -i in.mp4 \
  -vn -c:a libmp3lame -q:a 2 clip.mp3

Extract audio visually instead

FFmpegLab shows the audio track on the timeline so you can export it to MP3 or WAV with a click, and it runs fully offline — your recordings never leave the machine. Want the reverse? See removing or muting audio, or mixing tracks.

✦  Fresh from the render queue

Better FFmpeg workflows, delivered.

Get practical commands, new templates, and deep-dive guides for the edits that are usually hardest to get right.

✓  Copy-pasteable commands    ✓  Editor templates    ✓  No noise
One useful email at a time.

Pull audio out of any video — in your browser.

Free in your browser — nothing to install, nothing uploaded.