ffmpeg -i input.mp4 -vn -sn -c:a copy output.m4a

Category: Media & Conversion

ffmpeg -i input.mp4 -vn -sn -c:a copy output.m4a

Extract audio to M4A without re-encoding

Copies the audio stream into an M4A container (file format that holds streams) without re-encoding, so quality is untouched and the job is nearly instant. -vn drops video and -sn drops subtitles. The audio codec must be one M4A supports, like the AAC that is common in MP4 files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.