Hydrogenaudio Forums

Hosted Forums => foobar2000 => Uploads - (fb2k) => Topic started by: lvqcl on 18 November, 2008, 08:11:17 PM

Title: A new resampler DSP for foobar2000
Post by: lvqcl on 18 November, 2008, 08:11:17 PM
Good & fast resampler based on SoX (http://sox.sourceforge.net/) resampling routines. (several times faster than PPHS Ultra).

0.8.3:
normal version: [attachment=7330:foo_dsp_...er_0.8.3.zip]modified (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=67373&view=findpost&p=619578): [attachment=7331:foo_dsp_...od_0.8.3.zip]and [attachment=7332:foo_dsp_...d2_0.8.3.zip]
sources: [attachment=7333:foo_dsp_....8.3_src.rar]


Discussion thread is here (http://www.hydrogenaudio.org/forums/index.php?showtopic=67376&hl=).
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 26 November, 2008, 04:05:45 PM
Changelog:

Version 0.8.3:Version 0.8.2:Version 0.8.1:Version 0.8.0:Version 0.7.9:Version 0.7.8:Version 0.7.6:Version 0.7.0:
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 04 December, 2008, 04:12:40 PM
<OLD content>

Version 0.6.9:Version 0.6.8:Version 0.6.6 have new quality modes:Version 0.6.0:Version 0.5.6 (for CPU with SSE3 support):Version 0.5.5:Version 0.5.4.4 (for CPU without SSE3 support):Version 0.5.4.3:Version 0.5.4.2:Version 0.5.4.1:Version 0.5.3:Version 0.5.2:Version 0.5.0:Version 0.4.0: was alpha only.

Version 0.3.2:Version 0.3.1:Version 0.3.0a: plugin is just renamed to a shorter name. Nothing more, even plugin version number is still 0.3.0.

Version 0.3.0:Version 0.2.1:Version 0.2.0:
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 05 March, 2009, 05:28:49 PM
Modified version allows you to set a list of input frequencies that will pass through the plugin, unmodified. Or it can choose proper output frequency from the list.

*_mod: It doesn't resample the frequencies that you enter in the text field.

*_mod2: It resamples only the frequencies that you enter in the field.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 10 June, 2009, 01:47:30 PM
Normal quality is enough for 16-bit precision output and is noticeably faster than Best.
Use Best mode if higher precision (24-bit, 32-bit float) is needed.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 15 June, 2009, 12:30:50 PM
.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 19 November, 2009, 12:22:27 PM
.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 12 January, 2010, 02:12:36 PM
.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 28 May, 2010, 02:27:50 PM
.
Title: A new resampler DSP for foobar2000
Post by: shakey_snake on 18 June, 2010, 01:39:42 PM
Discussion posts moved to discussion thread.

Please follow the Uploads - (fb2k) forum guidelines found in the stickied thread (http://www.hydrogenaudio.org/forums/index.php?showtopic=63848), guys.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 24 August, 2010, 02:45:25 PM
.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 14 September, 2010, 03:27:48 PM
.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 19 November, 2010, 01:02:33 PM
TWIMC: Speex SRC for foobar2000. I just took SoX resampler component and replaced SoX routines with Speex routines. Sources included.
(another implementation: http://www.hydrogenaudio.org/forums/index....howtopic=90322) (http://www.hydrogenaudio.org/forums/index.php?showtopic=90322))
[attachment=7009:foo_dsp_speexsrc.rar]
Update: Speex SRC with a few improvements from opus-tools (http://git.xiph.org/?p=opus-tools.git;a=summary) project:
[attachment=7075:foo_dsp_...rc_0.1.2.rar]
Title: A new resampler DSP for foobar2000
Post by: o770 on 28 April, 2012, 07:34:43 PM
Thanks for your work but Foobar only installs components from zip and rar archives, you provide the main component in zip already, so why the 7z?
Title: A new resampler DSP for foobar2000
Post by: tpijag on 28 April, 2012, 08:04:33 PM
Has not always been the case and post is from 1.5 years ago when it may not of been the case. Also looks to be a different version than post#1.
Is the point of your post that you want to install? If so, drag dll to the components preference page of your foobar2000 installation. By the way, this is the uploads forum and questions regarding the component should be placed in the appropriate dedicated thread.
regards
Title: A new resampler DSP for foobar2000
Post by: sam5050 on 23 May, 2012, 03:38:41 PM
Love the SoX reampler in Foobar - I have tested it against other DSPs. It is still the best.  Even beats JPlay on system using 176k resampling of redbook files.

Request - my new DAC/PC interface can handle up to 384K , I would like to re-sample my redbook files from 44 to 352, can you add a 352k sample rate or an 8x option in your next update.

I have some archived LPs I recorded at 176 and the 2x option worked great!  Sounded a bit better then 176k.

Thanks again for a great plugin!
Title: A new resampler DSP for foobar2000
Post by: skuppy on 29 July, 2012, 05:16:51 PM
Really great resampler! Looking forward to all future updates! Thank you so much.
Title: A new resampler DSP for foobar2000
Post by: mudlord on 29 July, 2012, 06:58:47 PM
Thanks also for reimplementing my Speex resampler. So there indeed was some buffering bugs
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 06 August, 2012, 11:29:40 AM
.
Title: A new resampler DSP for foobar2000
Post by: Oery on 09 August, 2012, 06:03:54 AM
SoX resampler 0.8.0 beta:  uses newer version of the resampling algorithm, with downsampling speed-up. Want to test?

(Attachment)
(Attachment)

thank you............
Title: A new resampler DSP for foobar2000
Post by: SoNic67 on 09 August, 2012, 07:41:54 PM
Thanks, will test it right now.
I upsample most of the time thou...

LE: 44.1>96 and 192>96 sound clean.
Title: A new resampler DSP for foobar2000
Post by: BarracudaSurf on 30 December, 2012, 03:18:44 AM
Hello, is there going to be a "mod" edition of 0.8.3?

I find the "mod" version very practical, I use it to upsample/downsample different sample rates.



Good & fast resampler based on SoX (http://sox.sourceforge.net/) resampling routines. (several times faster than PPHS Ultra).

0.8.3 exp: (Attachment) sources: (Attachment)

0.8.2:
normal version: (Attachment) modified (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=67373&view=findpost&p=619578): (Attachment) and (Attachment)
sources: (Attachment)

version for foobar2000 0.9.4+: see post #3 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=67373&view=findpost&p=602914)

Discussion thread is here (http://www.hydrogenaudio.org/forums/index.php?showtopic=67376&hl=).

Title: A new resampler DSP for foobar2000
Post by: d_headshot on 03 January, 2013, 05:35:20 PM
In the DSP plugin I don't see an option to dither. What settings with the plugin would I need to use if going from 24bit/96kHz to 16bit/44.1kHz? Or should I use the command line instead and how would I do that with foobar?
Title: A new resampler DSP for foobar2000
Post by: d_headshot on 07 January, 2013, 01:53:08 PM
Any updates?
Title: A new resampler DSP for foobar2000
Post by: Fabulist on 17 January, 2013, 03:09:02 PM
Hope this great work will keep happening!
Title: A new resampler DSP for foobar2000
Post by: rchrdcrg on 02 February, 2013, 12:59:42 AM
I just wanted to say a huge HUGE thank you for this. I have some pretty sensitive hearing, and on certain songs this really does bring the sound alive just that much more... I'm currently geeking out to the Panzer Dragoon soundtrack and am in pure aural heaven! I signed up on the HA forums just so I could share my gratitude!
Title: A new resampler DSP for foobar2000
Post by: Anakunda on 03 February, 2013, 01:28:09 PM
A SoX was updated yesterday. Curious if changes touched resampler routines and if there's ongoing foo_dsp_resampler update...
Title: A new resampler DSP for foobar2000
Post by: mjb2006 on 03 February, 2013, 04:00:25 PM
A SoX was updated yesterday. Curious if changes touched resampler routines

A quick look at the SoX changelog (http://sox.git.sourceforge.net/git/gitweb.cgi?p=sox/sox;a=blob;f=ChangeLog;hb=HEAD) reveals nothing of note since early November 2008, just prior to the original release of the DSP.
Title: A new resampler DSP for foobar2000
Post by: Dandruff on 15 February, 2013, 08:06:50 AM
Why isn't this component listed on http://www.foobar2000.org/components (http://www.foobar2000.org/components) too? Wouldn't it be better too to deliver it in the new foobar-component package format (so that you can doubleclick the downloaded file for install)?
Title: A new resampler DSP for foobar2000
Post by: Donunus on 04 July, 2013, 05:38:42 AM
Does this version exist here? http://src.infinitewave.ca/ (http://src.infinitewave.ca/) If so, which one is it exactly since there are a few versions of sox there.
Title: A new resampler DSP for foobar2000
Post by: kikke on 21 November, 2013, 09:07:58 AM
Does this version exist here? http://src.infinitewave.ca/ (http://src.infinitewave.ca/) If so, which one is it exactly since there are a few versions of sox there.


I have created some test, and results sent to infinitewave.

I found that sox resampler is very good in the sense of impulse fidelity, with 33% phase response and 80% passband (with 0.6a version).
However I only use it for upsample 44.1 kHz materials to 96kHz so the relative small passband is not affect the appreciable region of sound.
Title: A new resampler DSP for foobar2000
Post by: Tyimo on 01 January, 2014, 08:53:31 AM
Hi and Happy New Year!

I tried down sampling with the SOX 0.8.3 on my foobar2000 1.1.15 and 1.2.9, but it not works. The "console" screen does not show that work.
I also tried the the built in Resampler PPHS and it is not working either.
I tried the SSRCX and it works correctly.
Could somebody tell me what is the problem with the SoX and the PPHS Resampler???? Are they not compatible with newer foobars?

Tyimo
Title: A new resampler DSP for foobar2000
Post by: Finisterre on 15 February, 2014, 02:27:41 PM
When ripping tracks from cd to individual FLACtracks using the upsampler to double the sample rate I get the following problem:

Close to the end of each track the sound gets interrupted by a short pause during the fade out of the track. After this 1..2 sec pause I hear the remainder of the fade out and another pause before the next track starts.
When I replay the following track, by directly starting it, I first hear the short fade out of the previous track bofere the intended track starts to play.

Using the latest version of foobar and the resampler dsp, (Original and both mods do the same)
Win 7 64bit

I do not have this problem when using the pphs resampler.
Title: A new resampler DSP for foobar2000
Post by: lvqcl on 16 February, 2014, 04:59:45 AM
I cannot reproduce this.
Title: A new resampler DSP for foobar2000
Post by: ironmine on 29 March, 2014, 12:20:20 AM
I installed all Sox resampler plugins, but they do now work. My W4S DAC-2 still shows that it's accepting 44.1.

I tried PPHS resampler, it also does not work.

I have Win 7 64 bit and Foobar 1.3.1.

My guess is that the problem is Win 7 64 bit, because before I had Win 7 32 bit and all these resamplers worked.
Title: A new resampler DSP for foobar2000
Post by: ironmine on 29 March, 2014, 12:42:27 AM
I installed all Sox resampler plugins, but they do now work. My W4S DAC-2 still shows that it's accepting 44.1.

I tried PPHS resampler, it also does not work.

I have Win 7 64 bit and Foobar 1.3.1.

My guess is that the problem is Win 7 64 bit, because before I had Win 7 32 bit and all these resamplers worked.


It looks I've found the culprit:

You have to install the WASAPI plugin and choose it as an output option in the Foobar settings.

Without the WASAPI plugin installed, Windows outputs all the sounds in a format which is currently chosen in the properties of your sound device (format by default) in the Windows Control Panel (where you control all the sound devices).

I hope it helps.
Title: A new resampler DSP for foobar2000
Post by: carz on 06 November, 2014, 11:28:09 PM
downloaded the files but i think they are corrupted. 

Tried to install directly from foobar2000 and "unsupported format or corrupted file"
When unzipping, it show invalid archive.

Can someone advise ?


Good & fast resampler based on SoX (http://sox.sourceforge.net/) resampling routines. (several times faster than PPHS Ultra).

0.8.3:
normal version: (Attachment) modified (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=67373&view=findpost&p=619578): (Attachment) and (Attachment)
sources: (Attachment)


Discussion thread is here (http://www.hydrogenaudio.org/forums/index.php?showtopic=67376&hl=).

Title: A new resampler DSP for foobar2000
Post by: lvqcl on 08 November, 2014, 03:27:39 AM
Clear browser cache and re-download again. OR use another program to download .zip files.
Title: A new resampler DSP for foobar2000
Post by: tharkie on 24 February, 2015, 03:56:58 AM
Very thank you for your powerfull addon !!!

Thank a lot  I'm using it for many years now on foobar2000.

Is it possible to add a function to your addon ???

I'm listening lot of DVD-A & SACD with samplerate over than CD format (44.1KHz)

And I don't need to use your great addon when I'm playing these kind of song or 24bits/96KHz & 24bits 192KHz music from linnrecords for example

Is it possible to add a function that auto disable your addon when listenig music that offer more than 16bits/44.1KHz ?

Thank you

PS : sorry for my bad english, I'm from France...
Title: A new resampler DSP for foobar2000
Post by: eahm on 24 February, 2015, 11:14:56 AM
What's the benefit of real-time up/down sampling? I thought people use these kind of plugins just for converting?
Title: A new resampler DSP for foobar2000
Post by: Porcus on 24 February, 2015, 11:35:29 AM
OR use another program to download .zip files.


Paradoxially, this is one case where you cannot just paste the download link into fb2k 
Title: A new resampler DSP for foobar2000
Post by: Porcus on 24 February, 2015, 11:38:20 AM
What's the benefit of real-time up/down sampling?


- Storing a file as-is, rather than transcoding (in particular, concerning lossies)
- Playback on different hardware which might not support the same frequencies.

Title: A new resampler DSP for foobar2000
Post by: tharkie on 24 February, 2015, 01:28:11 PM
What's the benefit of real-time up/down sampling? I thought people use these kind of plugins just for converting?


The benefit is for CD format and add better quality, at least on one point : The DAC work better at 88.2 KHz than 44.2 KHz  the noise added by DAC is not @ 20 KHz but @ 40 KHz !

You MUST use integer multiplier like 2x or 4x and not upscale from 44.1 KHz to 96 KHz for example, but 44.1 to 88.2.

Why doing this in real time ? Because of size !!!

I can explain it better in French

Anyway, you don't have to expect quality like HD format
Title: A new resampler DSP for foobar2000
Post by: tharkie on 24 February, 2015, 01:36:25 PM
I installed all Sox resampler plugins, but they do now work. My W4S DAC-2 still shows that it's accepting 44.1.

I tried PPHS resampler, it also does not work.

I have Win 7 64 bit and Foobar 1.3.1.

My guess is that the problem is Win 7 64 bit, because before I had Win 7 32 bit and all these resamplers worked.


It looks I've found the culprit:

You have to install the WASAPI plugin and choose it as an output option in the Foobar settings.

Without the WASAPI plugin installed, Windows outputs all the sounds in a format which is currently chosen in the properties of your sound device (format by default) in the Windows Control Panel (where you control all the sound devices).

I hope it helps.



Or ASIO plugin (I prefer)
Title: A new resampler DSP for foobar2000
Post by: tharkie on 08 March, 2015, 03:06:46 PM


Very thank you for your powerfull addon !!!

Thank a lot  I'm using it for many years now on foobar2000.

Is it possible to add a function to your addon ???

I'm listening lot of DVD-A & SACD with samplerate over than CD format (44.1KHz)

And I don't need to use your great addon when I'm playing these kind of song or 24bits/96KHz & 24bits 192KHz music from linnrecords for example

Is it possible to add a function that auto disable your addon when listenig music that offer more than 16bits/44.1KHz ?

Thank you

PS : sorry for my bad english, I'm from France...

Title: A new resampler DSP for foobar2000
Post by: lvqcl on 08 March, 2015, 03:21:14 PM
You can use mod or mod2 (http://www.hydrogenaud.io/forums/index.php?s=&showtopic=67373&view=findpost&p=619578) versions of this plugin.
Title: Re: A new resampler DSP for foobar2000
Post by: Explorare on 07 February, 2017, 12:15:41 PM
So any further plan for updating? SoX 14.4.2 was released on February 22, 2015. Thanks.
Title: Re: A new resampler DSP for foobar2000
Post by: kode54 on 07 February, 2017, 09:31:55 PM
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.
Title: Re: A new resampler DSP for foobar2000
Post by: Jody Berendo on 29 March, 2017, 03:24:36 AM
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.
Title: Re: A new resampler DSP for foobar2000
Post by: detlev24 on 13 July, 2017, 03:53:48 PM
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. ;)
Title: Re: A new resampler DSP for foobar2000
Post by: kode54 on 13 July, 2017, 09:40:20 PM
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.
Title: Re: A new resampler DSP for foobar2000
Post by: bmcelvan on 14 July, 2017, 07:37:15 PM
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
Title: Re: A new resampler DSP for foobar2000
Post by: kode54 on 14 July, 2017, 08:31:07 PM
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.
Title: Re: A new resampler DSP for foobar2000
Post by: bennetng on 15 July, 2017, 10:52:21 AM
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.