How to extract an audio track from an MP4 video file on Windows

.mp4aacaudiomultimedia

Having an MP4 video file I'd like to get just the audio track of it. What makes my question different from the others is that I don't want to convert it (like to MP3 or anything) – I'd prefer to keep exactly the same AAC audio stream that is embedded in the MP4 file without recoding.

I use to play such MP4 files with an audio player (foobar2000, which just ignores the video track in it) on my desktop PC but I'd like to strip the video track off to save space and battery of my handheld.

Best Answer

With FFmpeg, which you can download as a static build (no installation needed) for every major OS:

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

vn and sn disable video and subtitle streams, if there are any. -c:a copy tells it to copy the audio bitstream as-is, without re-encoding the file. This will take less than a few seconds.