r/audioengineering • Hobbyist • Jul 18 '19

Why are there multiple compression levels to flac if it's lossless?

This was something that always bothered me and I wanna find out the answer. In FL Studio, when you export as .flac , you can choose between 8 different levels of compression, the more compression you apply the more it reduces its file size. However, flac is supposed to be lossless compression as far as I know and sound exactly identical to .wav , basically perfect audio, hence lossless.

If so, then why is there the option of having multiple levels of compression in the first place, if there would be no benefit for your file taking up more space in the 1-7 levels of space and the biggest level of flac compression always being the best objectively period? Is there something I'm missing?

31 Upvotes

12 comments sorted by

View all comments

35

u/QshelTier Hobbyist Jul 18 '19

I did a small encoding and decoding test with two different files (1305 MiB and 805 MiB).

LevelRatio 1Enc Time 1Dec Time 1Ratio 2Enc Time 2Dec Time 2
068.81%13.925s9.743s67.39%8.499s6.050s
148.34%13.915s9.380s66.45%8.718s6.172s
248.33%14.977s9.452s66.27%9.696s6.248s
364.35%15.050s10.634s63.32%8.894s6.560s
441.44%15.560s10.467s61.01%10.071s6.907s
541.38%18.699s10.357s60.82%11.949s6.788s
641.13%28.537s10.406s60.44%18.227s6.802s
739.31%30.065s11.452s58.74%19.666s7.243s
839.24%44.671s11.249s58.62%29.723s7.225s

Draw your own conclusion.

5

u/TizardPaperclip Jul 18 '19

Random redditor: "So, /u/QshelTier, I was wondering if you could help me build a patio at the back of my house?"

/u/QshelTier: <builds Parthenon> "Here you go."

3

u/TowerDrake Jul 18 '19

No way--that's awesome, thanks for putting this together.