File size

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
radio-guy
Posts: 6
Joined: Tue Sep 03, 2013 12:24 am
Operating System: Please select

File size

Post by radio-guy » Tue Sep 03, 2013 12:46 am

I open an mp3 file in Audacity. It's been recorded at 22050, 32kbps.
Without making any changes to it, I export it to a new file name.
When I open the newly exported mp3 file, it still shows 22050, 32kbps, but the file size has increased by 50%. I'm working in an environment where file size is critical. What's causing the increase in file size? How can I prevent it?

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: File size

Post by steve » Tue Sep 03, 2013 1:01 am

You can calculate the file size of an MP3:
(kbps x duration in seconds) / 8 = file size in kB.

The sample rate is not relevant to the file size of an MP3.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: File size

Post by Robert J. H. » Tue Sep 03, 2013 5:42 am

You should also compare the other settings that were used on the original and the exported copy.
- Mono, dual mono, separated stereo or joint Stereo.
- Constant, average or variable bit rate.
- Enhanced quality settings (if available)
Use Media info or the propertys tab in your player to gather this data.
Lame allows additionally to specify an explicit compression ratio (against the uncompressed size, e.g. *.wav file). But this is only available if you choose "(External Program)" as the file type for export.

radio-guy
Posts: 6
Joined: Tue Sep 03, 2013 12:24 am
Operating System: Please select

Re: File size

Post by radio-guy » Wed Sep 04, 2013 12:28 am

All right. I think I'm getting a bit of a handle on this, but things are still confusing. Let's call my original file "A", and after I load it into Audacity and then export it, it becomes file "B." File A, audio properties show as Mono, with a 32kbps sample rate. After i load it into Audacity, then export it as B, B shows Mono with 51kbps as the sample rate. That would explain the 50% increase in file size.

So, now the problem seems to be reduced to how to export the file at the original 32kbps sample rate. And there's nothing I can find in Audacity to allow me to do this.This seems like it should be simple, but I can't find a way to do it.

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: File size

Post by steve » Wed Sep 04, 2013 3:45 am

While the Export dialogue screen is open, select MP3 as the export format and then click on the "Options" button.
Set the MP3 options to CBR 32 kbps. http://manual.audacityteam.org/o/man/fi ... ialog.html
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: File size

Post by steve » Wed Sep 04, 2013 3:48 am

By the way - "32 kbps" is not the "sample rate", it is the "bit rate".
"Sample rate" is something different.
http://manual.audacityteam.org/o/man/gl ... l#bit_rate
http://manual.audacityteam.org/o/man/gl ... ample_rate
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

radio-guy
Posts: 6
Joined: Tue Sep 03, 2013 12:24 am
Operating System: Please select

Re: File size

Post by radio-guy » Thu Sep 05, 2013 1:37 am

OK, that seems to have solved the problem. Thanks.

Post Reply