CGJU
CGJU Tool Net
June 12, 2026 Β· 4 min read

Audio Extraction Principle

MP4 to MP3 conversion is essentially a process of audio extraction and re-encoding. MP4 is a container format that can contain multiple data streams such as video streams, audio streams, and subtitle streams. When we convert MP4 to MP3, we are actually extracting the audio data from the MP4 container and then encoding it into MP3 format.

Audio Encoding in MP4

Audio in MP4 files typically uses the following encoding formats:

  • AAC: The most common MP4 audio encoding, Advanced Audio Coding
  • MP3: Some MP4 files may also contain MP3 audio
  • AC-3: Dolby Digital audio, commonly found in movies
  • DTS: Another cinema-grade audio encoding

In most cases, the audio in MP4 is in AAC format. Converting to MP3 requires lossy-to-lossy re-encoding, which will result in some quality loss. Understanding this is important for choosing the appropriate bitrate.

Bitrate Selection

Bitrate is the most important factor affecting MP3 sound quality and file size. The higher the bitrate, the better the sound quality, but the larger the file. Choosing the right bitrate requires finding a balance between sound quality and file size.

320kbps - Highest Quality

320kbps is the highest bitrate supported by the MP3 format, with sound quality close to CD level, suitable for scenarios with high sound quality requirements.

  • Applicable Scenarios: Music collections, high-quality listening, audiophile users
  • File Size: Approximately 2.4MB per minute, about 12MB for a 5-minute song
  • Sound Quality Evaluation: Most people cannot distinguish the difference from CD

256kbps - High Quality

256kbps is a good balance point, with excellent sound quality but much smaller files than 320kbps.

  • Applicable Scenarios: Daily music enjoyment, portable device storage
  • File Size: Approximately 1.9MB per minute, about 9.5MB for a 5-minute song
  • Sound Quality Evaluation: The vast majority of people cannot tell the difference from 320kbps

192kbps - Standard Quality

192kbps is one of the most commonly used bitrates, with good sound quality and moderate file size.

  • Applicable Scenarios: Regular music enjoyment, online streaming, speech content
  • File Size: Approximately 1.4MB per minute, about 7MB for a 5-minute song
  • Sound Quality Evaluation: Satisfactory for average listeners, slightly less detail richness

128kbps - Economy Quality

128kbps was the mainstream bitrate for early internet music, now mainly used for speech content and scenarios with limited storage space.

  • Applicable Scenarios: Audiobooks, podcasts, voice courses, low-capacity devices
  • File Size: Approximately 0.96MB per minute, about 4.8MB for a 5-minute song
  • Sound Quality Evaluation: Music details are lost, but speech is perfectly adequate

VBR vs CBR

There are two main bitrate control methods for MP3 encoding: VBR (Variable Bitrate) and CBR (Constant Bitrate). Understanding their differences is important for achieving the best quality-to-file ratio.

CBR - Constant Bitrate

CBR (Constant Bitrate) means the entire audio file uses the same bitrate. Regardless of whether the audio content is complex or not, the amount of data per second is fixed.

  • Advantages: Precise file size control, good compatibility, fast encoding speed
  • Disadvantages: Insufficient quality in complex segments, wasted bitrate in simple segments
  • Applicable Scenarios: Live streaming, scenarios requiring precise file size
ffmpeg -i input.mp4 -c:a libmp3lame -b:a 192k output.mp3

VBR - Variable Bitrate

VBR (Variable Bitrate) dynamically adjusts the bitrate according to the complexity of the audio content. Complex segments use higher bitrates, and simple segments use lower bitrates.

  • Advantages: Better sound quality at the same file size, more reasonable quality distribution
  • Disadvantages: File size cannot be precisely predicted, very few devices are incompatible
  • Applicable Scenarios: Music collections, local playback, pursuing quality-to-size ratio

Using the VBR mode of the LAME encoder, quality is controlled by the -q:a parameter, with a value range of 0-9, smaller values mean higher quality:

ffmpeg -i input.mp4 -c:a libmp3lame -q:a 2 output.mp3

VBR Quality Level Reference

  • -q:a 0: Highest quality, approximately 240-260kbps, close to 320kbps CBR
  • -q:a 2: High quality, approximately 190-210kbps, recommended setting
  • -q:a 4: Standard quality, approximately 140-160kbps
  • -q:a 6: Medium quality, approximately 100-120kbps
  • -q:a 9: Lowest quality, approximately 40-80kbps

ID3 Tag Addition

