Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 36 down vote accepted

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.

share|improve this answer
avconv worked with the same arguments. – Robert Siemer May 9 '14 at 18:11
@RobertSiemer Yes – avconv is a fork of ffmpeg. You may be interested in reading this Stack Overflow post. – slhck May 9 '14 at 18:13

VLC can also do this, which is handy as you probably already have it on your system:

share|improve this answer

protected by slhck Dec 19 '13 at 7:14

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.