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.

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