Author Topic: FLAC compression  (Read 4219 times)

cynflux

  • Jr. Member
  • **
  • Posts: 76
Hello,
I recently discovered the FLAC format and I am curious to know which compression level everyone uses and why.
Thank you in advance.

CritterMan

  • Sr. Member
  • ****
  • Posts: 556
  • Now with FiiO M11!
Max it out. The only difference it makes is how long it takes to encode the file. In an extremely simplistic way, the encoder is trying multiple methods to make each chunk of data as small as possible. The higher the level of compression, the more tries it makes. This results in a smaller file, but the decoding time is not affected at all so there is no downside other than a slightly longer encoding time when the file is created.
Home Desk ~ MB 3.3 Portable • Questyle CMA400i (ASIO) • Sennheiser HD 660S (balanced) / Audeze EL-8 Closed Back / Fostex TR-X00 Ebony • Teac AI-101DA • Jamo C93 + Dayton Audio SUB-1000
Work Desk ~ MB 3.3 Portable / Tidal • SMSL SU-8 v2 • Nobsound NS-05P • THX AAA 789 • Sennheiser HD 58X (balanced)
OTG ~ FiiO M11 • Audiofly AF180 / B&O H6

cynflux

  • Jr. Member
  • **
  • Posts: 76
This format is awesome. It's a shame that the audio player in my car doesn't support the format.

CritterMan

  • Sr. Member
  • ****
  • Posts: 556
  • Now with FiiO M11!
I think you need a new audio player in your car. Or, if it has a 3.5mm input or Bluetooth, a portable audio player that does support FLAC.
Home Desk ~ MB 3.3 Portable • Questyle CMA400i (ASIO) • Sennheiser HD 660S (balanced) / Audeze EL-8 Closed Back / Fostex TR-X00 Ebony • Teac AI-101DA • Jamo C93 + Dayton Audio SUB-1000
Work Desk ~ MB 3.3 Portable / Tidal • SMSL SU-8 v2 • Nobsound NS-05P • THX AAA 789 • Sennheiser HD 58X (balanced)
OTG ~ FiiO M11 • Audiofly AF180 / B&O H6

cynflux

  • Jr. Member
  • **
  • Posts: 76
In a pinch, I could use an android device with Poweramp Music Player app installed on it.
It supports FLAC.

redwing

  • Guest
which compression level everyone uses and why.

That would be a personal choice, but there's no reason to go beyond the default level 5.
You get only marginal improvement in space saving with enormous increase in encoding time. Generally with an 1 GB album, using level 8 instead of level 5 saves only about 2 MB with 3 times longer encoding time. Of course there's no differences in audio quality and decoding time.

frankz

  • Sr. Member
  • ****
  • Posts: 3834
redwing is right that 8 isn't needed and is a technical waste of time.

That said, IMO, the levels are from back when computers were much less powerful as an encode time / space savings trade-off.  With today's computers the real-world difference in times is so minimal (3 or 4 seconds per "song") I always go for 8 just to simplify.  If it takes me an extra 30 seconds to encode a CD, I'll live. That way I know I got it as small as it's going to get, and that's a peace of mind thing. (Same reason I use V0 mp3 instead of V1 although I would probably never hear the difference in almost every case)

This site makes a pretty compelling case that 3 is the "right level" though.
Last Edit: April 11, 2018, 04:42:05 AM by frankz

captain_paranoia

  • Full Member
  • ***
  • Posts: 207
> You get only marginal improvement in space saving with enormous increase in encoding time.

It takes about 3 seconds to encode a track to FLAC on my desktop (which is about seven years old, and not particularly powerful: Athlon II X3 450 3.2 GHz). Much less than it takes to rip, even at 30x avg CD rip speed.

If the compression is launched in parallel, using a second core, it doesn't increase the rip time.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
i recall reading on hydrogenaud.io that there is more processing power required to decode highly compressed flac files which may be a consideration when using on portable devices

frankz

  • Sr. Member
  • ****
  • Posts: 3834
i recall reading on hydrogenaud.io that there is more processing power required to decode highly compressed flac files which may be a consideration when using on portable devices
This is what I always thought, too, but apparently the difference is very negligible.  0 decodes at 141x and 8 decodes at 125x.

The cost on the encoding side is that the levels reflect the amount of different compression methods tried to find the one with the best (smallest) compression for the content.  0 will try very few methods and select the most efficient one among them, 8 will try them all.   So there is great (relative) cost to using 8 vs 0 on the encoding side (8 encodes at 12X, 0 at 134x)

There is no such decision making on the decoding side, so there's very little impact either way in decoding.
Last Edit: April 11, 2018, 09:07:01 PM by frankz