Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got an m4a video file and would like to extract the sound. How can I do that? Running Arch Linux.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

One simple way to do it is, if you have mplayer:

mplayer video.m4a -ao pcm

the audio will be in a file called `audiodump.wav'

You can encode that to an mp3 with `lame -V2 audiodump.wav'

share|improve this answer

Interesting – typically the .m4a (MP4 Audio) extension is not used for files with video tracks...

This will extract the audio track in its original form (-acodec copy) and discard video (-vn):

ffmpeg -i video.m4a -acodec copy -vn audio.m4a
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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