mp4 to mp3 conversion
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.
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
Make sure that you have ffmpeg and libmp3lame installed.
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.
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:
Choose your files and select your options and click convert:
A terminal window opens up to show you the conversion process (mine is semi-transparent):
After completion, that's when you get the 'Press enter to continue' text:
Finally, navigate to your folder and get your mp3 converted files:
Related videos on Youtube
kaddyinvincible
Updated on September 18, 2022Comments
-
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 about 11 yearsWhat Ubuntu applications have you tried and what problems did you encounter? Please add these details to your question if you could.
-
Rinzwind about 11 yearsif you can do 1 in command line you are 1 for/next loop away from doing multiple ;)
-
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 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 about 11 yearsWinFF needs to be updated and it appears to have some conflicting settings that when converting force conversion to stop.
-
thorstorm almost 10 years
-
-
kaddyinvincible about 11 yearsI 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 about 11 yearsSee my edit please. It clearly shows you can convert mp4 to mp3