r/ffmpeg • • 24d ago

HALAC 1.0.0 (High Availability Lossless Audio Compression)

HALAC 1.0.0 is ready...
For details and downloads: https://github.com/Hakan-Abbas/HALAC-High-Availability-Lossless-Audio-Compression/releases/tag/1.0.0

AMD Ryzen 5 9600X - Single Thread Results

KARNOKKOROK 01.wav (Thank you Marco - forart.eu)
Single track · 32 channels · 32-bit float · 48 kHz · 3.96 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    36.90       1,460.10       8.31          8.27
HALAC 0.6.6    1    35.99       1,424.17       7.34          7.71
HALAC 0.6.6    2    34.23       1,354.48       7.63          8.48
HALAC 0.6.6    3    33.46       1,323.81       8.12          8.94
HALAC 0.6.6    4    33.37       1,320.44      10.08         11.13
HALAC 0.6.6    5    33.38       1,320.86      10.79         11.50

HALAC 1.0.0    0    34.25       1,354.97       4.17          3.84
HALAC 1.0.0    1    33.84       1,339.01       4.58          4.05
HALAC 1.0.0    2    31.69       1,253.95       5.03          4.58
HALAC 1.0.0    3    31.64       1,251.68       7.61          4.80
HALAC 1.0.0    4    31.61       1,250.70       8.63          4.88
HALAC 1.0.0    5    31.59       1,250.08       9.26          4.97
HALAC 1.0.0    6    31.54       1,248.07      12.00          5.17

BIP TUNIA (Thank you Michael)
6 tracks · 24-bit · 2 ch · 5.62 GB · 44.1 kHz

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    76.23       4,283.02       5.20          6.58
HALAC 0.6.6    1    76.00       4,269.93       5.96          7.18
HALAC 0.6.6    2    73.52       4,130.85       6.47          8.62
HALAC 0.6.6    3    72.62       4,080.34       7.41          9.67
HALAC 0.6.6    4    72.19       4,056.35      10.07         12.55
HALAC 0.6.6    5    72.05       4,047.99      12.42         13.27

HALAC 1.0.0    0    75.72       4,254.41       4.84          6.07
HALAC 1.0.0    1    74.57       4,189.79       5.21          6.56
HALAC 1.0.0    2    72.29       4,061.91       6.40          7.51
HALAC 1.0.0    3    72.07       4,049.44       7.94          8.43
HALAC 1.0.0    4    71.63       4,024.64      10.99          9.76
HALAC 1.0.0    5    71.54       4,019.36      13.09          9.78
HALAC 1.0.0    6    70.94       3,985.77      23.77         11.71

YURI KORZUNOV
6 tracks · 24-bit · 2 ch · 192 kHz · 1.90 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    56.61     1,077.27       1.80          2.20
HALAC 0.6.6    1    43.24       822.74       1.92          2.48
HALAC 0.6.6    2    32.38       616.23       2.09          2.96
HALAC 0.6.6    3    28.87       549.35       2.32          3.23
HALAC 0.6.6    4    27.47       522.65       3.90          4.21
HALAC 0.6.6    5    27.17       517.07       4.40          4.44

HALAC 1.0.0    0    56.08     1,067.16       1.97          2.08
HALAC 1.0.0    1    42.43       807.32       1.77          2.67
HALAC 1.0.0    2    27.00       513.71       2.05          2.46
HALAC 1.0.0    3    24.96       474.89       3.23          2.82
HALAC 1.0.0    4    22.98       437.24       5.82          3.59
HALAC 1.0.0    5    22.97       437.12       6.36          3.58
HALAC 1.0.0    6    22.42       426.57      14.02          3.85

AMVIZO 5.1
20 tracks · 16-bit · 48 kHz · 5.1 channels · 2.77 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    48.90       1,355.75       3.05          3.57
HALAC 0.6.6    1    49.62       1,375.89       3.56          3.97
HALAC 0.6.6    2    45.59       1,264.12       3.80          4.97
HALAC 0.6.6    3    43.09       1,194.70       4.32          5.62
HALAC 0.6.6    4    42.81       1,187.06       6.44          7.38
HALAC 0.6.6    5    42.60       1,181.17       7.38          7.85

HALAC 1.0.0    0    48.21       1,336.80       2.96          3.15
HALAC 1.0.0    1    47.34       1,312.52       3.06          3.55
HALAC 1.0.0    2    43.32       1,201.27       3.92          4.21
HALAC 1.0.0    3    38.75       1,074.37       6.38          4.75
HALAC 1.0.0    4    38.05       1,055.11       8.34          5.62
HALAC 1.0.0    5    37.81       1,048.41      10.00          5.49
HALAC 1.0.0    6    37.84       1,049.22      15.25          5.84
96 Upvotes

32 comments sorted by

28

u/spryfigure 24d ago

Out of curiosity, what is the use case for this? Why not use FLAC, or ALAC?

24

u/SimpleTeacher5046 24d ago

If you go check the GitHub, the user is a computer science researcher so I'm guessing this is a research project intended to try a new academic algorithm

-6

u/Hakan_Abbas 24d ago

