How to convert 24-bit audio files to 16-bit .wav and be able to create audio CD.
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to convert 24-bit audio files to 16-bit .wav and be able to create audio CD.
Hi: I used the flac command to convert some 24-bit flac files to wav. Then I used cdrecord to burn the CD. But cdrecord said "Incorrect audio coding". Then I tried to use k3b to burn the wav files. He reject them. And he also rejected the flac files! However Nero has no problem with these flac files. Is this possible? Notice that k3b has no problem with 16-bit flac files.
Audacity can convert from 24bit to 16bit flac...and AFAIK k3b should automatically convert 24bit to 16bit if you have selected 'CD audio'. Maybe I'm making a mistake, I'll need to test it and that requires digging up the few 24bit flac files I have.
BTW, you can also convert from 24bit to 16bit flac files with some linux media players. Deadbeef has the option to do that, not that I've tried converting with deadbeef yet.
Thanks cascade9. And thank you very much, EmaRsk, for your code. I will use flac first to convert to WAV and then sox to convert from 24 to 16 bits, because the flac command tests the file integrity.
I was looking at the WAV files output by flac with hexdump, and found a pattern. The audio signal is grouped in groups of six bytes, which was to be expected if the sample size was 24 bits:
So, the files output by the flac command when decoding 24-bit are 24-bit wav files. I did not even know that they existed.
Wav is more of a 'container' format than most people realise. Mist people think that 'wav = CD-DA' (CD- digital audio) but its not the case, you can have wav files with higher than standard CD-DA sample rates (16bit/44.1KHz) and more than 2 channel sound. You can also have wav files with lower than the CD-DA standard sample rates, bit depth, etc., and even 'compressed' wav files.
Converting FLAC to 16/24 bit WAV is not so difficult and hard. Just type how to convert FLAC to WAV on Mac and Windows in Google to find the guide or way you prefer to.
If you are converting from a lossless format to a lossless format, no quality is lost.
The FLAC file may have been corrupted. Too much time stored in a low quality medium, errors arising during the transmission if ddownloaded from the web, et cetera. But a FLAC file has error detection code built into it. And the flac command makes use of this code to check for file integrity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.