You have an audio CD you purchased. You want to use it on an MP3 player. So you use FFMPEG to convert it to an MP3 audio file.
I’ve seen many examples of this, but I’m wondering if there is a limit to the bit-rate from a CD audio file? One example showed converting it to 192K. Others using 320K. Isn’t there a practical limit from the audio CD, that going further is just going to waste space and processing time of the MP3 player?
Yes. FLAC bitrate (a lossless audio compression format) is ~906 kbps. So there is no point in a bitrate that is higher than 906, because you are introducing (very slight, inaudible) compression artifacts for no benefit.
In most cases, devices that are “MP3 players” will play FLAC or some other lossless format. Given how cheap SD cards are, there’s basically no reason to compress to MP3 anymore. Use a lossless format.
** SamuelA**'s reasoning isn’t really valid, because FLAC and MP3 use completely different compression algorithms. The fact that FLAC is lossless at 906 kbps doesn’t tell you anything about the quality of MP3 at the same bitrate. I could design a compression algorithm that sounds like crap at 906 kbps.
There isn’t really an objective answer to this question. If you actually compare the digital output of an MP3 decoder to the original 44.1 kHz sampled data from the audio CD, it won’t be the bit-for-bit identical at any bitrate. (I’m pretty sure of this but not 100% positive.) Nevertheless, most people can’t tell the difference between 320 kbps MP3 and the original, so there’s probably no point in encoding MP3 at a higher bitrate. My old ears are not good enough to tell the difference between 128 kbps MP3 and the original in most cases, so for me personally, 128 kbps is good enough. If you’re encoding music only for your own personal consumption, you should use whatever bitrate sounds acceptable to you.
MP3 encoders like LAME (used by ffmpeg) let you specify a preset quality for the encoding instead of worrying about selecting a fixed bitrate. The highest-quality setting will output an average of ~250 kbit/s so there is not much point in exceeding that.
As has been said, you may be happy with a slightly lower-quality setting. However, MP3 was not really designed to sound good at extreme compression, so below ~160 kbps you should consider using a different codec like Vorbis.
Either way, just remember, never try to re-encode an already MP3-encoded file since the compression is lossy!
CD audio is 2 channels of 16 bit samples at a rate of 44.1kHz. That means 1411200 bits per second. As audio has significant redundancy is is common to be able to losslessly compress this to half this rate without too much difficulty. But you cannot create a lossless compressor that has a fixed rate (except for the trivial case where it does not actually compress.) If your CD contained pure white noise it would not be compressable, and a lossless compressor would actually make the final bitstream slightly bigger (due to the fixed overheads in the compression stream).
The CD audio format sits very close to the edge of human audio perception. Indeed you really need to use techniques like shaped dither to get the format to the resolution of the ear in the mid bands. However the CD also contains as much information in the top octave as the entire rest of the channel, a frequency band where humans have very poor resolution. So trivially we can see where a lot of useless resolution lives. Lossy audio compressors make use of knowledge of how the ear works and where the ear simply has little to no ability to resolve information to work out where information can be safely thrown away without noticeable effect. However if you know what to listen to you can tell. (Typical artefacts are lack of ambience in the moments after the sound stops, and percussive sounds that sound “splashy”. ) For most people these artefacts are trivial in the extreme. So quite aggressive compression can be used without issue.
OTOH, disk is cheap. I rip everything lossless, mostly so I never have to rip it again. Converting from one lossy format to another often does not work well. It is always best to start with the original when creating a new stream.
So do I take the above to mean, an audio CD can’t do any better than 176.4K per second? Meaning, anything above a bit-rate of 176.4K for an MP3 does nothing to preserve the original audio sound from the CD? So a bit-rate of 192K or 320K doesn’t do anything except take up space and make the CPU work harder?
That’s approximately 1411 kb/s. My “factual” answer is above 250 kb/s VBR is wasteful according to the psychoacoustics described above, and below 160 k you should not be using MP3 but rather a different format.
You are confusing bytes and bits. CD is 176.4k bytes per second. Compression rates are expressed in bits per second. 176.4K * 8 = 1411200 = 1.4M bits per second.