Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons (Read 81901 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

I am trying to understand why is FLAC standardizing in the lossless world? Reading here: http://en.wikipedia.org/wiki/Comparison_of...chnical_details isn't True Audio more future proof? All these channels and huge range, isn't it the "best" option for the next "100 years"?

If one day everyone will start using FLAC, will there be a way to expand the number of channels available? For expample the "new new" 12.1 Surround System or whatever they will come up with.

Just some thoughts, don't want to get anyone upset, I use FLAC and I love it.

Thanks.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #1
If people wanted more channels they'd just update the format. I don't think there is much interest in even multichannel music though.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #2
I use and prefer WavPack for its features.

The reason Flac is still the most widely spread lossless compression format
is simply the fact that it is supported by many hardware devices.
I don't know why it is but it is, and it is most of the time the only compatible lossless format (except WAV).

So when you can't play TAKs or TAs or WavPacks on your stereo Hi-Fi or mobile player,
it's hard to justify their use. Not even all software media-libraries fully support those...

Greetings
D.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #3
Why care about future? FLAC is lossless and DRM-free so it can be converted (easily!) to any format of choice if necessary.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #4
I don't know about the channels, but flac is in constant development. FLAC has become standard, one because it's open-source, two it's future proof, you will always be able to find a FLAC decoder and all future FLAC decoders are backwards compatible.

FLAC is excellent, it's versatile, it has very good compression and it encodes very quickly. You can convert it into anything without losing quality and this is the reason everybody is moving to FLAC. It was understandable before that people used mp3, and mp4, the sizes of their hard drives didn't allow for a lossless copy. I can carry my CD collection in lossless in a backup drive and have a high fidelity lossy copy of ogg vorbis or AAC in my phone or in my computer.

Also with FLAC you only have to rip once and you have all the codecs you need, if a new one comes along that you want to convert it too, you can without transcoding lossy to lossy.

Hope that helps.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #5
I don't know about the channels, but flac is in constant development.

No, it's not, at least not the official reference implementation. From what I heard the lack of development is quite problematic, for example regarding large file support (>2GB, iirc), among some other missing features/bugs.
It's only audiophile if it's inconvenient.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #6
I use and prefer WavPack for its features.

I strongly believe a lossless codec should be ONLY lossless, no other forms/situations.
In my opinion True Audio literally kills the competition.


I don't know about the channels, but flac is in constant development. FLAC has become standard, one because it's open-source, two it's future proof, you will always be able to find a FLAC decoder and all future FLAC decoders are backwards compatible.

FLAC is excellent, it's versatile, it has very good compression and it encodes very quickly. You can convert it into anything without losing quality and this is the reason everybody is moving to FLAC. It was understandable before that people used mp3, and mp4, the sizes of their hard drives didn't allow for a lossless copy. I can carry my CD collection in lossless in a backup drive and have a high fidelity lossy copy of ogg vorbis or AAC in my phone or in my computer.

Also with FLAC you only have to rip once and you have all the codecs you need, if a new one comes along that you want to convert it too, you can without transcoding lossy to lossy.

Hope that helps.

Yes, I do the same as well and you didn't get my question. What you are trying to annoyingly explain is easily doable with other lossless codecs, my question was why FLAC since mathematically speaking there are better lossless codecs.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #7
In my opinion True Audio literally kills the competition.


Technically speaking, TAK rules all, IMO. It's (much) faster and compresses (significantly) better than pretty much anything else that's remotely comparable. But being closed source with very little support and no hope for progress on those fronts, it has no chance whatsoever of becoming a "standard" (a codec/format being very different from, say, music playback software, e.g. foobar2000).

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #8
IMO a codec that supports 4GHz samplerate is not better than a codec that support 'only' 655kHz.
Also, FLAC is very fast to decode.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #9
I use and prefer WavPack for its features.
I strongly believe a lossless codec should be ONLY lossless, no other forms/situations.

Should we assume you’re referring to hybrid mode? Debby747 didn’t name any specific features, including that. Or do you just mean that compression time and so forth do not matter, as long as maximal compression ratio and the ability to support hugely inflated sampling rates, bit-depths, etc. are in place?

Either way, it’s probably good that you aren’t in a place to arbitrate over what codecs can and cannot do! Being lossless is of course the main factor, but why would you proscribe other options and benefits? That you don’t use them isn’t sufficient justification.

Quote
Yes, I do the same as well and you didn't get my question. What you are trying to annoyingly explain is easily doable with other lossless codecs, my question was why FLAC since mathematically speaking there are better lossless codecs.

What you are trying to annoyingly ask(!) is easily answered, since the (quasi-)mass-market niche for a lossless codec is incredibly small and was first entered by FLAC, making it the victor by default. Of course, this might change with the advent of ALAC, but it still seems that very few people care about lossless compression anyway. And those who do are probably just going to settle for whichever codec has the most support – which usually isn’t much in relative terms – anyway.

And again, the ability to support contrived parameters or combinations thereof is not the best metric of a codec’s performance. Look at features that are (much) more relevant in real use cases, or the level of active development. The latter is something with which FLAC could be more legitimately criticised, for instance.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #10
If I were dictator and could order specifications for The Next Universal Lossless Audio Codec, I can think of a quite a few improvements, but let me rather offer my $2e–02 on the 'why FLAC is standardizing' (which I am not sure will be true for forever, given the power of The New Microsoft with the fruity logo and name).

First: there need not be any 'good' reason why one product dominates over another market-wise. And especially not here, where compatibility is more or less everything as soon as features are 'good enough'. If N equally good codecs share the market evenly, that is most likely an unstable equilibrium. Whichever gets the upper hand (even if just by coincidence) will have better chances of growing quicker. And when concerns 'good enough' ... that TTA can sample at 4 GHz is certainly nothing compared to compatibility.

Some time ago, I tried to start a thread asking why these formats came about – which problems did they set out to solve?
http://www.hydrogenaudio.org/forums/index....showtopic=79491 Didn't really find the answers.


I would suppose that the main reason for FLAC's success, is being at the right place doing the right thing at the right time. And I can only guess that parts of this 'right thing', were
- optimized for decoding speed. Ten years ago, I think that was fairly important (and maybe even today for portable devices): it didn't require much CPU load. (AFAIK, no codec improved over FLAC on both compression and speed simultaneously until TAK, am I right?)
- licensing. Free, could be used in any device.
- quite future-proof feature-wise, at least for quite a few years' horizon. (Compare to Shorten and WAV ... and their tagging ...)
- good enough compression ratio. I mean, most don't even use the –8 switch.
And the right place, would be under the wings of Xiph, who had gained a reputation after doing Vorbis at the time when manufacturers were worried about licensing costs for MP3.


Compare to the competition at (approximately) that time: WavPack (1998) and Monkey's (2000?) decoded slower, and not to mention the closed-sourcers LA (2002) and OptimFrog (2003). LPAC was also closed source, and not to mention WMA Lossless, which was release at a time where Microsoft was getting knocked big time for their attempts at locking-in, and at the same time everything DRM-enabled was getting the middle finger big time. Meridian Lossless has some market though, on physical media, but has never target the 'decode yourself' market.



I have to say though, that I don't really understand why WavPack didn't catch on, being so early available. Though I don't know what features it had back in last century.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #11
I don't know about the channels, but flac is in constant development.

No, it's not, at least not the official reference implementation. From what I heard the lack of development is quite problematic, for example regarding large file support (>2GB, iirc), among some other missing features/bugs.


Wrong link, the right one
http://git.xiph.org/?p=flac.git;a=summary

Also:
http://git.xiph.org/?p=flac.git&a=sear...mit&s=large

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #12
First: there need not be any 'good' reason why one product dominates over another market-wise. And especially not here, where compatibility is more or less everything as soon as features are 'good enough'. If N equally good codecs share the market evenly, that is most likely an unstable equilibrium. Whichever gets the upper hand (even if just by coincidence) will have better chances of growing quicker. And when concerns 'good enough' ... that TTA can sample at 4 GHz is certainly nothing compared to compatibility.
[…]
I would suppose that the main reason for FLAC's success, is being at the right place doing the right thing at the right time. And I can only guess that parts of this 'right thing', were
[…]

This was pretty much exactly what I meant in the second part of my above post, which was probably too brief/vague, so thanks for substantiating.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #13
(AFAIK, no codec improved over FLAC on both compression and speed simultaneously until TAK, am I right?)

If you mean encoding speed vs. compression, then no, not really; though this is a moving target.

MAC is pretty swift at its lowest compression which is generally stronger than flac at its most aggressive settings.  WavPack also fares better than flac by virtue of it being stronger at compression as well, though not as fast as MAC for compression levels where it can compete.  TAK generally does a faster job than MAC at encoding at the weaker end of where they share common compression levels.  Once TAK is configured to encode aggressively, its speed drops substantially, more so than MAC the last time I looked at data, but things may have changed since then.  WavPack's encoding speed drops even more sharply.

When you take it into perspective, however, we're only talking about a 2% improvement in compression over flac at -6 at which point flac begins to lose efficiency.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #14
Technically speaking, TAK rules all, IMO. It's (much) faster and compresses (significantly) better than pretty much anything else that's remotely comparable.

Is  3% compression gain  significantly  better? ( TAK vs FLAC)
Less than 3% for profiles with the same decoding speed.
An encoding speed isn't issue with today hardware. I don't see anybody talking about speed issues and FLAC. Not even closer.

People prefer TAK less and less
2012 ripping/encoding general poll
2011 ripping/encoding general poll

LA is better than FLAC by laughable  5.3%.  Big unbelievable deal?
http://www.synthetic-soul.co.uk/comparison...sion&Desc=0

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #15
(AFAIK, no codec improved over FLAC on both compression and speed simultaneously until TAK, am I right?)

If you mean encoding speed vs. compression well it's a moving target, so no, not really.


Decoding speed and compression. And by 'both [...] simultaneously', I meant offering not both higher decoding rate in one setting and better compression in another, but a setting where your files both (I) smaller and (II) decode faster. A Pareto improvement, that is: one that is better for any trade-off over those two parameters.

As an example (now I dug to find one that isn't TAK): in Josef Pohm's test, http://synthetic-soul.co.uk/comparison/jos...Rate&Desc=1 , there is – apart from YALAC née TAK – one and only one way to improve over one and only one FLAC setting: MP4 ALS - Garf -a -o4 Pareto-improves over flac -3.


And of course there is the test at flac.sourceforge.net, which is hardly neutral ground, but shows performance on slow hardware (... how fast a CPU does a portable player have these days?)

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #16
MAC at it's weakest setting compresses better than flac at its strongest setting, so there is no way to make a comparison.  The same is true for other compressors such as TrueAudio which itself is very fast.

Furthermore, flac may still decode faster than TAK at any setting.  If this hasn't changed then there is no arbitrary line to be drawn for any comparison.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #17
FLAC was early on the scene. Performance is good enough. Royalty free. BSD licensed libraries.
FREE is part of the name.


Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #18
Some other factors which imo made/make for widespread adoption:

FLAC is not only open source but is available with simple installers and/or really easy to follow instructions for lots of different OS.  This is hugely important for less technical users and of course for distributors and vendors.  Anyone who wants to offer FLAC to consumers/purchasers doesn't want to be spending much time with support queries.

Another important factor is easy and flexible metadata handling.  FLAC is as easy to use as any codec can be, and so is metaflac with and its simple, adaptable key pair tag format. If you want to integrate a lossless codec into rippers, library managers, taggers, players, scripts, devices etc. then free, easy and convenient is a pretty good combination.

Looking back at early large capacity portable/personal players it's hard to see what other lossless format would have been considered by manufacturers who were significant at the time, such as Rio or iRiver.  Portable lossless playback capability was probably never important for more than a tiny minority but it was a feature that always gained very positive reviews and generated interest.

I also find it very hard to imagine record labels being keen to pay patent licensing fees and maybe even per CPU or per server software licenses when there is a high quality, gratis, liberally licensed equivalent that their customers know about and want to use.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #19
I am not talking about speed, compression, hardware support, software support, just features. Can everything in the audio world (DTS, Dolby, Studio production, DJ/Mixing, Sharing) be used in the FLAC codec? No. What about True Audio since the range of its features is so big? Yes? This I don't know.

I completely understand these are all extremely important factors to determine which codec will become the standard but if we have to change again in 10 years why don't everyone picks the "most complete one"? This was my thought.

People get angry, please try to understand English is my third language, sometimes I invert words and you may get something else other than what I really wanted to say, sorry about this.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #20
That's fine but most people, even music lovers and audio equipment hobbyists, just don't care about surround sound, are not involved in music production and aren't DJs.  Multi channel audio has been heavily promoted to domestic buyers/listeners several times since the 1970s and it's still the case that hardly anyone cares enough about it to buy SACD discs or players, just like they didn't buy Quadraphonic equipment or DVD-A.  But they did buy many millions of radio cassette players and Walkmans, then radio CD players and CD Walkmans, and then iPods and similar.  And how exactly do you promote the benefits of high fidelity multichannel playback to people who listen with earbuds?

Even a huge proportion of people who do care a lot about sound quality are content with stereo reproduction, and have also seen numerous formats and expensive next-big-things arrive and then expire over the years.

I think this idea of One Complete Codec has much to do with the human affinity for the mythical complete and universal answer, aka religious type feeling, and not much to do with what actually happens now or is likely to happen in the future.  Probably what will continue to happen is that people involved in audio production will use various formats and codecs that suit their purpose, and people who consume/listen will use other, different, formats and codecs which suit theirs.  The particular formats and codecs will inevitably change but the differences between production and consumption will remain.  A tiny minority of consumers will want the format with all the extra features and the other 99.99% of the world will want something that sounds good (stereo without obvious artefacts is good enough), and works on their iPod and in the car and at home, and which they can easily share with their friends and family.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #21
Is  3% compression gain  significantly  better? ( TAK vs FLAC)

If compression factor is a priority, then yes.

An encoding speed isn't issue with today hardware. I don't see anybody talking about speed issues and FLAC. Not even closer.

If your point is that FLAC is fast enough for most people, then I agree.

People prefer TAK less and less

Like I said. The way things are, TAK can't possibly grow its user base to the point of dethroning FLAC.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #22
@ Greynol: you don't seem to get the point. I didn't claim – nor did I want to imply that it would be crucial – that FLAC would be unbeatable on each parameter (of the two I would guess were the key ones). Rather, I was saying that there was nothing that would beat it on one without having to sacrifice on another (suppose it were, there would be harder to explain FLAC's relative success). It's a partial ordering) issue.


@ eahm: I do agree with you that 8 channels might not be enough in [fill in number] years. For all that I know, someone might at some point want to deliver the multitrack recordings, 'one track per instrument' style, in a format which specifies the mix but allows for the user to add effects to each. Just to take an example that none of the 'consumer-oriented' lossless formats (to my knowledge) offer. I would guess that the 'next' such format would be a container format which also supports e.g. video, and which would be able to store multiple discrete streams of a certain codec (want 24 channel ALAC? Store three 8-channel streams.).


I don't see anybody talking about speed issues and FLAC. Not even closer.


Not even on portable devices? Even when the CPU can decode in realtime (a must!), then higher effort means lower battery time.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #23
First: there need not be any 'good' reason why one product dominates over another market-wise. And especially not here, where compatibility is more or less everything as soon as features are 'good enough'.

tbh, as an economist, i am a bit offended by your statement. of course, there are good reasons why a product dominates the market despite the presence of competitors. individuals do not roll dice to determine which product to adopt. individual decision-making is not arbitrary, and therefore what is happening in the aggregate isn't arbitrary.

i do agree that once most competing products are "good enough", network effects and other externalities become a bigger and bigger part of the story, importantly affecting both consumers' and firms' decisions. nevertheless, we can still explain how a product became number one in the first place while competitors faded into obscurity. for example, various game-theoretic models illustrate how a monopoly can arise out of oligopolistic competition where one firm has a first-mover advantage.

Quote
If N equally good codecs share the market evenly, that is most likely an unstable equilibrium. Whichever gets the upper hand (even if just by coincidence) will have better chances of growing quicker.

homogeneous goods (and services) are rare. i think codecs vary significantly and competition between them is imperfect. so, i can very well imagine situations were various codecs all have non-trivial market shares. of course, it's all a question of how narrowly you define the market. but, i think, for reasonable definitions of the relevant market, there can be equilibria in which several codecs own non-trivial shares of the market. look at youtube. they encode videos using no less than three lossy codecs. look at beatport, they offer four different audio formats. bandcamp offers even more. look at the variety of codecs--even lossless ones--employed by HA readers. etc.

Why’s FLAC ‘the’ lossless codec? Is it future-proof(able)? Comparisons

Reply #24
Technically speaking, TAK rules all, IMO.

I second this. Simply said, TAK can’t be beaten by any other lossless codec that is currently present. It's a shame that there are no cross-platform binaries. Oh, and the lack of Unicode support it annoying, too.

Technically speaking, TAK rules all, IMO. It's (much) faster and compresses (significantly) better than pretty much anything else that's remotely comparable.

Is  3% compression gain  significantly  better? ( TAK vs FLAC)

The compression gain of TAK over the reference FLAC implementation is something like 6%, not 3%. And 6% is a lot (even 3% is a lot).