mp4 to mp3 conversion

8,434

Solution 1

Sound Converter can convert Videos to Audio, and allows multiple files. It is the best program I have found to convert anything audio wise. It is installable from the Ubuntu software center.

When you run the program make sure to change your preferences, under the edit drop down menu, to what format you want to convert as well as many other settings.

Here is an example of converting a video into audio (MP4 to MP3) as you have requested.

enter image description here

Solution 2

A Nautilus Script Solution

#!/bin/sh
#Nautilus Script to convert selected MP4/M4A file(s) to MP3 format at highest quality using Variable Bit Rate
IFS_BAK=$IFS
IFS="
"
for filename in $@; do
file_name_in=$(basename "$filename")
file_name_out="$(basename "$filename" | sed 's/\.[^.]*$//').mp3"
file_to="$(echo "$filename" | sed 's/\.[^.]*$//').mp3"
(ffmpeg -loglevel quiet -y -i "$file_name_in" -acodec libmp3lame -aq 0 "$file_name_out") 2>&1 | zenity --progress --title "Converting..." --text "<b>From:</b><i> $filename </i>\n\n<b>To:</b><i> $file_to </i>\n" --pulsate --auto-close
done
fi
IFS=$IFS_BAK
  1. Make sure that you have ffmpeg and libmp3lame installed.

  2. Copy and paste the text block above in your text editor, save this new file in the Nautilus Scripts folder (e.g. ~/.local/share/nautilus/scripts) giving it a name like Convert MP4 to MP3, and make it executable.

  3. In Nautilus file manager, select the MP4 file(s) to be converted, right click, choose Scripts and then Convert MP4 to MP3.

You should get new MP3 files side by side with MP4 files shortly.

Solution 3

I have just converted six .mp4 to .mp3 using Winff 1.4.1 in Ubuntu 12.04, and it has worked smoothly.

The terminal window that opens up doesn't show errors but the conversion process and it will only tell you to 'Press enter to continue' after it's completed. Check the folder you chose as your 'output folder' for the mp3's.

Check screenshots below:

  1. Choose your files and select your options and click convert: enter image description here

  2. A terminal window opens up to show you the conversion process (mine is semi-transparent): enter image description here

  3. After completion, that's when you get the 'Press enter to continue' text: enter image description here

  4. Finally, navigate to your folder and get your mp3 converted files: enter image description here

Share:
8,434

Related videos on Youtube

kaddyinvincible
Author by

kaddyinvincible

Updated on September 18, 2022

Comments

  • kaddyinvincible
    kaddyinvincible over 1 year

    I have worked on multiple tools that convert a "mp4" file to "mp3" format, but what I am really interested in, is there a way I can convert multiple mp4 files to mp3 format in a single go.

    • Kevin Bowen
      Kevin Bowen about 11 years
      What Ubuntu applications have you tried and what problems did you encounter? Please add these details to your question if you could.
    • Rinzwind
      Rinzwind about 11 years
      if you can do 1 in command line you are 1 for/next loop away from doing multiple ;)
    • kaddyinvincible
      kaddyinvincible about 11 years
      @maggotbrain:i used WinFF but didn't work, it generates an error on terminal and says press enter to cont.
    • kaddyinvincible
      kaddyinvincible about 11 years
      @Rinzwind: Sir as far as i know all mp4 files ll be having different names so how will the loop work .can u please five an exmple
    • Weylin Schreck
      Weylin Schreck about 11 years
      WinFF needs to be updated and it appears to have some conflicting settings that when converting force conversion to stop.
    • thorstorm
      thorstorm almost 10 years
      You may use this script. Just change "*.wma" to "*.mp4".
  • kaddyinvincible
    kaddyinvincible about 11 years
    I have worked on this also but the problem is I need the output in .mp3 format no .wav format as it shows only .wav in preferences
  • Weylin Schreck
    Weylin Schreck about 11 years
    See my edit please. It clearly shows you can convert mp4 to mp3