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.m4aWhen to use it
- fast extraction
- keeping original audio quality
- MP4 audio tracks
How it works
- Upload a video file with an audio track.
- Run the copy-based FFmpeg command.
- Download the extracted audio file.
Option reference
| Option | What it does |
|---|---|
-vn | Ignores the video stream. |
-acodec copy | Copies 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.