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: Resampler plugin (Read 482985 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: Resampler plugin

Reply #450
I find that I'm unable to have SoX do anything but linear phase filtering (e.g. minimum phase) when resampling to 44100.  It seems this is the case with commandline SoX as well.  Any idea why this is so?

Re: Resampler plugin

Reply #451
What's the source samplerate? I hope it's not 44100 Hz?

Re: Resampler plugin

Reply #452
96kHz

Re: Resampler plugin

Reply #453
Works as expected here.

Re: Resampler plugin

Reply #454
So any further plan for updating? SoX 14.4.2 was released on February 22, 2015. Thanks.
PGP fingeprint: 1FB2F9A5A9079849905D4EECDCCEF8C4DFEA27C8

Re: Resampler plugin

Reply #455
And as far as I can tell from the commit logs, the only changes to the "rate" effect have to do with improving the speed of downsampling by factors of 3/4 or >4. Of course, that was a Github repository that hadn't been updated since 2012, but managed to have the latest readme with approximate timestamps.

Re: Resampler plugin

Reply #456
Thanks for your work. For the modified version, is it possible to input a range of frequencies to pass through or do they have to be listed individually (separated w semicolons)?

Re: Resampler plugin

Reply #457
It supports only a list of frequencies.

Re: Resampler plugin

Reply #458
What's the benefit of real-time up/down sampling? I thought people use these kind of plugins just for converting?
The benefit of real time is you don't have to remaster you entire music library to enjoy a high sample rate, because it's done on the fly.

Re: Resampler plugin

Reply #459
So any further plan for updating? SoX 14.4.2 was released on February 22, 2015. Thanks.
Hi, so far, I use the command-line of version 14.4.2 for batch conversion but I do not know 1) how to process entire folders and 2) how to keep the front cover/tags. An update of the foobar2000 component would really be great - THX! :D

Btw, has anyone done a comparison with SSRC 1.33 (June 4, 2016)?

I am looking for a simple way of converting [up to] 24/192 -> 16/48 FLAC files, mainly to recover backup space, without any audible drawbacks. Somebody suggested iZotope RX 6 but that is too expensive and too complicated to use. ;)

 

Re: Resampler plugin

Reply #460
What's the benefit of real-time up/down sampling? I thought people use these kind of plugins just for converting?
The benefit of real time is you don't have to remaster you entire music library to enjoy a high sample rate, because it's done on the fly.

And I dare say that enjoying a high sample rate resulting from upsampling is purely placebo effect. Then again, I dare say enjoying a high sample rate period is purely placebo effect. You're welcome to get your ears tested, but you'd probably be hard pressed to find any audio labs with equipment that peaks higher than 20 kHz. You could be like me, and find that at the ripe old age of 35, your hearing peaks out at around 14,800 Hz.

Re: Resampler plugin

Reply #461
What's the benefit of real-time up/down sampling? I thought people use these kind of plugins just for converting?
The benefit of real time is you don't have to remaster you entire music library to enjoy a high sample rate, because it's done on the fly.

And I dare say that enjoying a high sample rate resulting from upsampling is purely placebo effect. Then again, I dare say enjoying a high sample rate period is purely placebo effect. You're welcome to get your ears tested, but you'd probably be hard pressed to find any audio labs with equipment that peaks higher than 20 kHz. You could be like me, and find that at the ripe old age of 35, your hearing peaks out at around 14,800 Hz.

I'm 38 and I peak out at 17.4 kHz but I think that still proves the point.

But hey, you never know...maybe at 47 kHz it vibrates the paint on the wall in such a way that it actually makes it microscopically flake off thus creating the additional "paint dust falling off the wall" noise that makes the music somehow feel warmer or better

Re: Resampler plugin

Reply #462
Yes, but my point was that upsampling will not magically create frequencies that were lost in the original sampling process. It may create distortion, if the resampler is broken, but it won't bring back what was lost.

There may be hope for that sort of thing if one can train a neural network against original audio data and high quality downsampled or low pass filtered to half the original frequency response, using a wide variety of audio content. Similar to how the wonderfully named waifu2x filter works for drawn and sometimes even photographed image content.

