Determing File Size Wile in Edit

Help for Audacity 2.x.x on Windows.

ImageThis forum is for Audacity 2.x.x on Windows.

  • Please state which version of Windows you are using, the exact three-section version of Audacity from Help > About Audacity and whether you obtained the .exe installer or the zip.

  • Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at http://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.

Determing File Size Wile in Edit

Permanent link to this post Posted by Michael G » Sun Mar 19, 2017 4:56 pm

Windows 7 Sr1
Audacity 2.1.2

Here is the problem:
When editing any file type for conversion to a MP3 RingTone we must end up with an MP3 file not larger than 200Kb. Can we determine the file size while in the edit mode, before exporting to another MP2 File?

I have already searched the FAQ for ringtones and found how to reduce the original MP3 file, but nowhere is discussed estimating the file size in Kb.
Michael G
 
Posts: 1
Joined: Sun Mar 19, 2017 4:39 pm
Operating System: Windows 7

Re: Determing File Size Wile in Edit

Permanent link to this post Posted by kozikowski » Sun Mar 19, 2017 8:17 pm

I don't know of a good way. File-size predictability is one of the things you give up when you elect for compressed files. I would create several different sound files of predictable length and see how they turn out. We can tell you WAV file sizes down to about ten bytes or so, but that falls apart pretty quickly with MP3, M4A, etc.

Just a note that MP3 files fall apart pretty quickly when you recursively edit them. If you make an MP3 from an MP3, the sound quality is a fraction of either one alone. so if your work starts getting honky and wine-glassy, that's why.

Koz
kozikowski
Forum Staff
 
Posts: 36274
Joined: Thu Aug 02, 2007 5:57 pm
Location: Los Angeles
Operating System: OS X 10.9 Mavericks

Re: Determing File Size Wile in Edit

Permanent link to this post Posted by steve » Sun Mar 19, 2017 8:36 pm

If you use "Constant Bit Rate" (CBR) encoding, then the file size is easy to calculate fairly accurately.
For CBR encoding, the "bit rate" is specified in kilobits per second. There are 8 kilobits to a kilobyte. So, for example, if the file is 10 seconds duration and the bit-rate is 128 kbps (kilobits per second), then that is 10 x 128 = 1280 kilobits of data, which = 1280 / 8 = 160 kilobytes.

In short:
Size in kB = bit-rate (kbps) x duration (seconds) / 8

The actual file size will be a little bigger due to headers and metadata, but the above calculation is pretty close.
CBR encoding and the bit-rate (kbps) can be selected in the file export dialog (see: http://manual.audacityteam.org/man/file ... ialog.html)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
steve
Senior Forum Staff
 
Posts: 43167
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux Debian


Return to Windows



Who is online

Users browsing this forum: No registered users and 6 guests