Extract audio stream from a video file using ffmpeg

To extract the audio stream from a video file using ffmpeg, open a terminal window and enter the following command:

$ ffmpeg -i file.avi -vn -ab 256k -ar 48000 -y file.mp3 <enter>

Note that the values 256 and 48000 in the above example can be changed per convenience.