Skip to main content
Extract the audio track from a video and save it as MP3. Useful when you want to strip audio out for transcription, podcast generation, or separate audio processing.

Code

How the FFmpeg command works

  • -i {{in_1}} — input video URL
  • -vn — discard the video stream (audio only)
  • -c:a libmp3lame — encode audio as MP3
  • -q:a 2 — variable-bitrate quality (0 = best, 9 = worst; 2 is a good balance)
  • {{out_1}} — output file (audio.mp3)
To export as WAV, rename out_1 to audio.wav and drop the -c:a libmp3lame -q:a 2 flags — FFmpeg picks the codec from the extension.

Response