Skip to main content
Topic: Maximum bitrate of FLAC files (Read 1656 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

Maximum bitrate of FLAC files

Sorry if the question is nonsensical, Im quite of a noob in this area :) Im wondering if FLAC files have a sort of a maximum bitrate? Say 1411kbps? And does that mean that consequently, a file in my music collection of lets say 1600kbps is not FLAC, and can be either WAV or AIFF? I dont use other lossless formats.

Thanks a bunch!

Re: Maximum bitrate of FLAC files

Reply #1
A FLAC file could theoretically compress to slightly larger than the original WAV file, although that is unlikely.

Re: Maximum bitrate of FLAC files

Reply #2
or
this flacs is non-"standart" cd-audio (16/2/44100)

Re: Maximum bitrate of FLAC files

Reply #3
And does that mean that consequently, a file in my music collection of lets say 1600kbps is not FLAC, and can be either WAV or AIFF?
Use a media player with a library and a search function (foobar2000 is popular here ...)
Then you can search up files by codec (wherein WAV and AIFF would show up as PCM) and format, and you would also find those which have different wordlength/channels/samplerate (cf. m14u's reply).

Unless you have really special needs, there won't be any reason to use WAV or AIFF really.
High Voltage socket-nose-avatar

Re: Maximum bitrate of FLAC files

Reply #4
And does that mean that consequently, a file in my music collection of lets say 1600kbps is not FLAC...
Hi-res FLAC will have bitrates in excess of 1411 kbps

Re: Maximum bitrate of FLAC files

Reply #5
The max bit rate of FLAC is probably around 36,864 kbps.  This is a sample rate of 192 KHz, 24-bits per sample and 8 channels (the absolute max that FLAC will encode).  The max size of a FLAC file is limited to around 4 GB and the max uncompressed file the encoder will take is also around 4 GB.  Given these things in mind, it's safe to say that most people probably won't ever hit these limits.

Re: Maximum bitrate of FLAC files

Reply #6
Now we are in part nitpicking outside the consumer audio-relevant range, but:

sample rate of 192 KHz
FLAC can handle odd samplerates too, not only the "standard" ones.

24-bits per sample
There are 3rd party encoders that can encode 32 - as long as integer format?

The max size of a FLAC file is limited to around 4 GB
I don't think that is correct. I just created a FLAC file around 6 GB with ffmpeg and transcoded it to FLAC with flac.exe 1.3.1. But the next is a practical limitation:

and the max uncompressed file the encoder will take is also around 4 GB.
Here there is an yes. AFAIK, there is this 4 GB limitation to WAV, and I couldn't get ffmpeg to produce larger WAV or AIFF files that the reference encoder flac.exe could encode.
But I could create larger FLAC files - first with ffmpeg then from that with the reference encoder - I just couldn't feed larger WAV or AIFF to it as source.
High Voltage socket-nose-avatar

Re: Maximum bitrate of FLAC files

Reply #7
Yeah, flac.exe (foobar2000) fails with big WAV files, but I can open a ~10GB WAV file with Acoustica and then save it as a ~10GB FLAC (it's pink noise, 8ch 192kHz 24 bit).

Re: Maximum bitrate of FLAC files

Reply #8
The max size of a FLAC file is limited to around 4 GB and the max uncompressed file the encoder will take is also around 4 GB.
FLAC file size is not limited to 4GB. Size of uncompressed  source file for encoding to FLAC is not limited to 4GB. *.wav size is of course limited to 4GB, but FLAC can accept stdin (pipe) and *.w64 as input. Of course, if you aren't using ancient version of FLAC.

Re: Maximum bitrate of FLAC files

Reply #9
and *.w64 as input.
Ah. Good to know ... uh ... well, maybe I will some time have use for it ...
High Voltage socket-nose-avatar

Re: Maximum bitrate of FLAC files

Reply #10
...and FLAC is limited to 655350 Hz, not 192000
This is a sample rate of 192 KHz, 24-bits per sample and 8 channels (the absolute max that FLAC will encode).

Re: Maximum bitrate of FLAC files

Reply #11
So the maximum bit rate is probably around 167,770 kbps?  That's basically 655,350 Hz sample rate with 32-bit integers per sample and 8 channels.  That's very generous indeed.  The 4 GB limitation is in fact just a wav file issue.  Of course if the maximum sample rate is anything to go by as it looks like a maximum 16-bit value, the maximum bit rate could also be 655,350 kbps as well or if 32-bit you could possibly have a maximum bit rate of 4,294,967,295 kbps‬ or 42,949,672,95‬0 kbps depending how it's defined as I'm not a programmer here. 

Realistically at the present the most that I was able to get encoded was a sample rate of 655,350 Hz, 24-bits per sample and 8 channels.  The maximum bit rate of FLAC?  Not one anyone should worry about as it's probably around 125,827 kbps.  For 99% of the world population that doesn't look like anything you need to worry about.  If you need to compress 32-bit integers or 32-bit floating point, or something with more than 8 channels then there's WavPack for those truly niche cases at the present.

Re: Maximum bitrate of FLAC files

Reply #12
But to get back at the "noob" question:

And does that mean that consequently, a file in my music collection of lets say 1600kbps is not FLAC, and can be either WAV or AIFF? I dont use other lossless formats.

As pointed out, lossless files that you might have gotten through other sources than CD, might be more than 16 bits and higher than 44.1 kHz samplerate (or multichannel!), and so they might clock in at 1600 even if compressed.

But to ask back: what do you need to have answered?
Do you have files with the ".flac" extension and wonder whether the extension could possibly be correct, since they have a 1600 bitrate? (If so: you have it answered.)
Do you have larger WAV/AIFF files and wonder if they could possibly fit in the FLAC format? (Most often the answer would be yes. Exception: if they are 32-bit. Then, use WavPack.)
High Voltage socket-nose-avatar

 
SimplePortal 1.0.0 RC1 © 2008-2019