Audacity Extract Audio from Video: How-To
In this article
Yes, you can extract audio from video using Audacity, but it requires a separate tool to get the audio track out of the video file first. Audacity itself does not import video files directly, so the standard workflow is to use a free converter like FFmpeg (which Audacity can integrate with) or a dedicated video-to-audio converter, then edit or export the resulting audio in Audacity.
Why Audacity Can't Open Video Files Directly
Audacity is an audio editor, not a video editor. Its core purpose is recording, editing, and mixing sound. Video files (like MP4, MOV, or AVI) contain both a video stream and one or more audio streams, wrapped in a container format. Audacity's audio engine has no code to decode the video portion, so it simply cannot open these files natively. This is a deliberate design choice that keeps the program lightweight and focused on audio work.
However, Audacity does offer a built-in workaround: the FFmpeg library. FFmpeg is a powerful, open-source multimedia framework that can decode and encode almost any audio or video format. When you install the FFmpeg library into Audacity, you enable it to import audio from video files. This is the most direct method, but it requires a one-time setup.
Method 1: Using Audacity's Built-in FFmpeg Import
This is the cleanest way to extract audio without leaving Audacity. The steps are:
- Download the FFmpeg library for Audacity from the official Audacity website (look for the “FFmpeg” section in the download page).
- Install FFmpeg by running the downloaded installer. Note the installation path (e.g., C:\Program Files\FFmpeg).
- Open Audacity. Go to Edit > Preferences > Libraries.
- Click the Locate button next to FFmpeg and select the
avformat.dllfile from the FFmpeg installation folder. - Restart Audacity. Now, go to File > Import > Audio and select your video file. Audacity will import the audio track(s) as a new track.
- You can now edit the audio or simply export it as an audio file (e.g., MP3, WAV) via File > Export.
This method works for most common video formats (MP4, MOV, MKV, etc.) and preserves the original audio quality. If you have multiple audio tracks in the video, Audacity will import them as separate tracks.
Method 2: Using a Separate Converter (No FFmpeg Setup)
If you prefer not to install FFmpeg, or if the FFmpeg import fails, you can use a standalone video-to-audio converter. Many free, open-source tools exist for this purpose. The general workflow is:
- Download and install a video-to-audio converter (e.g., VLC Media Player, HandBrake, or a dedicated online converter).
- Open the converter and select your video file.
- Choose an audio output format (MP3, WAV, FLAC, etc.) and bitrate.
- Convert the file to an audio-only file.
- Open the resulting audio file in Audacity for any further editing.
This method is more straightforward for beginners, but it creates an intermediate file, which takes extra disk space and may slightly degrade quality if you use a lossy format like MP3. If you use a lossless format like WAV or FLAC, there is no quality loss.
Common Problems and Solutions
Even with the correct setup, you might run into issues. Here are the most common ones and how to fix them:
- “FFmpeg not found” error: This means Audacity cannot locate the library. Re-check the path in Preferences > Libraries. Make sure you downloaded the correct version (32-bit vs 64-bit) that matches your Audacity installation.
- No audio imports: Some video files have unusual audio codecs (e.g., AC3, DTS). FFmpeg usually handles these, but if not, try converting the video to a standard format (like MP4 with AAC audio) first using a converter.
- Audio is out of sync: This can happen if the video has a variable frame rate. Try using a converter that can handle VFR, or use the “constant frame rate” option in HandBrake before extracting.
- Imported audio is silent: Check if the video actually has an audio track. Some screen recordings or videos may have no audio. Also, ensure the track is not muted in Audacity (click the Mute button on the track).
Choosing the Right Export Format
After extracting the audio, you'll likely want to save it. The format you choose depends on your use case:
- WAV or AIFF (lossless): Best for editing, archiving, or when you need the highest quality. Files are large.
- FLAC (lossless compressed): Good balance of quality and file size, but not as universally supported as MP3.
- MP3 (lossy): Universally compatible and small. Use a high bitrate (192-320 kbps) for good quality.
- OGG Vorbis or AAC: Good alternatives to MP3 with better compression at the same bitrate.
For most purposes, exporting as a 320 kbps MP3 is a safe choice. If you plan to edit the audio further in Audacity, keep it as WAV until you're done, then export to a compressed format.
Is It Legal to Extract Audio from Video?
Generally, yes, if you own the video or have permission from the copyright holder. Extracting audio from a video you made yourself (e.g., a home movie or a recording of your band) is perfectly fine. For copyrighted content like movies or music videos, extracting audio for personal use (e.g., to listen to a soundtrack) is often considered fair use in many jurisdictions, but redistributing that audio without permission is illegal. Always respect copyright laws and the terms of service of the platform where you obtained the video.
Frequently Asked Questions
Can Audacity extract audio from YouTube videos?
No, not directly. Audacity cannot open URLs. You must first download the video from YouTube (using a tool that allows it) and then import the downloaded file into Audacity. Be aware that downloading YouTube videos may violate YouTube's terms of service, and you should only do so for content you have permission to download.
Does Audacity preserve the original audio quality?
When you import via FFmpeg, Audacity reads the audio data without any loss, so the quality is identical to the source. When you export, the quality depends on the format you choose. Lossless formats (WAV, FLAC) preserve all data; lossy formats (MP3, AAC) discard some data, which can reduce quality if you use low bitrates.
Can I extract audio from a video on Mac or Linux?
Yes, Audacity runs on Windows, macOS, and Linux. The FFmpeg installation process is similar on all platforms, though the file paths differ. On macOS, you may need to use a package manager like Homebrew to install FFmpeg. On Linux, you can install it via your distribution's package manager (e.g., sudo apt install ffmpeg).
What if my video has multiple audio tracks (e.g., different languages)?
When you import a video with multiple audio tracks, Audacity will import them all as separate tracks. You can then mute or delete the ones you don't want and export the desired track. This is useful for extracting a specific language track from a movie.
Is there a way to extract audio without installing any software?
Yes, you can use online video-to-audio converters that run in your browser. However, these often have file size limits, may require uploading your video to a third-party server (privacy concern), and may not offer the same quality control as local tools. For sensitive or large files, local software is safer.