FFmpeg Cookbook
M4A to MP3 with FFmpeg — Bitrate, VBR, and Quality
Convert M4A (usually AAC, sometimes ALAC) audio to MP3 with FFmpeg using libmp3lame. Covers constant bitrate (-b:a 192k), variable bitrate (-q:a 2), choosing the right quality, and why M4A to MP3 always re-encodes. Practical, runnable commands.
MP4 to MP3 with FFmpeg — Extract Audio to MP3 the Right Way
Extract and convert MP4 audio to MP3 with FFmpeg. Use libmp3lame with VBR (-q:a) or CBR (-b:a), strip the video with -vn, pick the right bitrate, trim sections, and fix common errors. Full troubleshooting and FAQ included.
Convert WAV to MP3 with FFmpeg — Bitrate and Quality Guide
Convert WAV to MP3 with FFmpeg using libmp3lame. Compare VBR (-q:a) and CBR (-b:a), choose a bitrate for quality vs. size, control mono/stereo and sample rate, and fix common conversion errors. Full troubleshooting and FAQ.
Detect Silence — Find Silent Sections with the silencedetect Filter
Learn how to use FFmpeg's silencedetect filter to get the start time, end time, and duration of silent sections in audio files and videos. Covers setting the threshold (noise) and minimum duration, plus how to read the output, with primary sources.
Audio Fade-In and Fade-Out with the afade Filter
Create smooth audio fades in FFmpeg with the afade filter. Covers start time, duration, curve types, applying fades to video audio tracks, and combining fade-in with fade-out in one command.
Loudness Normalization — EBU R128 with the loudnorm Filter
Normalize audio to EBU R128 standard with FFmpeg loudnorm filter. Single-pass and two-pass measurement modes. Key parameters: I (integrated LUFS), TP, and LRA.