ID3 tags are metadata stored in MP3 files that contain song information such as song title, artist, album, cover image, etc. Adding complete ID3 tags allows music players to better manage and display music information.

Add Basic Tags

Use FFmpeg's metadata parameter to add ID3 tags:

ffmpeg -i input.mp4 -c:a libmp3lame -q:a 2 \
  -metadata title="Song Title" \
  -metadata artist="Artist" \
  -metadata album="Album Name" \
  -metadata year="2026" \
  -metadata track="1/10" \
  -metadata genre="Pop" \
  output.mp3

Add Cover Image

MP3 files can embed cover images to display album art in players:

ffmpeg -i input.mp4 -i cover.jpg -c:a libmp3lame -q:a 2 \
  -c:v mjpeg -map 0:a -map 1:v \
  -metadata:s:v title="Album cover" \
  -metadata:s:v comment="Cover (front)" \
  output.mp3

Common ID3 Tag Fields

  • title: Song title
  • artist: Artist
  • album: Album name
  • album_artist: Album artist
  • track: Track number, e.g., "3/12"
  • date: Release year
  • genre: Genre
  • comment: Comments
  • lyrics: Lyrics

Batch Extraction

When there are a large number of MP4 files that need audio extraction, manual processing one by one is too inefficient. Below are several batch processing methods.

Windows Batch Script

Create a batch file extract_audio.bat:

@echo off
for %%i in (*.mp4) do (
    echo Extracting audio from "%%i" ...
    ffmpeg -i "%%i" -c:a libmp3lame -q:a 2 "%%~ni.mp3"
)
echo All done!
pause

Linux/macOS Batch Script

#!/bin/bash
for file in *.mp4; do
    echo "Extracting audio from $file ..."
    ffmpeg -i "$file" -c:a libmp3lame -q:a 2 "${file%.mp4}.mp3"
done
echo "All done!"

Extract Audio from Video Segment

Extract only a segment of audio from the video:

ffmpeg -ss 00:01:30 -t 00:03:00 -i input.mp4 -c:a libmp3lame -q:a 2 output.mp3

-ss specifies the start time, -t specifies the duration.

Sound Quality Comparison

Many people are concerned about the sound quality differences between different bitrates. Below are some objective and subjective comparison references.

Subjective Sound Quality Evaluation

Based on hearing tests of most people:

  • 320kbps vs Lossless: About 90% of people cannot distinguish the difference
  • 256kbps vs 320kbps: About 95% of people cannot distinguish the difference
  • 192kbps vs 256kbps: About 80% of people cannot distinguish the difference
  • 128kbps vs 192kbps: About 60% of people can hear the difference

Factors Affecting Sound Quality Perception

  • Playback Device: Good headphones or speakers make it easier to hear differences
  • Music Type: Classical music and symphonies make differences more noticeable than pop music
  • Listening Environment: Quiet environments make differences easier to hear than noisy environments
  • Personal Hearing: Trained ears are more sensitive

Selection Recommendations

  • Music Collection: Recommend VBR -q:a 0 or 320kbps CBR
  • Daily Enjoyment: Recommend VBR -q:a 2 or 192-256kbps CBR
  • Speech/Podcast: Recommend 128kbps or even lower
  • Limited Storage Space: VBR mode, adjust quality level according to space

FFmpeg Commands

Basic Extraction Command

The simplest audio extraction command, using default parameters:

ffmpeg -i input.mp4 output.mp3

CBR Mode with Specified Bitrate

ffmpeg -i input.mp4 -b:a 320k output.mp3

High Quality VBR Mode

ffmpeg -i input.mp4 -c:a libmp3lame -q:a 2 output.mp3

Extract Specific Audio Track

If the video has multiple audio tracks, select one of them:

ffmpeg -i input.mp4 -map 0:a:1 -c:a libmp3lame -q:a 2 output.mp3

0:a:1 indicates the second audio stream of the first file (index starts from 0).

Summary

MP4 to MP3 is one of the most common audio processing needs. By choosing the right bitrate and encoding mode, you can find the best balance between sound quality and file size. VBR mode is usually the best choice, as it provides better sound quality at the same file size.

If you don't want to install FFmpeg or memorize complex commands, you can use our MP4 to MP3 Online Tool, simply upload video files in your browser, select appropriate quality parameters, and extract audio with one click.

Related Recommendations

More great articles and practical tools

Want to Extract Audio Quickly?

Use our free MP4 to MP3 online tool, no software installation required, extract high-quality audio directly in your browser

Try Now ➑