Converting mp4 to mp3 in Ubuntu
Converting mp4 files to mp3 can easily be done via the terminal. First install ffmpeg and the necessary codecs by typing:
sudo apt-get install libav-sudo apt-get install ffmpeg libavcodec-extra-52
sudo apt-get update
sudo apt-get install ffmpeg libavcodec-extra-53
Than you can convert your file via:
ffmpeg -v 5 -y -i inputfile.mp4 -acodec libmp3lame -ac 2 -ab 192k outputfile.mp3
For example go to the video folder and convert your file like this:
cd Videos
ffmpeg -v 5 -y -i writelikethewind.mp4 -acodec libmp3lame -ac 2 -ab 192k writelikethewind.mp3
This should look something like this:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGojLBUEwABi5FJ6_1zgQfB7nZ7U36idt80293kWrCn9velLxZZMP5sfYZLhaJIuiceI12Yz7Wcwleqt2szzLZL0knb_gU65wvom4rNfa2HD3B6ft9TpvC2G8c_NBdp54g-W5a3VAk98g/s640/Screenshot+from+2012-07-01+11:55:26.png)
Note that I use ls to get a listing of alle the files in the current directory.
Also read my article on converting between different video format.
alternative link download