getmusicbee.com

Support => Questions => Topic started by: iFriend on June 10, 2020, 08:56:24 AM

Title: highest possible quality resample filter (plugin)
Post by: iFriend on June 10, 2020, 08:56:24 AM
Hello,

instead of using the internal resample function (Player -> resample to), I 'd like to use a high-quality resample plugin. Please, do you have any ideas?
Title: Re: highest possible quality resample filter (plugin)
Post by: iFriend on June 13, 2020, 04:21:40 PM
guys? Any Idea please? E.g. like foobar, which has DSP items for resampling...?
Title: Re: highest possible quality resample filter (plugin)
Post by: iFriend on September 03, 2020, 04:35:34 PM
sorry to get on your nerves, but I still don't have a solution for this issue. Please note that I'm NOT a freak of up-sampling or so, but I need the 48kHz for technical reasons of my rig (it does not accept any other in the config that I need). Atm, I use the in-build up-sampling but there are really quite some differences in quality, so I'd like to use the best wavailable. Meanwhile I will have a look if I find a VST plugin that does the job, as I discovered today the MB supports VSTs. If you know of any HQ VSTs that do upsampling pls let me know!

Thank you in advance!

P.S. For winamp and foobar there are resample plugins that use SSRC: out_ds_ssrc.dll and foo_dsp_ssrc.dll . I tried to load both into MB but no success. Somewhere I read that winamp plugins are supported but seems not, or am I missing smt pls?
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 26, 2022, 08:24:09 PM
Did you ever find any solution?  Also did you do any testing to establish the quality of the internal resampler used by MB?
Title: Re: highest possible quality resample filter (plugin)
Post by: iFriend on May 26, 2022, 08:36:55 PM
Nope, did not find any solution. And I did not do any testing (if you mean with other means than by ear), but by my ears it's a clear difference...
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 26, 2022, 09:03:43 PM
Not trying to start an argument, but unless Steven went out of his way to choose a bad resampler I think it would not be easy to hear a clear difference.  There are definitely resamplers out there that result in bad quality, but given that latency performance is irrelevant for a music player I highly doubt this is what we have.  Still, I can agree that it can definitely be auditable and significant in quality degradation, which is why I hope we can get a little more insight about the resampler used.
Edit: Hopefully somebody knowledgeable here or in the new thread I started https://getmusicbee.com/forum/index.php?topic=36624.0 will reply to give some information about what kind of resampler is being used.
Title: Re: highest possible quality resample filter (plugin)
Post by: iFriend on May 26, 2022, 09:19:42 PM
thank you, ikonomov. I fully understand your perspective. I personally learned that "audible" depends on so many factors that it's difficult to tell. In my case, being a musician, I invested quite some money in good stuff, e.g. headphones for around 800 EUR, etc. I personally definitely hear a difference. There is also a reason I suspect why some people program high quality resamplers. Anyway, again, thanks for commenting, etc. Btw, I use RME too :)
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 26, 2022, 10:51:57 PM
hiccup replied in the other thread that I posted stating that likely BASS's built-in resampler is the one used by MusicBee.  It looks to be a popular audio engine, likely with a quality resampler, but somebody created a resample library on GitHub https://github.com/aidan-g/BASS_SOX specifically to be used with BASS, so many not.  You said you can definitely hear a difference.  Can you provide a little more detail about the source material that you use to compare and what sample rate do you use to upsample to.  Since you said you use RME I assume you use ASIO driver for the output, but can you confirm that this is what you use when you do the comparison.  I just did a bit of A/B comparison between 44.1 kHz file with and without being upsampled to 96 kHz and I can't hear a difference.  I use AKG K712 Pro headphones together with RME Babyface and an external O2 headphone amp.  I tested it with many different sound files.  Theoretically if the resampler is "good enough" and not actually bad (some examples here of both https://lastique.github.io/src_test/) there could actually be a potential benefits with the filter used when upsampling.
Title: Re: highest possible quality resample filter (plugin)
Post by: iFriend on May 27, 2022, 01:07:14 PM
Thank you ikonomov! This whole thing is quiet some time ago. Atm, I'm not able to remember any details about the material, nor do I have resources to repeat any tests (my health is not the best). But I will answer as much as I can: yes, I always use ASIO (RME ADI 2 DAC FS), using AKG reference headphones. I definitely upsampled from 44.1 to 48, nothing else, because that's what I was interested in at that time.
Just as a hint, you may want to look into DAC upsampling tech on youtube. There are quite some details as far as I remember. Still, as these things are also sometimes very subjective, I may just have heard "a ghost", so as long as you are ok with it maybe just enjoy!
I just think that it would be good if MB could offer the possibility to include hi-q upsampling plugins (e.g. SSRC).
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 27, 2022, 04:28:26 PM
I agree, it would be nice to have some indication as to the quality of the resampler used.  I tried to find tests of the BASS resampler that somebody might have done, but I couldn't find any.  It is very likely that it is good enough as I highly doubt that it can be worse quality than the one Windows 10 uses, and that has already been instrument tested couple of times and shown to be good enough.  So a solution would be to allow sampling plugins as you suggested or maybe include a high quality resampler as an option in the settings.  SOX comes to mind since somebody already did a plugin for it https://github.com/aidan-g/BASS_SOX and it is highly regarded resampler for quality when configured that way.  As for your hearing tests, among many factors that can contribute to this maybe it is possible that you have heard sound degradation because you were upsampling from 44.1 to 48kHz.  The general consensus seems to be that it is best to upsample with an integer factor of 2 or 4.  I couldn't hear any difference at 96kHz which also has interpolation, but maybe interpolation works better at 96kHz.  If we are stuck with BASS resampler hopefully one of those days somebody will care enough to do some instrument tests or maybe people more knowledgeable about the BASS resampler can provide some information.
Title: Re: highest possible quality resample filter (plugin)
Post by: phred on May 27, 2022, 04:33:26 PM
 If we are stuck with BASS resampler hopefully one of those days somebody will care enough to do some instrument tests or maybe people more knowledgeable about the BASS resampler can provide some information.
This is something you should take up with the BASS developer.
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 27, 2022, 04:52:14 PM
If we are stuck with BASS resampler hopefully one of those days somebody will care enough to do some instrument tests or maybe people more knowledgeable about the BASS resampler can provide some information.
This is something you should take up with the BASS developer.

Thank you for the reply phred.  According to this post here http://www.un4seen.com/forum/?topic=17860.msg125464#msg125464 the resampling by bassasio.dll can have either BASSASIO or BASSmix handle resampling stating that having BASSmix handle it offers higher quality via the BASS_ATTRIB_SRC attribute.  Do you know if this was done in MB?  As I understand it the BASS library provides configuration options for the resampler which MB hasn't made configurable through the settings, do you know how it has been configured?  Once we know this then I can ask in the BASS forum and hopefully we can gain a little more insight.
Title: Re: highest possible quality resample filter (plugin)
Post by: hiccup on May 27, 2022, 04:52:22 PM
I agree, it would be nice to have some indication as to the quality of the resampler used.
The only relevant indication on that (to me) would be reproducible blind tests.
And that seems to be a very big problem when it concerns up-sampling.
Even a sensible notion such as that up-sampling would best be done in factors of natural numbers is sometimes disputed by some people with solid technical backgrounds who say it really doesn't make any discernible difference.

So my advice to anyone that has some feelings of insecurity about the matter of up-sampling (in relation to listening and enjoying music, which is what any music player such as MusicBee is intended for):

1. Either don't use up-sampling.  (you can then be confident that MusicBee will output a bit-perfect signal)
2. Or use your ears, and decide for yourself if you are able to hear differences, and then decide on the best approach for you and your equipment and circumstances. And that will be strictly personal.


edit:
To the respected forum members participating in this thread:
To test various upsamplers yourself, you don't need to wait for further explanations about the way how MusicBee uses upsampling, nor what upsampling plugins do work, or which ones don't.
There are plenty ways to try out different up-sampling methods and algorithms, without any need to (solely) use MusicBee for testing them.
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 27, 2022, 06:04:59 PM
I agree, it would be nice to have some indication as to the quality of the resampler used.
The only relevant indication on that (to me) would be reproducible blind tests.
And that seems to be a very big problem when it concerns up-sampling.
Even a sensible notion such as that up-sampling would best be done in factors of natural numbers is sometimes disputed by some people with solid technical backgrounds who say it really doesn't make any discernible difference.

So my advice to anyone that has some feelings of insecurity about the matter of up-sampling (in relation to listening and enjoying music, which is what any music player such as MusicBee is intended for):

1. Either don't use up-sampling.  (you can then be confident that MusicBee will output a bit-perfect signal)
2. Or use your ears, and decide for yourself if you are able to hear differences, and then decide on the best approach for you and your equipment and circumstances. And that will be strictly personal.


edit:
To the respected forum members participating in this thread:
To test various upsamplers yourself, you don't need to wait for further explanations about the way how MusicBee uses upsampling, nor what upsampling plugins do work, or which ones don't.
There are plenty ways to try out different up-sampling methods and algorithms, without any need to (solely) use MusicBee for testing them.

Be that as it may, your response has the potential to leave us in the dark when it comes to the question of upsampling.  I just don't see what's the problem of having a bit of information about how it has been configured in MB.  Upsampling can be a useful tool depending on people's setup and there is no reason to defeat its purpose or the importance of its quality by talking about bit-perfect signal chain or using our ears when iFriend has already confirmed that he hears sound degradation.
Title: Re: highest possible quality resample filter (plugin)
Post by: sveakul on May 27, 2022, 06:38:58 PM
Before this ends up being drowned in discussion about what resampler is best, how do they affect sound, etc., which are all discussed ad nauseum elsewhere on the web, I do think that the original "root" question is fine to ask on its own just out of curiousity, which is, when the "resample to" box is checked in MB's player preferences, by what method does MusicBee perform the resampling?  And I politely present that now to Steven.

Like hiccup I perform no resampling (WASAPI Exclusive) so personally have no horse in the race.
Title: Re: highest possible quality resample filter (plugin)
Post by: hiccup on May 27, 2022, 07:11:19 PM
Be that as it may, your response has the potential to leave us in the dark when it comes to the question of upsampling…
…when iFriend has already confirmed that he hears sound degradation…

I have been trying to shed some light on things by explaining that MusicBee uses Bass as the audio engine, and that Bass will also take care of the upsampling part.
I am not saying input from MusicBee's developer couldn't shed extra light on the matter, but for as far as I read this thread there are two things going on here:

1. What the technical details of the upsampling algorithm that MusicBee uses are.

2. A user stating that he heard a clear difference using 'another' upsampler.

The first item should be asked to the Bass developer, using the Bass forum. (I gave a link to that before)
And if anyone is convinced that Bass is using an inferior method of upsampling, it would be good if he would then present any assumed flaws, and suggest possible improvements to the Bass developer (un4seen).

The second item should be substantiated a bit better to have any chance of being a benefit to other MusicBee users.
What upsampler? How was testing done exactly? Is it available in any way or form so that it has a reasonable chance to be used by MusicBee as e.g. a plugin?
 (and to be factually correct; he did not say that there was a 'sound degradation', he said that he could hear a 'clear difference')

About the technicalities of upsampling and discussing them here, I agree with what Sveakul just said:
Discussions on the technical details, usefulness, purposes or differences between upsampling methods are best to be had on fora that pertain to the technicalities of audio.
There are many fora that are frequented by, and contributed to by audio professionals that have experience and expertise on such matters.
The quality of both the discussions and the answers about something like resampling will likely be higher there.
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 28, 2022, 12:09:46 AM
I have been trying to shed some light on things by explaining that MusicBee uses Bass as the audio engine, and that Bass will also take care of the upsampling part.
Perhaps I should have been more concise and clear about exactly what I'm asking.  Most sound libraries allow parameters to be set when implementing them into a program.  I know for a fact that some resampler libraries do not and only have a default setting.  I tried to look this up in the BASS documentation and I could not find it, yet according to this post that I've linked already (http://www.un4seen.com/forum/?topic=17860.msg125464#msg125464) it leads me to believe that 1. the ASIO output can be configured with two different resamplers and 2. the resampler that BASSmix uses can likely be further configured via BASS_ATTRIB_SRC attribute.  Those 2 things must be configured in MB as the library was implemented.  This is specifically what I'm asking and hopefully somebody knows and can answer before we can try to find more information about the resampler in the un4seen forum.
Title: Re: highest possible quality resample filter (plugin)
Post by: Steven on May 28, 2022, 12:12:01 AM
i havent read through all of this thread but just to confirm MB configures bass to use the highest quality setting available and secondly, some time ago the bass developer upgraded the re-sampling algorithm so any comparison tests done a long time ago are no longer applicable
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 28, 2022, 12:20:34 AM
i havent read through all of this thread but just to confirm MB configures bass to use the highest quality setting available and secondly, some time ago the bass developer upgraded the re-sampling algorithm so any comparison tests done a long time ago are no longer applicable
Thank you Steven!
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 28, 2022, 04:31:29 AM
According to the documentation http://www.un4seen.com/doc/#bass/BASS_ATTRIB_SRC.html the highest resampling quality setting is 4 which uses 64 point sinc interpolation.  The documentation is quite limited and there is no mention about the type of filter used.  I've posted my question here https://www.un4seen.com/forum/?topic=19778.0 so hopefully we get a bit more information.
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on May 31, 2022, 10:13:22 PM
Thanks to information provided by Ian Luck, the developer of BASS, the resampler's quality with BASS_CONFIG_SRC=4 (maybe Steven can confirm) should be pretty close to the results from "iZotope RX 8.1 (Default)" that has been tested at http://src.infinitewave.ca/.  Here it is compared to SOX with VHQ Linear Phase setting that can be considered a reference.

(https://i.imgur.com/DNH3wD4.jpg)

(https://i.imgur.com/HbXTOeA.jpg)

Unless somebody specifically tests BASS with the setting that MB uses we can't be 100% sure, but if those results give some sort of approximation, it looks practically flawless.
Title: Re: highest possible quality resample filter (plugin)
Post by: hiccup on June 01, 2022, 07:25:27 AM
Unless somebody specifically tests BASS with the setting that MB uses we can't be 100% sure, but if those results give some sort of approximation, it looks practically flawless.
I was curious how you meant 'flawless'.

Do you mean both resemble a lot?
(passband and transition are a bit different though)

I am assuming you don't mean 'technically' perfect?
There is no such thing as 'perfect' where it concerns re-sampling.
It will always involve choices of methods of filtering, that each have their own strengths and weaknesses.

In Izotope you can adjust a lot of the filtering aspects yourself to match any personal preference:

(https://i.imgur.com/1JCssk8.png)

Another important filtering choice is to use linear vs. minimum phase filtering.
One is technically more correct, the other may 'sound better' sometimes.

While there may exist mediocre resamplers, most these days are pretty good.
But as soon as you decide to use one you will have to accept that you are altering the original signal, and it will be subjective for every person and situation if it makes any sense to do so.

PS
I am guessing I am not telling you anything you didn't already know.
But other—less technically savvy—users may be following this topic, and they might get the impression that upsampling can be 'perfect', or that it will undisputably improve things.
Title: Re: highest possible quality resample filter (plugin)
Post by: ikonomov on June 01, 2022, 09:54:02 PM
Indeed.  This is why I said "practically flawless".  I inserted the "practically" in there in an attempt not to rattle the cage of the kind of audiophiles that must find this discussion suffocating.  As for the technicality of being flawless, such a concept cannot exist for audio in general and also specifically when it comes to DA converters that oversample because we want them to.  I personally started to use upsampling recently (for lower than 96kHz sources) simply for convenience because of my setup and that is it.  When upsampling an easy way to ruin the quality of audio is to use bad resamplers, since they do exist, and the reason why I've taken an interest in the resampler used by MusicBee.
Title: Re: highest possible quality resample filter (plugin)
Post by: hiccup on June 01, 2022, 10:04:43 PM
Indeed.  This is why I said "practically flawless".
I apologise. I should have included 'practically' when I made a reference to what you wrote.
Title: Re: highest possible quality resample filter (plugin)
Post by: hiccup on June 01, 2022, 10:34:12 PM
…in an attempt not to rattle the cage of the kind of audiophiles that must find this discussion suffocating.
Feel free to rattle all the cages that you want.
I'm not sure what 'audiophiles' you think that would find this discussion 'suffocating'.
If suffocated audiophiles exist (and are reading this topic), they would be welcome to join the discussion and speak for themselves.

Facts should be leading in all this.
And where facts can't be provided, let's just call everything else personal and subjective opinions.