Saving 24 bit Wav files?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at 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
dgk03
Posts: 16
Joined: Tue Feb 12, 2013 9:59 pm
Operating System: Please select

Saving 24 bit Wav files?

Post by dgk03 » Tue Feb 12, 2013 10:12 pm

I'm transferring quite a few reels onto hard drive and Audacity is invaluable, but I do have one question. I'm recording them as 32 bit float and saving them as 24 bit wav. Since there is no option for 24 bit wav, I select other uncompressed files and then Microsoft Wav and signed 24 bit PCM. It works fine but I figured it would be better to use FLAC. When I tried exporting as FLAC (24 bit) it works fine but when I decompress the Flac the resulting wav is maybe 1/3 smaller than if I did the WAV output. I can't tell any difference soundwise and file properties of the 2 files are identical (24 bit, 2304 kbps, 48 kHz, PCM). So I figure exporting directly to FLAC is find but what is happening with the files I'm saving directly as WAV that causes them to be bigger.

For instance, a 20 minute file directly to wav is 476 mb whereas sending to Flac and uncompressing yields a 348 mb file. Thanks.

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

Re: Saving 24 bit Wav files?

Post by steve » Wed Feb 13, 2013 12:17 am

dgk03 wrote:When I tried exporting as FLAC (24 bit) it works fine but when I decompress the Flac the resulting wav is maybe 1/3 smaller than if I did the WAV output.
How are you converting the FLAC files back to WAV? Are you sure that you are converting from FLAC to 24 bit WAV and not to 16 bit WAV?

20 minutes for 24 bit, 44100 Hz stereo should be about 302 MB.
20 minutes for 24 bit, 48000 Hz stereo should be about 330 MB.
20 minutes for 24 bit, 96000 Hz stereo should be about 660 MB.

The FLAC file should be about 40% smaller than the WAV file (depending on the material).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dgk03
Posts: 16
Joined: Tue Feb 12, 2013 9:59 pm
Operating System: Please select

Re: Saving 24 bit Wav files?

Post by dgk03 » Wed Feb 13, 2013 1:24 am

I just took the FLAC file and ran it through the old FLAC front end and hit Decode. When I look at the properties of the files (WInXP, right click on file select Properties and look at Summary tab) shows that both are 24 bit and 48kHz. Yet there is a significant size difference. The actual length is 20:38. Somehow selecting a direct output into wav of 24 bit 48 kHz just creates a much bigger file than if I go through FLAC.

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Saving 24 bit Wav files?

Post by Gale Andrews » Wed Feb 13, 2013 3:03 am

dgk03 wrote:I can't tell any difference soundwise and file properties of the 2 files are identical (24 bit, 2304 kbps, 48 kHz, PCM).
I can't reproduce any such thing using the Windows FLAC installer from http://flac.sourceforge.net/download.html .
dgk03 wrote:a 20 minute file directly to wav is 476 mb
That's a 32-bit 48000 Hz stereo WAV (about 22 MB/minute). Perhaps XP doesn't understand 32-bit files.

Try looking at the files in MediaInfo (get the version without installer)
http://mediainfo.sourceforge.net/en/Download/Windows .


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Saving 24 bit Wav files?

Post by steve » Wed Feb 13, 2013 3:12 am

20 minutes and 39 seconds, stereo, 48kHz sample rate 24 bits will be 356544000 bytes. It doesn't matter where it comes from or how it got there, that is the size. There may be a few extra bytes due to metadata but nowhere near enough to account for the difference that you are describing.
How have you checked that both of the files are both the same duration?

As a test:
1) Create a new stereo track (Tracks menu)
2) Generate a 20 minute tune (Generate menu)
3) Check that the Project rate is set to 48000 (bottom left corner of the main Audacity interface).
4) Export as a "signed 24 bit WAV file".

The file size should be very close to 345600000 bytes (about 329.6 MB).
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

dgk03
Posts: 16
Joined: Tue Feb 12, 2013 9:59 pm
Operating System: Please select

Re: Saving 24 bit Wav files?

Post by dgk03 » Wed Feb 13, 2013 9:21 pm

345,600,044. I don't have an export option for "signed 24 bit WAV File". I have to used the Other Uncompressed option.

Well I couldn't duplicate my issue either so I must have messed it up somehow. But I used MediaInfo to look at the Flac and Wav file and while both are 48/24/2 channel/PCM, the wav shows as 2304 kbps while the flac is 1714. I guess it doesn't matter because it's 2304 when it expands. Ok, I'm happy. Thanks.

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

Re: Saving 24 bit Wav files?

Post by steve » Wed Feb 13, 2013 9:54 pm

dgk03 wrote:I don't have an export option for "signed 24 bit WAV File". I have to used the Other Uncompressed option.
Yes that's the correct way to export as 24 bit WAV
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

DVDdoug
Forum Crew
Posts: 9426
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Saving 24 bit Wav files?

Post by DVDdoug » Thu Feb 14, 2013 8:32 pm

I'm recording them as 32 bit float...
FYI - You can't really "capture" or record 32-bit data... There are no 32-bit or floating-point ADCs (analog to digital converters). There's no advantage in asking your driver to generate a floating-point file. You just end-up with a bigger file. If your soundcard/interface has a 24-bit ADC, you can record in 24-bit integer format. If you have a 16-bit soundcard/interface, you are only wasting space with 24 or 32 bits. But, 16-bits is OK too... 16-bits gives you more resolution and more dynamic range than anything analog. ;) (There are no floating-point DACs either.)

Audacity (and most other audio editors) work internally at 32-bit floating-point. So, in some rare special situations it may be worthwhile to save in 32-bit floating point temporarily if you are in the middle of editing/mixing/processing, etc. i.e. if you've done some processing to push your peaks over 0dB, etc., saving in integer format will clip (distort) your data, so floating point would be prefered (if you don't want to reduce your levels before saving). But, there's no reason to record in floating point or to play-back in floating-point.

Post Reply