FFmpeg API Cloud LogoFFmpeg API Cloud

mp4 to mp3 ffmpeg

Convert MP4 to MP3 with FFmpeg

If you need to convert MP4 to MP3 with FFmpeg, the usual goal is to turn a video file into a lightweight audio deliverable for playback, transcription, or ingestion. This page shows the practical FFmpeg command, the matching FFmpeg API request, and an online tool you can test in the browser.

FFmpeg CLI

How to convert MP4 to MP3 in FFmpeg

A common FFmpeg MP4-to-MP3 workflow drops the video stream, selects an MP3 encoder, and writes the output as a standalone audio file.

FFmpeg MP4 to MP3 command

Click any part of the command to see what it does.

FFmpeg MP4 to MP3 command

ffmpeg

This runs the FFmpeg binary. The rest of the command defines the MP4 input, removes the video stream, and writes an MP3 file.

API

Use the same MP4 to MP3 workflow through the FFmpeg API

If you need MP4-to-MP3 conversion inside your product, app, or backend workflow, the FFmpeg API gives you a faster path than maintaining your own media conversion infrastructure. You can send one args-based request and reuse the same workflow in production.

Request

curl -X POST https://ffmpeg-api.cloud/v1/jobs \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "ffmpegArgs": [
    "-y",
    "-i",
    "{{input}}",
    "-vn",
    "-acodec",
    "libmp3lame",
    "{{output}}"
  ],
  "inputs": {
    "input": {
      "type": "url",
      "url": "https://example.com/input.mp4"
    }
  },
  "outputs": {
    "output": {
      "fileName": "audio-output.mp3"
    }
  }
}'

Response

{
  "jobId": "job_01hxyz...",
  "status": "queued",
  "runtimeSeconds": 0,
  "creditsCharged": 0,
  "createdAt": "2026-04-14T10:30:00.000Z"
}

Online tool

Try this FFmpeg API MP4 to MP3 tool online

Upload an MP4, run the conversion directly in the browser, and inspect the matching FFmpeg API request before wiring it into your own app or backend.

Live playground

Convert MP4 to MP3 with FFmpeg

Convert a source MP4 into MP3 audio with an args-based FFmpeg API request.

Upload a file to generate a temporary source URL

Source URLs are valid for 1 hour. Max file size: 2GB.

Generated FFmpeg API request

This request is initialized from the current template, and you can edit it before running.

Use public URLs for inputs directly in this request. If you upload files above, copy the generated source URL into the request. In ffmpegArgs, each {} placeholder should match a key in inputs or outputs. For example, {} should match inputs.input, {} should match inputs.video, and {} should match outputs.output.

Use cases

Common ways to use FFmpeg MP4 to MP3 conversion

MP4-to-MP3 conversion is useful when you want a lightweight audio deliverable from an existing video file.

Create audio-only versions of recorded videos

Turn webinars, interviews, classes, or product walkthroughs into MP3 files for easier listening and distribution.

Prepare source audio for ingestion

Convert MP4 uploads into MP3 when your transcription, moderation, or indexing workflow expects a simpler audio input.

Reduce delivery size for audio playback

Use MP3 output when you need a compact audio file for feeds, downloads, or internal content pipelines.

FAQ

FFmpeg MP4 to MP3 FAQ

Common questions about converting MP4 to MP3 with FFmpeg and moving the same workflow into the FFmpeg API.

Related templates

Other FFmpeg templates

Explore other FFmpeg templates for audio extraction, metadata inspection, trimming, and more.