It would probably be best trained against and trained to generate frequency domain sample data, using relatively small, overlapping windows, translated back to time domain using Fast Fourier Transform.

Re: Resampler plugin

Reply #463
waifu2x
I don't understand why image and video upsampling can really improve perceived quality in many cases, for example madVR (NGU works for everything in my opinion) and SVP. Audio upsampling is not funny at all, even for nontransparent sample rates like 16kHz.

Re: Resampler plugin

Reply #464
waifu2x
I don't understand why image and video upsampling can really improve perceived quality in many cases, for example madVR (NGU works for everything in my opinion) and SVP. Audio upsampling is not funny at all, even for nontransparent sample rates like 16kHz.

You can perfectly represent a bandlimited signal by way of discrete samples if you respect the Nyquist rate. When you are dealing with an already sampled signal it also means it has already been bandlimited (properly or not, that's another question), so it has what it has. What was there before the signal was bandlimited is gone for good. Up sampling will just attempt to represent the same bandlimited signal (or very close) with more samples than necesary.

Now, these techniques you mention are NOT resampling. They are not sampling an already existing signal which is reconstructed from the existing samples. Instead, they are GUESSING what might have been there before the bandlimiting process, or, more properly said, they attempt to fill the gaps with what a human observer would expect to perceive, or, at least, something that doesn't seem too much out of place as to be perceived as broken or unpleasant.

Resampling is straight math, while these reconstructive processes are more of a creative process. Not saying they have no merit or scientific basis, nor that they don't produce satisfactory results, but their aim isn't, and can't possibly be, taking an already sampled signal (and thus, inherently bandlimited, properly or not), as input and somehow roll time back and sample the original non-bandlimited signal at a higher sampling rate.
Despite all the math involved, it's still inherently an art of guesswork. The programmers try codify with a programming language what an impossibly good human reconstructor/restaurator would do if it was practical to spend years adding the perceived missing content to bandlimited signals

It's a VERY different approach and principle.

Re: Resampler plugin

Reply #465
Sorry for the dumb question but it's been a long time since I added components.  I don't see SoX on the foobar components page, and the download (for mod version) gives me just a dll.  Foobar 1.3.11 doesn't seem to recognize this file type as a component to install anymore; it wants fb2k-component files.  Any idea how to get this installed?  Running Win 10.

Re: Resampler plugin

Reply #466
and the download (for mod version) gives me just a dll.

No, it should give you .zip file, and foobar2000 supports both .fb2k-component and .zip files.


Re: Resampler plugin

Reply #468
Extrapolation feature seems to work nicely.

Re: Resampler plugin

Reply #469
Hi Developer!
Can you update the plugin for  352.8 kHz and 384 kHz frequencies, please.

Re: Resampler plugin

Reply #470
Can you update the plugin for  352.8 kHz and 384 kHz frequencies, please.
Plugin already supports 352.8 kHz and 384 kHz (it supports up to 2822400 Hz). Just enter needed frequency manually using digits on keyboard.

Re: Resampler plugin

Reply #471
For the command line interface I'm using these parameters for resampling -G - rate -v -L <targetrate>
To be sure, is Ivqcl's plugin qualitywise up to pair with cmdline interface with used params and does the SoX utility provide the extrapolation feature?

Re: Resampler plugin

Reply #472
For the command line interface I'm using these parameters for resampling -G - rate -v -L <targetrate>
To be sure, is Ivqcl's plugin qualitywise up to pair with cmdline interface with used params and does the SoX utility provide the extrapolation feature?
Ivqcl's plugin is  up to pair with cmdline qualitywise with used params. (Passband: 95% (SoX default), Quality: Best, Allow aliasing: disabled, Phase response: 50% (linear)) But it doesn't provide guard against clipping (-G option). But are you able to hear clipping from resampling?
SoX commandline tool doesn't provide extrapolation feature.

Re: Resampler plugin

Reply #473
Actually foobar2000 component wins the command line in quality. The command line interface can't do floats and suffers from unnecessary rounding and of course clipping. And if you use a parameter to prevent clipping you alter the volume.

Re: Resampler plugin

Reply #474
Thanks!