FFmpeg MP4 to MP3 Command Guide (VBR, 320 kbps & Zero-Install Browser Tool)
Exact FFmpeg commands to convert MP4 to MP3 with high VBR quality (-q:a 2), 320 kbps CBR, or stream copy—plus how to extract MP3 privately in your browser.
Nov 29, 2026AI FFmpeg
If you need to extract audio from an MP4 video as MP3, the recommended FFmpeg command uses -vn (skip video) and libmp3lame with high variable bitrate quality:
ffmpeg -i video.mp4 -vn -codec:a libmp3lame -q:a 2 audio.mp3
Need to convert a file right now without opening a terminal? Run the exact same FFmpeg command locally inside your browser with MP4 to MP3 Converter or Extract Audio from Video (for MOV, MKV, WebM, and AVI). Your file is never uploaded.
Quick Command Comparison
| Goal | FFmpeg Command | Best For |
|---|---|---|
| Balanced quality (recommended) | ffmpeg -i input.mp4 -vn -codec:a libmp3lame -q:a 2 output.mp3 | Music, lectures, podcasts (~190 kbps VBR) |
| Maximum MP3 bitrate | ffmpeg -i input.mp4 -vn -codec:a libmp3lame -b:a 320k output.mp3 | Strict 320 kbps CBR requirements |
| Small voice recording | ffmpeg -i input.mp4 -vn -codec:a libmp3lame -b:a 128k output.mp3 | Speech memos, meetings, transcription |
| Keep original AAC (no re-encode) | ffmpeg -i input.mp4 -vn -c:a copy output.m4a | Lossless extraction when M4A works |
What Each FFmpeg Flag Does
-i input.mp4: Specifies the source video file.-vn: Disables the video track so FFmpeg only processes audio.-codec:a libmp3lame: Selects the LAME MP3 audio encoder.-q:a 2: Sets LAME VBR quality level 2 (typically 170–210 kbps). It preserves detail better than fixed 128 kbps while keeping files smaller than 320 kbps CBR.-b:a 320k: Forces constant 320 kbps bitrate when a platform rejects variable bitrate MP3 files.
Common Troubleshooting
- Error: Output file does not contain any stream: The MP4 video has no audio track to extract.
- Want to avoid lossy re-encoding? Most MP4 videos store AAC audio. Saving as
.m4awith-c:a copyfinishes in a fraction of a second without transcoding. - Noisy speech after extraction? Clean the extracted file directly in your browser using Remove Background Noise and Normalize Audio Volume.
Build Custom Commands
Need additional flags for trimming, loudness, or format conversion? Try our interactive FFmpeg Command Generator.