FFmpeg recipe

FFmpeg: Extract Audio as MP3 from Any Video

When you need MP3 specifically (for podcasts, voice memos, ringtones), re-encode the source audio. 192 kbps is sonically transparent for music; 128 kbps for voice.

Command

ffmpeg -i input.mp4 -vn -c:a libmp3lame -b:a 192k -y output.mp3
Prefer no terminal?
Use the Video to MP3 in your browser
Open Video to MP3

What each flag does

-iInput file. Can be a video, audio, or image. Repeat for multiple inputs.
-vnStrip video (no video in output) — useful for audio-only extraction.
-b:aAudio bitrate, e.g. 192k.
-c:a libmp3lameMP3 encoder. Pin this rather than letting ffmpeg pick.

Notes & gotchas

  • For voice-only content, drop to 128k or even 96k to save space.
  • Add -ar 44100 -ac 2 to force 44.1 kHz stereo if the source has unusual sample rate / channel layout.

Related recipes