Live data from Hacker News

New Ultra Fast Lossless Audio Codec (HALAC)

hydrogenaud.io

191–200 of 201 posts

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#191

Earlier quoted context omitted.

> There just isn’t something better (and free) to replace it yet. Apple's ALAC (Apple Lossless Audio Codec) format is an open-source and patent-free alternative. I believe both ALAC and FLAC support up to 8 channels of audio, which allows them to support 5.1 and 7.1 surround. https://en.wikipedia.org/wiki/Apple_Lossless_Audio_Codec#His... These are distribution formats, so I'd be surprised if there were demand for fl…

When FLAC compresses stereo audio, it does a diff of the left and right channels and compresses that. This often results in a 2x additional compression ratio because the left and right channels are tightly correlated. Unless things have changed substantially and I missed it, FLAC does not do similar tricks for other multichannel audio modes. Meaning that for surround sound, each channel is independently compressed an…

In what ways does flac suck for distribution? All the music I download from Bandcamp is in that format, it works great for me.

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#192
post #191

Earlier quoted context omitted.

When FLAC compresses stereo audio, it does a diff of the left and right channels and compresses that. This often results in a 2x additional compression ratio because the left and right channels are tightly correlated. Unless things have changed substantially and I missed it, FLAC does not do similar tricks for other multichannel audio modes. Meaning that for surround sound, each channel is independently compressed an…

In what ways does flac suck for distribution? All the music I download from Bandcamp is in that format, it works great for me.

It could be much smaller, maybe 2-3x better compression. Better support for surround sound / multichannel audio. If an AAC stream were used for the lossy predictive stage, then existing hardware acceleration could be used for energy efficient playback.

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#193
post #191

Earlier quoted context omitted.

In what ways does flac suck for distribution? All the music I download from Bandcamp is in that format, it works great for me.

It could be much smaller, maybe 2-3x better compression. Better support for surround sound / multichannel audio. If an AAC stream were used for the lossy predictive stage, then existing hardware acceleration could be used for energy efficient playback.

How would 2-3x better compression be achievable?

I don't use or desire multichannel audio but that and the hardware acceleration are interesting points.

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#194
post #149
post #7

Earlier quoted context omitted.

It seems the world made a collective yawn about flac. Hard to imagine that would change much with a new format. I personally keep everything in flac, but Bandcamp is seemingly the only service where that is a given.

Found the Apple user.

Why would an Apple user be using flac?

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#195
post #193

Earlier quoted context omitted.

It could be much smaller, maybe 2-3x better compression. Better support for surround sound / multichannel audio. If an AAC stream were used for the lossy predictive stage, then existing hardware acceleration could be used for energy efficient playback.

How would 2-3x better compression be achievable? I don't use or desire multichannel audio but that and the hardware acceleration are interesting points.

FLAC uses 1970’s era compression technology for both compression stages (lossy and residual) in order to conservatively avoid patents in the implementation. Just replace the lossy component with AAC, which is now out of patent protection, and replace Rice coding for the residual with the much better (but was still patented in the 90’s) arithmetic coding. Those two changes should get 2-4x performance improvement, as well as hardware accelerated encoding and playback as a free bonus.

Multichannel audio support is nice because it is often used in distribution of media files sourced from DVD/BluRay. It would be good to have a high quality, free codec for that use.

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#196
post #193

Earlier quoted context omitted.

How would 2-3x better compression be achievable? I don't use or desire multichannel audio but that and the hardware acceleration are interesting points.

FLAC uses 1970’s era compression technology for both compression stages (lossy and residual) in order to conservatively avoid patents in the implementation. Just replace the lossy component with AAC, which is now out of patent protection, and replace Rice coding for the residual with the much better (but was still patented in the 90’s) arithmetic coding. Those two changes should get 2-4x performance improvement, as w…

[deleted]

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#197
post #193

Earlier quoted context omitted.

How would 2-3x better compression be achievable? I don't use or desire multichannel audio but that and the hardware acceleration are interesting points.

FLAC uses 1970’s era compression technology for both compression stages (lossy and residual) in order to conservatively avoid patents in the implementation. Just replace the lossy component with AAC, which is now out of patent protection, and replace Rice coding for the residual with the much better (but was still patented in the 90’s) arithmetic coding. Those two changes should get 2-4x performance improvement, as w…

Thanks. I would love to see a PoC of this making my music files that much smaller.

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#199
post #183

Earlier quoted context omitted.

> FLAC works by running a lossy compression pass, and then LZ encoding the residual. Since when does FLAC run a lossy pass? You can recover the original soundwave from a FLAC file, you can't do the same with an MP3. I'm pretty sure FLAC does not run a lossy compression pass. Flickering textures in game engines are likely due to z-fighting, unless you're referring to some other type of flickering. If you're looking to…

> The FLAC encoding algorithm consists of multiple stages. In the first stage, the input audio is split into blocks. If the audio contains multiple channels, each channel is encoded separately as a subblock. The encoder then tries to find a good mathematical approximation of the block, either by fitting a simple polynomial, or through general linear predictive coding. A description of the approximation, which is only…

LPC is lossy, but FLAC maintains enough information to be able to reproduce the original data. Therefore its lossless even though LPC is a part of the compression.

Re: New Ultra Fast Lossless Audio Codec (HALAC)

#200
Hakan; Ignore the open source stuff for now. I speak as someone from within the industry. You may not listen to me and be upset later. If those who say this had done even half the work you did, be sure they wouldn't be talking like this.

It seems that there is a serious effort. And your work clearly crushes other codecs. This will cause serious discomfort in some circles. I don't know much about HALIC, but it is said that it is also a very serious work.

There's no point in rushing for open source. First of all, improve your work as much as you can. If serious offers come later, you can evaluate them. Don't give up control.

Post reply on HN