A Quick Guide to Extracting Audio from Video Using FFmpeg

April 28, 2026Ashley Mae

If you are comfortable with command-line tools or want full control of the audio extraction from video, you can use FFmpeg to extract audio. It is an open-source, cross-platform tool designed to handle all types of multimedia files and processing tasks. FFmpeg can help you extract audio to MP3 or another desired format with ease. There are a lot of specific commands and explanations in the world of media processing, such as encoding, decoding, transcoding, and more. This guide shares the exact commands you need to extract audio from video using FFmpeg.

FFmpeg Extract Audio

Part 1. Prerequisite: Quick Guide to Download/Install FFmpeg

As mentioned, there are many exact commands you need to extract audio from video. However, before the specific command recommendation, we would like to talk about how to download and install FFmpeg first. Unlike traditional applications, FFmpeg is a set of libraries and binaries that run in your command line. This section tells how to get FFmpeg installed on your system.

Install FFmpeg on Windows

1.
Download the latest FFmpeg executable build from the official website (gyan.dev).
Gyan Dev Install FFmpeg Builds
2.
Extract the downloaded ZIP folder to a safe spot (e.g., to C:\ffmpeg).
3.
Add the bin subfolder (e.g., C:\ffmpeg\bin) to your System Path. This ensures you can run ffmpeg from any command prompt.

Install FFmpeg on macOS

Open Terminal on your Mac and run “brew install ffmpeg”. This will install FFmpeg using Homebrew.

After installation, you can verify it is working by running ffmpeg -version in your terminal or command prompt.

Part 2. How to Use FFmpeg to Extract Audio with No Re-encoding [Fastest]

If you want to quickly isolate the audio as it exists inside the video container, you should copy the audio stream. The process does not decode and re-encode the audio. Instead, it simply moves audio from the video container, with no quality loss whatsoever.

Command Line Example:

ffmpeg -i input.mp4 -vn -acodec copy output.aac

-i input.mp4: The source video file.

-vn: Short for “Video None.” Tells FFmpeg to discard the video stream entirely.

-acodec copy: Tells FFmpeg to copy the source audio stream without re-encoding. Ensures no conversion and no quality loss.

output.aac: The name of your extracted audio file. Tells FFmpeg what container format to use.

Part 3. How to Extract Audio from Video to MP3 [Quality Focus]

In some cases, you don’t want the original AAC or Opus codec. You prefer to extract audio from a video to MP3 for compatibility with older devices or a specific platform/software. Considering that MP3 is a lossy format, you can use the LAME MP3 encoder (libmp3lame) to set a high bitrate. That helps get the highest quality MP3.

Command Line Example:

ffmpeg -i input.mp4 -vn -ab 320k output.mp3

-ab 320k: Tells FFmpeg to set the audio bitrate to 320 kbps.

Part 4. How to Extract a Specific Segment of Audio from Video in FFmpeg

When you extract audio from a large video, such as a film, lecture, or meeting, you often don’t need the whole audio track. You want to get a specific segment, the necessary or important part, of audio.

FFmpeg lets you easily trim audio using time stamps: -ss (start time) and -to (end time) or -t (duration) parameters.

Command Line Example:

ffmpeg -ss 00:01:00 -to 00:02:30 -i input.mp4 -vn output.mp3

-ss 00:01:00: Starts the audio extraction at the 1-minute mark.

-to 00:02:30: Stops the audio extraction at the 2-minute and 30-second mark.

Part 5. Best Alternative to FFmpeg to Extract Audio

FFmpeg is an indispensable tool for professionals and developers. However, this powerful command-line utility is not ideal for most casual users. If you prefer a graphical interface and are unsatisfied with commands, Aiseesoft Video Converter Ultimate is an excellent alternative for audio extraction and other conversion/editing/enhancement needs.

Free DownloadFor Windows

Secure Download Badge100% Secure. No Ads.

Free DownloadFor macOS

Secure Download Badge100% Secure. No Ads.

Key Features of the FFmpeg Alternative

  • Supports all video and audio formats. Extracts audio to MP3 or another format for your needs.
  • Lossless and fast Conversion: Supports over 1000+ formats with 120x speed.
  • Built-in editor: Selects the segment you want to extract with surgical precision and offers commonly used editing functions, like removing background noise from audio.
  • AI smart audio extraction. Dedicated AI tools to extract audio, get clear vocals, and isolate background music based on your needs.

Steps to Extract Audio from Video

Step 1.
Download this FFmpeg alternative and launch it. Import your video(s) by clicking Add Files. It supports batch processing to handle multiple videos simultaneously.
VCU Add File
Step 2.
Aiseesoft designs options to manage, view, edit, or enhance the source video file.
VCU Buttons
Step 3.
Go to the Audio category from Output Format and then select a desired audio format.
Output Format Each Row
Step 4.
Before extracting audio, you can edit the original file and turn on GPU acceleration. After that, click the Convert All button to confirm your action.
Start Conversion

Part 6. FAQs on How to Extract Audio from Video Using FFmpeg

Question 1. Is FFmpeg the best way to extract audio?

For most general users, FFmpeg is not the best way for audio extraction. However, if you are comfortable with command-line interfaces, its fast-processing speed, precision, and power are unmatched.

Question 2. Can FFmpeg convert videos with multiple audio tracks?

Yes, FFmpeg can handle multi-track files like MKV. When you use FFmpeg to extract audio from a multi-track video, it will typically convert one video stream and one audio stream, the first ones by default. To override this, you use the -map flag to tell FFmpeg specific stream(s) you want to output.

Question 3. Is the FFmpeg extract audio way completely free?

Yes, the FFmpeg audio extraction way is 100% free. This command-line tool is open source, with no hidden subscriptions. It is developed and maintained by a global community of volunteers.

Conclusion

This guide shares several helpful commands for you to extract audio from video using FFmpeg. These commands can easily handle most audio extraction needs. Again, if you are comfortable with this command-line tool, you can use the exact commands to get audio with ease.

Disqus Comment IconLeave your comment and join our discussion
Video Converter Ultimate Aiseesoft Video Converter Ultimate Box Image

Video Converter Ultimate is excellent video converter, editor and enhancer to convert, enhance and edit videos and music in 1000 formats and more.

Free DownloadFor Windows

Secure Download Badge100% Secure. No Ads.

Free DownloadFor macOS

Secure Download Badge100% Secure. No Ads.

Back to top