LinuxQuestions.org
Review your favorite Linux distribution.
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
 
Search this Thread
Old 03-20-2005, 09:56 AM   #1
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Rep: Reputation: 30
increase mp3 bit-rate on old files


i have thousands of mp3 files that have been ripped to 8/16 bit mp3 (french bible audio), that i would like to increase to a bit-rate of 32 (to support a mass-market mp3 player we may deploy it with).

is there a way to:

a: write a script to covert all the files in a given directory or tree without having to convert each one individually?

b: increase bit rate without substantially increasing file size (i think it is mono already), since quality would not be improving (orginial files are 8/16 bit). (rerecording is not an option since it would take many hundreds of hours).

thx
 
Old 03-20-2005, 10:32 AM   #2
cylix
Member
 
Registered: Dec 2004
Location: Ohio
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
You can use lame to re-encode your mp3 files.

I'm sure you understand the sound quality will remain much the same.

The file size is going to increase. It's simply not a header, those are actual bytes of data, lame will simply fill in the gaps. That is the sampling rate, bits per second, so if you add more despite being fillers it's just going to get larger. You might have some optimizations you can make to save space though.

Yes, you can script this, it's all command line and I'm sure there are front ends to do it as well.
 
Old 03-20-2005, 11:33 AM   #3
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
cool. i'll have to slueth a bit, i've only used lame as invoked by front-end software, should be a nice learning experience ya i realize quality cannot increase as i'm starting with a lower-bitrate file as mentioned in question "b:", i only hope it doesn't go down, lol. that would seem unfair... larger file/less quality...

if i come up with any scripts, i'll post them here, as it might be useful for people wanting to go the opposite direction (if they have ripped their library lossless, but want a smaller file for portable player for instance).

thx

Last edited by Present; 03-20-2005 at 11:39 AM.
 
Old 03-20-2005, 12:28 PM   #4
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
VERY COOL

starting from an 8k file, going up to 16 actually makes the file smaller!, while 32 is only marginally larger. lame ROCKS! the white space really doesn't take up too much space (i was hoping the compression scheme would differentiate between music and white space, and the most recent version of lame i could find-v3.96.1, does an admirable job).

here are file sizes:

08_gen_01.mp3 (original) 837.6KB
16_gen_01.mp3 557.8KB
32_en_01.mp3 1.1MB
48_gen_01.mp3 1.6MB

now i'm going to do a quick test to check audio quality and compatibility with the 32bit player, and then i'll try to write a script...

kudos & good-work to the lame dev team btw
 
Old 03-28-2005, 10:35 PM   #5
Present
Member
 
Registered: Jan 2004
Distribution: suse/slack/gentoo/lfs (not-in-that-order)
Posts: 281

Original Poster
Rep: Reputation: 30
well, got the original files working, and will not have time to write scripts soon. problems has been resolved so this thread can be considered closed (unless someone else feels moved to give it new life for some reason).

-thx
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do u increase the refresh rate in suse 9.3 guardianx Suse/Novell 2 08-06-2005 09:36 AM
Cannot set bit rate in Debian piampri Linux - Laptop and Netbook 1 03-02-2005 12:41 PM
Howto Increase Viewsonice PT813 Refresh Rate with Mandrake 10.1 Community kingterr0r Linux - Hardware 0 02-03-2005 09:51 AM
how do i compress an existing mp3 from 128 bit to 32 bit? lemuel Linux - Newbie 4 01-04-2005 08:28 PM
How do I how do you increase color depth from 24 to 32 bit (redhat 8.0) alkad_mzu Linux - Newbie 2 07-20-2003 08:00 PM


All times are GMT -5. The time now is 06:09 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 Google+: linuxquestions
Open Source Consulting | Domain Registration