Linux | Ubuntu | avtools to the rescue | convert audio-video to audio only (MP3)

Sometimes, you have a nice Audio-Video from which you want to extract only the audio as a .wav file or a .mp3 file. This can be done in Linux with libav-tools

Install libav-tools via apt-get

sudo apt-get install libav-tools
[sudo] password for rahulsaini:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libavdevice53 libavfilter3 libavresample1
Suggested packages:
frei0r-plugins
…..
……
Preparing to unpack …/libavdevice53_6%3a9.18-0ubuntu0.14.04.1_i386.deb …
Unpacking libavdevice53:i386 (6:9.18-0ubuntu0.14.04.1) …
…….
Setting up libav-tools (6:9.18-0ubuntu0.14.04.1) …
Processing triggers for libc-bin (2.19-0ubuntu6.6) …
rahulsaini@rahulsaini-UBUNTU:~$ avconv -i /home/rahulsaini/Downloads/AOC.3gp -acodec mp3 -ar 22050 -f wav /home/rahulsaini/Downloads/AOC.mp3

Advertisements