LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Application to change the bitrate for MP3 files. (https://www.linuxquestions.org/questions/linux-software-2/application-to-change-the-bitrate-for-mp3-files-485826/)

morghanphoenix 09-21-2006 08:26 PM

Application to change the bitrate for MP3 files.
 
I have about 40 gigs of MP3 files that were encoded between 256 & 320 bitrates and I'm almost out of space. I've only gone through a third of my music collection that fit in my space before, but it was all done at 128 then, so I'm looking for something that can take a typical iTunes style music folder and convert all the files bitrates to save space. It would be best if it could handle the contents of subfolders because they go three levels deep (MUSIC/ARTIST/ALBUM/files.mp3) but I could handle lumping them all into one folder for conversion if necessary. Okay, maybe I should go to sleep now, been up too long and I'm rambling.

rickh 09-21-2006 08:40 PM

I have done a couple such projects and got help here. The last post is a few links to other times I got additional similar help.

morghanphoenix 09-21-2006 09:19 PM

Thanks, all my searches got me was mBox which I got installed but can't get to load. I really hate installing from source, eveytime I see a file ending in tar I get the sudden urge to start chain smoking.

morghanphoenix 09-21-2006 09:36 PM

on seccond though
 
My recent attempts only reinforce the idea that I'm command line/script retarded, any program suggestions?

mrclisdue 09-22-2006 07:04 AM

download ffmpeg, and run this script in each directory:

Code:

for i in *.mp3; do \
ffmpeg -i "$i" -acodec mp3 -ac 2 -ab 192 "${i%mp3}mp3"; \
done

beside the 'ab' is the bitrate you want.

this is just a basic conversion script, so you're going to be left with both the source and destination files - someone with scripting savvy may be able to tweak it so that it recurses and deletes original files, but it's a start.

i would also think that 'sound converter' would accomplish the same thing with a gui...

cheers,


All times are GMT -5. The time now is 11:41 AM.