LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-25-2006, 10:47 PM   #1
bgryderclock
Member
 
Registered: Mar 2005
Location: charlotte nc
Distribution: fedora -> debian / (x)ubuntu -> Slackware
Posts: 39

Rep: Reputation: 15
command to convert mp3s to lower bitrates?


I have many mp3s ripped at a high 320k bitrate stored in different subfolders divided by artist. i need to convert the 320k mp3s to a 192k bitrate

Is there a script/terminal command to convert the mp3s to lower bitrates and keep the file structure/tags intact?

what should i try? where should i look?
 
Old 08-26-2006, 01:55 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,198

Rep: Reputation: 76
lame is probably the tool you are looking for in respect of converting. there are rpms available, too. Can be downloaded from many sites. But if you want to keep the directory structure you have to write a shell/perl/python script, i guess.
cheers, j

Last edited by j-ray; 08-26-2006 at 01:59 AM.
 
Old 08-26-2006, 02:20 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 57
This should help you out. It did me.
 
Old 08-26-2006, 09:30 AM   #4
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Quote:
Originally Posted by j-ray
lame is probably the tool you are looking for in respect of converting. there are rpms available, too. Can be downloaded from many sites. But if you want to keep the directory structure you have to write a shell/perl/python script, i guess.
cheers, j
I agree. Look up Lame's syntax to create an mp3 with a specific bitrate, and then do something like this in bash:

find . -name "*.mp3" -type f | while read i; do lame <options> "$i"
"$i-192bps.mp3;done;


Where the find command will start in your current directory, search it and its subdirectorys for files ending in .mp3 , and it will run the lame command on each one it finds. The new mp3 file would be put in the same folder as the original. With some extra work, you can change it to another folder and also change the way it will be named. So a file in the current folder called playme.mp3 would be playme.mp3-192bps.mp3 after these commands process it.
 
Old 10-07-2006, 05:25 PM   #5
bgryderclock
Member
 
Registered: Mar 2005
Location: charlotte nc
Distribution: fedora -> debian / (x)ubuntu -> Slackware
Posts: 39

Original Poster
Rep: Reputation: 15
Thanks for all the replies

i finally used this, pasted into the termal window:


ANSWER:

Quote:
find . -name "*.mp3" -type f | while read i; do lame -m s -b 192 "$i" "$i-192bps.mp3"; done;
go team!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i convert file names to lower case and remove the underscore from the name? asilentmurmur Linux - Newbie 15 07-15-2006 02:40 PM
Is there a command line tool for auto-naming mp3s? Oholiab Linux - General 2 12-29-2005 03:06 AM
Need to convert MP3s to OGG Vorbis files crash_override_me Linux - Software 3 09-24-2005 12:13 PM
mplayer .ra (lame enc error bitrates>160kb/s) bendeco13 Linux - General 2 11-06-2004 06:28 AM
Did I just lose my mp3s with a bad mv command? int0x80 Linux - Newbie 4 04-21-2003 10:52 PM


All times are GMT -5. The time now is 12:36 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration