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-53Than you can convert your file via:
ffmpeg -v 5 -y -i inputfile.mp4 -acodec libmp3lame -ac 2 -ab 192k outputfile.mp3For 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.mp3This should look something like this:

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