Extract the audio from an MP4 video file using avconv

At times, we would like to extract the audio from an MP4 video file. To do this in Linux, open a terminal window in Ubuntu and use the utility called avconv as follows:
$ avconv -i MyVideoFile.mp4 -vn -acodec copy MyAudioFile.aac <enter>

where, MyVideoFile.mp4 is your mp4 video file. You can then listen to the MyAudioFile.aac on any music player.

avconv is the replacement for ffmpeg on Ubuntu 14.04. To install avconv, do the following:
$ sudo apt-get install libav-tools <enter>

Remember, avconv is as powerful as ffmpeg.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s