Re: How to convert pesky .m4a to .mp3
The easy way:
It should be noted that these scripts may be useful in special cases, but that most people looking in the Ubuntu forums for a way to convert .m4a files to .mp3 will probably prefer to use SoundConverter:
apt-get install soundconverter lame
Give it a folder, set the options, and it will find all files needing to be converted, and will preserve the tags.
Re: How to convert pesky .m4a to .mp3
Mp3's are about as archaic as MS Windows.
M4a's: Welcome to the future!
[rant]Mp3's are not popular because it's a good format. That's like saying everyone uses Windows so it must be a good OS.[/rant]
Re: How to convert pesky .m4a to .mp3
To use these scripts, first check that you are using Nautilus as your file manager, then:
- Create a new text file in Gedit or whatever you use for that purpose
- Paste the script code into that file
- Save it into /home/myhome/.gnome2/nautilus-scripts (where "myhome" is your username.
- Navigate to the file, right-click on it, select Properties, Permissions, and check "Allow executing file as program."
To use the script, right click in the folder in which you have the files you wish to convert. Choose "Scripts" and then select the script you wish to run.
BTW, always back up the songs before attempting a conversion, as many of these scripts delete the originals as the last step. If something goes haywire, you will still have the original files. The original script in this thread is a good example. It cost me a full CD of files.
Re: How to convert pesky .m4a to .mp3
Quote:
Originally Posted by
rduke15
The easy way:
It should be noted that these scripts may be useful in special cases, but that most people looking in the Ubuntu forums for a way to convert .m4a files to .mp3 will probably prefer to use SoundConverter:
apt-get install soundconverter lame
Give it a folder, set the options, and it will find all files needing to be converted, and will preserve the tags.
Sound Converter does not seem to accept M4A files... :(
Re: How to convert pesky .m4a to .mp3
It's 2 am in my country and still can't sleep. So I optimized your script with "great UI ::LOL::"
Quote:
#!/bin/bash
y=`pwd`
fileName="$1"
if [ -z "$fileName" ]; then
echo "Process in current folder"
jef=ls *.m4a|tail -1
if [ -f $jef ]; then
echo "Next to process"
else
echo "File not found at first"
exit
fi
else
if [ -d "$fileName" ]; then
cd "$fileName"
jef=ls *.m4a|tail -1
if [ -f $jef ]; then
echo "Process in target folder"
else
echo "File not found at second"
exit
fi
else
echo "Folder not found"
exit
fi
fi
for i in *.m4a
do
#convert ke wav
mplayer -ao pcm:file=tes.wav "$i"
#namening
name=`echo $i |sed -e 's/m4a/mp3/'`
#convert ke mp3
lame -h -b 192 tes.wav "$name"
#remove wav-nya
rm tes.wav
done
cd $y
Just my 2 cents
Re: How to convert pesky .m4a to .mp3
a simple script that converts m4a to mp3...
for i in *.m4a; do mplayer -quiet -ao pcm:fast:waveheader:file=output.wav "$i" && lame --quiet -h -b 320 output.wav "$i.mp3" && mv "$i.mp3" "`echo "$i.mp3" | sed -e 's/m4a.mp3/mp3/'`" && rm output.wav && rm "$i"; done
Re: How to convert pesky .m4a to .mp3
Quote:
Originally Posted by
dbeckham32
You should try downloading a program called "gnormalize". It will allow you to convert one or an entire directory of MP4 files into MP3 or another output format. Works great, and has a graphical interface to boot.
http://gnormalize.sourceforge.net/
How does one install this? I'm a total noob and need explicit instructions/code. the code on the dl page didn't work. I only just figured out that this is why I'm not getting half my music.
Re: How to convert pesky .m4a to .mp3
Quote:
Originally Posted by
Airycat
How does one install this? I'm a total noob and need explicit instructions/code. the code on the dl page didn't work. I only just figured out that this is why I'm not getting half my music.
Near the bottom of the http://gnormalize.sourceforge.net/ page there is:
To install gnormalize, with root privilege, execute the bash script command:
tar zxvf gnormalize-version.tar.gz
cd gnormalize-version/
./install
So you must download it (click on the link on that page), open a terminal window (google it), then type the commands as you see them. The first extracts files out of the "gnormalize-version.tar.gz" archive. The second changes your current directory into the newly extracted one. The third run installs the software.
--
qneill