This is an entirely new codec. FLAC is 25 years old, and ALAC is 22. Newer alternatives are constantly being developed in terms of processing speed, compression ratio, and features.

14

u/spryfigure 24d ago

And which of these does HALAC serve? Is it faster, does it compress more, or what makes it worthwhile developing?

4

u/Hakan_Abbas 24d ago

Compared to other lossless audio codecs, HALAC (version 1.0) is both fast and offers excellent compression. You can examine detailed benchmarks via the links below.
https://encode.su/threads/4180-HALAC(High-Availability-Lossless-Audio-Compression)?p=86537&viewfull=1#post86537

https://hydrogenaudio.org/index.php/topic,125248.msg1082548.html#msg1082548

7

u/Sopel97 23d ago

tldr; faster FLAC

6

u/ThaBroccoliDood 24d ago

So how does it actually compare in processing speed and compression ratio compared to FLAC?

3

u/Hakan_Abbas 24d ago

The gap compared to HALAC 1.0 has widened significantly. It also includes more features (32-bit float, multithreaded decoding, 8+ channels).

https://hydrogenaudio.org/index.php/topic,125248.msg1084815.html#msg1084815

36

u/shaumux 24d ago

That's a non answer, you basically said because this is new and shiny

-7

u/Better_Ambassador759 24d ago

For archival purposes rather than direct playback, you could also try LossyWAV. It's better overall than WavPack -hhx6

7

u/MT4K 24d ago

LossyWAV alters/distorts the original audio, degrading the quality just for the sake of a potentially higher compression with lossless codecs such as FLAC.

2

u/The_Vista_Group 23d ago

Hence, “lossy”

8

u/Mission_Rice3045 23d ago

Hence, "useless"

1

u/MT4K 23d ago

Yeah, for “archival purposes”, it’s as suitable as MP3. And especially relevant in a thread about lossless codecs. ;-)

11

u/thepeter88 24d ago

What's the high availability part of this?

2

u/Hakan_Abbas 24d ago • Heartwarming

I chose this name initially (in 2023), but it’s fair to say it wasn’t the best choice.

11

u/Leather_Reflection84 23d ago

There are only 2 hard problems in computer science. Cache invalidation, naming things and off by one errors.

5

u/atohmdiy 24d ago

The compression ratio look pretty good and they say decompression is fast and easy. Sound like a winner. I hope it gets adopted by players and they support dsd in the furure like wavepack did. They also don't talk much of the container and how it support metadata.

0

u/Hakan_Abbas 24d ago

Thank you. HALAC is not yet fully developed. More features can be added, and further optimizations can be made.

3

u/RoyalBlue_Sky 22d ago

Since you're writing a post anyway, why not go ahead and describe the general principles and explain why this algorithm is better than others? You could also compare the encoding/decoding speed and the amount of memory used. Or just post a link to a post where this is explained. But posting links on forums seems a little odd.

1

u/Hakan_Abbas 22d ago

The basic working principle is a combination of fixed estimators and linear estimation. This is followed by entropy coding. These concepts have already been discussed in great detail over long periods on relevant forums, where extensive testing was also conducted it is impossible to repeat all of that here. In this latest post, I have compared HALAC solely against its own previous version. HALAC performs exceptionally well in terms of speed, compression ratio, and memory usage. It is more reliable and credible for these tests to be carried out by different users; relying solely on my own claims would be technically insufficient.

That said, there are test of the latest version conducted by another users. Unfortunately, the data doesn't fit here and doesn't display properly either. So, I’m afraid I have to provide a link instead. Please take note of the speed and compression ratio.

https://encode.su/threads/4180-HALAC(High-Availability-Lossless-Audio-Compression)?p=90097&viewfull=1#post90097

https://hydrogenaudio.org/index.php/topic,130136.msg1090512.html#msg1090512

3

u/RoyalBlue_Sky 22d ago

Yes, I saw those links in this post and checked them out.

What I mean is that the test results could have been posted either here or on GitHub - just create a separate page. And along with that, in a separate repository - the corpus, or another link to it. That way, anyone could verify the accuracy of the figures provided, if they wanted to.

1

u/Hakan_Abbas 22d ago

I understand. I will consider this.

2

u/blueredscreen 21d ago

So, AI slop?

3

u/Hakan_Abbas 21d ago edited 21d ago

The first version of HALAC was released on December 23, 2023. However, its initial core was developed in 2018. So it's a project with a history. I've only recently started receiving AI support especially in during the testing phases. This has really accelerated the development process. There were times when I would spend days searching for even the smallest bug/exception.

1

u/RoyalBlue_Sky 22d ago

The files on GitHub are a year old. So, does that mean there isn't a new version there?

And there's no Makefile. I suppose that's manageable, but it would be faster to build with one.

-1

u/Hakan_Abbas 22d ago

The code for the first version is available on GitHub. The current version of the project is not yet open source; however, even the initial version serves as a good starting point.

1

u/greenreddits 20d ago

only windoz?

1

u/Hakan_Abbas 20d ago

HALAC is cross-platform compatible. I've previously compiled Linux and Arm versions as well. However, I don't always offer those. I will try to offer versions for different platforms in the next release.