AIMP Forum

AIMP for PC => Вопросы / Questions => Topic started by: betteraxin on May 22, 2025, 03:09:49

Title: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 22, 2025, 03:09:49
A 48000hz FLAC lossless file becomes lossy after being converted to 44100hz, But using Adobe Audition to do the same operation is still lossless,I think this may be a problem with the FLAC encoder parameter settings,Hope it can be solved. Thanks.
(https://i.ibb.co/LX0wBdSG/20250522080314-25.png) (https://ibb.co/FLhvc46P)
(https://i.ibb.co/4wTZJZGY/20250522080328-26.png) (https://ibb.co/ds2070qL)
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Soolo on May 22, 2025, 08:43:10
Это работа фильтра подавления алиасинга, настройка ресемплера.
Если не резать частоту - будут возникать паразитные частоты, которые вы не увидите на картинке, но они будут ухудшать звук.
https://www.aimp.ru/blogs/?p=312
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 22, 2025, 14:39:00
Это работа фильтра подавления алиасинга, настройка ресемплера.
Если не резать частоту - будут возникать паразитные частоты, которые вы не увидите на картинке, но они будут ухудшать звук.
https://www.aimp.ru/blogs/?p=312
I don't think so. I have professional Speaker and I can't hear any difference between them. I used two professional music editing softwares, Ableton Live 12 Suite and FL Studio 21, to do the same operation. The results are the same as those obtained using Adobe Audition 2025. They are still lossless. See the spectrograms after they are converted. Ableton Live 12 Suite and FL Studio 21 are professional music production software. I believe their developers should know this.
(https://i.ibb.co/kgYLFD9W/20250522192101-28.png) (https://ibb.co/svLTr16M)
(https://i.ibb.co/C5LFt82Z/20250522192114-29.png) (https://ibb.co/SXSpxyr8)
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Artem on May 22, 2025, 14:50:45
What resampler settings you used in AIMP for these results?
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 22, 2025, 16:17:29
What resampler settings you used in AIMP for these results?
Just change FLAC 48000 to 44100, other parameters are not changed. I uploaded the original file and the files converted using four softwares

https://mega.nz/file/5PUyQJ5S#Bjv_1jg6C1k2n3LVk0PyeTMZt-b1kCphQzswY8YYjt0
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Artem on May 23, 2025, 09:00:08
Just change FLAC 48000 to 44100, other parameters are not changed. I uploaded the original file and the files converted using four softwares

Refer to app settings \ Sound output \ transform, the "resampling" group. What state of the resampling slider?
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 23, 2025, 11:55:02
Refer to app settings \ Sound output \ transform, the "resampling" group. What state of the resampling slider?
(https://i.ibb.co/21FBJPfT/20250523163338-35.png) (https://ibb.co/dwfyZ6zR)
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Soolo on May 23, 2025, 12:48:03
Open settings from converter
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 23, 2025, 16:16:53
Open settings from converter
(https://i.ibb.co/BHY2MKvF/20250523211524-38.png) (https://ibb.co/PsVGHzJ0)
(https://i.ibb.co/cKZY9dKc/20250523211530-39.png) (https://ibb.co/dsVmvys0)
(https://i.ibb.co/q3V0j1HN/20250523211537-40.png) (https://ibb.co/5gwY4cQr)
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Artem on May 24, 2025, 23:25:13
Thanks, please try this build:
https://disk.yandex.ru/d/tQAJPACai7RfMA
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 25, 2025, 00:22:05
Thanks, please try this build:
https://disk.yandex.ru/d/tQAJPACai7RfMA
I tried it, it's still the same as version 2675. I think this is caused by the parameters of the flac encoder output (or the encoder code).
Below I provide the file of this 48000hz and the software used to view the spectrum. You can test it yourself. If converted to 44100hz, its spectrum reaches 22khz, It means it is perfect. You can also find a 48000hz song to test it yourself
https://www.spek.cc/
https://mega.nz/file/wG0nWDqL#b6dXW_eQKkkBnCAlPE31RrqUOJ2Du38Wb34acukbV2Y
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Artem on May 25, 2025, 20:42:25
It seems the issue was related to SoX Resampling library (that used in AIMP)

I've tested within the FFmpeg tool using following command line:

Code: [Select]
ffmpeg -i test.wav -af aresample=resampler=soxr -precision 28 -ar 44100 -sample_fmt s16 test.out.wav

and got same result:
(https://www.aimp.ru/forum/index.php?action=dlattach;topic=74777.0;attach=74230)
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: Artem on May 28, 2025, 12:46:34
Please, try this build:
https://disk.yandex.ru/d/-Om0zR4gi_AZiw
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: betteraxin on May 28, 2025, 17:27:32
Please, try this build:
https://disk.yandex.ru/d/-Om0zR4gi_AZiw
Thank you. I just tested it. It's much better than before. But it's still lossy. It's cut off before it reaches 22khz.
(https://i.ibb.co/PGBYhCkR/20250528222124-46.png) (https://ibb.co/YBvWkjg6)
(https://i.ibb.co/DDPL9Ps0/20250528222423-47.png) (https://ibb.co/zhWNXWjq)
Title: Re: Changing the sampling rate turns lossless into lossy
Post by: MCW on May 28, 2025, 21:16:28
Результаты работы разных ресемплеров (настроенны на максимальное качество), если судить по картинке анализатора спектра, по вносимым ими искажениям разговор отдельный.

Оригинал
(https://i125.fastpic.org/big/2025/0528/8d/13ae6d0ff35ed1d0439bbbc59d0b208d.png)

RA
(https://i125.fastpic.org/big/2025/0528/aa/20d7efb41682a795bf5edd10972687aa.png)

SSRC
(https://i125.fastpic.org/big/2025/0528/52/8e503a2f3a4548419b3c11cbdbdac152.png)

SoX
(https://i125.fastpic.org/big/2025/0528/f7/4461a03f3921d99a2ea0f2bcb058dff7.png)

SRC
(https://i125.fastpic.org/big/2025/0528/df/8693c89d660303a6943b07d7b37aa5df.png)