Browser FFmpeg recipe

Extract Audio from Video Online with FFmpeg

Copy the original audio stream out of a video when the container supports it.

Command

Run this FFmpeg command

ffmpeg -i input.mp4 -vn -acodec copy audio.m4a

When to use it

  • fast extraction
  • keeping original audio quality
  • MP4 audio tracks

How it works

  1. Upload a video file with an audio track.
  2. Run the copy-based FFmpeg command.
  3. Download the extracted audio file.

Option reference

OptionWhat it does
-vnIgnores the video stream.
-acodec copyCopies the audio stream without re-encoding.

Practical notes

  • If the output fails because the audio codec is not compatible with M4A, use the MP4 to MP3 recipe instead.
  • Copy mode is faster than re-encoding because it preserves the original audio stream.

FAQ

Why is this faster than converting to MP3?

It copies the existing audio stream instead of decoding and encoding it again.

What if I need an MP3 file?

Use the MP4 to MP3 recipe, which re-encodes the audio into MP3 format.