Very Good FFmpeg
How it worksPricingCompareFAQDocs
Guide #3

Extract audio with FFmpeg

Audio extraction can be lossless when you copy the original stream, or normalized for broad use when you encode to MP3, AAC, or WAV.

Copy + paste this:

Create a compact audio file from a video.

ffmpeg -i input -vn -c:a libmp3lame -b:a 192k audio.mp3

When this is the right tool

Start by checking whether this operation matches the job you actually need.

Use this when

3 Good fit
  • You need audio for transcription, podcasts, previews, or moderation.

  • A video upload contains the source sound you need to process separately.

  • You need WAV for analysis or MP3/AAC for distribution.

Be careful when

2 Watch out
  • The video has multiple audio tracks and you have not picked the right one.

  • You need subtitles or metadata, not audio media.

Examples

Use these as starting points, then tune quality, size, and timing on real input files.

Extract MP3

Create a compact audio file from a video.

ffmpeg -i input -vn -c:a libmp3lame -b:a 192k audio.mp3

Command breakdown

input input
Reads this input file.
-vn
Drops video from the output.
-c:a libmp3lame
Sets the audio codec.
-b:a 192k
Sets the audio bitrate.
output audio.mp3
Writes this output file.

Extract WAV

Create a simple PCM WAV file for transcription or analysis.

ffmpeg -i input -vn -ac 1 -ar 16000 -c:a pcm_s16le audio.wav

Command breakdown

input input
Reads this input file.
-vn
Drops video from the output.
-ac 1
Sets the number of audio channels.
-ar 16000
Sets the audio sample rate.
-c:a pcm_s16le
Sets the audio codec.
output audio.wav
Writes this output file.

Helpful tips

These details prevent most bad outputs and confusing FFmpeg results.

Copy if the source codec is useful

`-vn -c:a copy` is fast and avoids quality loss, but the output extension must match the codec.

Use WAV for analysis

WAV is large, but simple for speech tools and signal processing.

Use MP3 or AAC for delivery

MP3 is widely accepted. AAC is common when the output stays near video workflows.

Related guides

Useful next steps when this operation is part of a larger workflow.

Trim video with FFmpeg

Learn FFmpeg trimming with fast stream-copy cuts, accurate re-encoded cuts, and timestamp basics.

Convert video format with FFmpeg

Learn how to convert MOV, MKV, WebM, and AVI files to MP4 with FFmpeg, when to copy streams, and when to re-encode.

Need to run this at scale?

Run the same FFmpeg commands through a hosted API.

Keep the FFmpeg command surface. Very Good FFmpeg handles machines, logs, long jobs, outputs, and webhooks.

Try free →Read API docs
Very Good FFmpegChecking status...
Product
  • How it works
  • Pricing
  • Comparison
  • FAQ
Developers
  • Documentation
  • API Reference
  • MCP Server
  • TypeScript SDK
  • Python SDK
Company
  • Contact
  • Sign in
  • Sign up
Legal
  • Terms
  • Privacy
Compare
  • vs Rendi
  • vs RenderIO
  • vs ffmpeg-api.com
  • vs FFmpeg Micro
  • vs AWS MediaConvert
  • vs Google Transcoder API
  • vs Self-Hosted FFmpeg
  • vs Cloudinary
Integrations
  • Zapier
  • Make
  • n8n
Use Cases
  • Video SaaS Platforms
  • Content Creators & UGC Platforms
  • AI Video Startups
  • Agencies & Freelancers
  • Podcasts & Audio Pipelines
Guides
  • Convert video format with FFmpeg
  • Compress video with FFmpeg
  • Extract audio with FFmpeg
  • Trim video with FFmpeg
  • Create video thumbnails with FFmpeg
  • Resize video with FFmpeg
  • Add subtitles with FFmpeg
Best APIs
  • Best Video Transcoding API (2026)
  • Best Video Compression API (2026)
  • Best Audio Extraction API (2026)
  • Best API for Trimming Video (2026)
  • Best Video Thumbnail API (2026)
  • Best Video Resizing API (2026)
  • Best API for Adding Subtitles to Video (2026)
  • Best FFmpeg API (2026)
© 2026 Very Good FFmpeg