TubeSum ← Transcribe a video

How to extract audio from ANY video with FFmpeg

0h 02m video Published Jun 18, 2025 Transcribed Jul 28, 2026 Mux Mux
Beginner 2 min read For: Content creators, podcasters, and developers needing to extract audio from video files.
AI Trust Score 95/100
✅ Highly Legit

"Title accurately promises a quick FFmpeg tutorial for audio extraction, and the video delivers exactly that."

AI Summary

This tutorial demonstrates how to use FFmpeg to extract audio from a video file with a single command. It covers extracting audio in various formats like MP3, WAV, and M4A, and explains the difference between transcoding and stream copying.

[0:00]
FFmpeg for audio extraction

FFmpeg is the tool for extracting audio from video files for podcasting, transcription, or AI workflows.

[0:38]
Installation

On Mac, install FFmpeg via 'brew install ffmpeg' or from source at ffmpeg.org.

[0:51]
Basic command for MP3 extraction

Command: 'ffmpeg -i video.mp4 -q:a 0 -map a output.mp3' extracts audio at highest quality.

[1:40]
Extracting to WAV

Change output extension to .wav to get uncompressed audio.

[1:55]
Extracting to M4A (AAC)

Change output extension to .m4a for AAC audio.

[2:02]
Stream copy without transcoding

Use '-c:a copy' to copy the audio stream without re-encoding, which is faster. Example: 'ffmpeg -i video.mp4 -c:a copy output.m4a'.

FFmpeg provides full control for extracting audio from videos, whether for voiceovers, podcast clips, or repurposing content. The tool is simple and efficient.

Mentioned in this Video

Tutorial Checklist

1 0:38 Install FFmpeg: On Mac, run 'brew install ffmpeg' or download from ffmpeg.org.
2 0:51 Navigate to the directory containing your video file.
3 0:59 Run command to extract audio as MP3: 'ffmpeg -i video.mp4 -q:a 0 -map a output.mp3'.
4 1:40 To extract as WAV, change output extension to .wav.
5 1:55 To extract as M4A (AAC), change output extension to .m4a.
6 2:02 For faster stream copy without re-encoding, use: 'ffmpeg -i video.mp4 -c:a copy output.m4a'.

Study Flashcards (5)

What command installs FFmpeg on Mac?

easy Click to reveal answer

brew install ffmpeg

0:42

What does the '-q:a 0' flag do in FFmpeg?

medium Click to reveal answer

Sets the audio quality to the highest (0 is best).

1:07

What flag maps only the audio stream in FFmpeg?

medium Click to reveal answer

-map a

1:16

How do you extract audio without re-encoding?

hard Click to reveal answer

Use '-c:a copy' to stream copy the audio.

2:08

What are three audio formats you can extract to using FFmpeg?

easy Click to reveal answer

MP3, WAV, and M4A (AAC).

0:13

💡 Key Takeaways

💡

FFmpeg for audio extraction

Introduces FFmpeg as a versatile tool for extracting audio from video files.

🔧

Installation methods

Provides simple installation instructions for Mac and general source download.

0:38
🔧

Basic extraction command

Demonstrates the core command to extract audio as MP3 with high quality.

0:59
⚖️

Stream copy vs transcoding

Explains the difference and shows how to copy audio without quality loss.

2:02

[00:00] Working on a podcast, transcription or

[00:02] AI workflow? Well, then FFmpeg is the

[00:05] tool for you. In this quick tutorial,

[00:07] we're going to look at how we can

[00:08] extract audio from a video file in just

[00:10] one single command. The audio format and

[00:13] codec can be wave, AAC audio, MP3,

[00:17] anything that you would like. Let's get

[00:18] into it. So, of course, I have my video

[00:21] here. Here's how you upload a tutorial

[00:23] similar to this one. And let's say I

[00:27] want to transcribe this to Spanish,

[00:28] transcribe it to French, any other

[00:30] language. I would extract it here and

[00:32] set it off to, you know, my third party

[00:34] service. So again, this is using ffmpeg.

[00:38] I have it installed here. If you don't

[00:40] have it installed, you can, if you're on

[00:42] Mac, you can simply do brew install

[00:43] ffmpeg. You could also install from

[00:46] source um from ffmpeg.org. It's just a

[00:48] little bit more complicated.

[00:51] I'm already in this current working

[00:52] directory over here um with my video

[00:55] titled extract audio. So ffmpeg

[00:59] I which is for input video.mpp4

[01:02] and uh Q colon a zero. So this just kind

[01:07] of means the quality of the audio codec

[01:11] zero which is just the highest. And then

[01:14] we're going to map just the audio

[01:16] stream. That's going to be a we're going

[01:18] to send it to our folder here as an MP3.

[01:23] All righty. So, see how it looks.

[01:27] And there you have it. Here's how you

[01:29] upload and play back a video using MX

[01:31] in. You can hear it, too. So, the reason

[01:33] why we would do this is just it's super

[01:36] simple. You see, it's very quick. We can

[01:38] also

[01:40] set this to wave, which is kind of an

[01:43] uncompressed audio format. So we could

[01:46] also this way.

[01:48] That's a way. Here's how you upload and

[01:50] play back a video using and then last

[01:53] one would be

[01:55] in an M4A which is AAC audio.

[02:00] So these are all transcoding. If I

[02:02] wanted to just simply map the output, I

[02:05] could actually see C for the audio codec

[02:08] map zero

[02:10] A. Oh, I missed copy here. And if I just

[02:14] wanted to do audio, let's say copy. I

[02:19] know that it's AAC, so I could put it as

[02:21] a M4A. And this is going to not

[02:23] transcode. This will just stream copy it

[02:25] out.

[02:27] You see, it's much quicker. And it's the

[02:29] actual Here's how you It's the same

[02:32] stream that's in this original file

[02:33] here. Here's how you upload and play

[02:35] back.

[02:36] So whether you're saving voiceovers,

[02:38] pulling podcast clips, or repurposing

[02:41] reels, FFmpeg gives you full control.

[02:44] Like this tip? Subscribe for more

[02:46] byite-sized FFmpeg guides. Thanks for

[02:48] watching.

⚡ Saved you 0h 02m reading this? Transcribe any YouTube video for free — no signup needed.