convert 24bit flacs sampled at 88.2khz to 96k or 48k?
Jul 16, 2012 at 11:14 PM Thread Starter Post #1 of 20

alflying

New Head-Fier
Joined
Jan 25, 2011
Posts
38
Likes
10
Hi all,
 
I recently purchased FiiO's e17 and use it primarily as a DAC for my notebook.  Too bad that it cannot do 88.2khz files at 24bit, it can do 24bit 48k or 96k though.  So my question is, what's the best thing I can do to my few 88k albums?  I guess the best solution will be to 'upsample' them to 96k, is that possible?  If you know a solution to this problem, suggestions on which software to use will be appreciated.
 
Thanks!
 
Jul 17, 2012 at 12:49 AM Post #2 of 20
Maybe dbPoweramp can do that.
 
Jul 17, 2012 at 2:33 AM Post #3 of 20
i tried dbpoweramp and can't seem to find that option to change sampling rate in the flac options
 
i downloaded the freeware sox which claims to have such feature, will play with it later when i have the time, but it seems complicated using command prompt input
 
will be better if there's an easy to use windows software 
biggrin.gif

 
Jul 17, 2012 at 5:40 AM Post #4 of 20
In dbpoweramp, near DSP effects click Add, Add DSP effects > Resample. Unless your version is very different to mine.
 
Personally I'd probably downsample to 44.1 (exactly half 88.2 which is mathematically good), but that's because the last time I DBT'd 96 vs 44.1 I had a hard time. Might be worth having another go.
 
Jul 17, 2012 at 7:02 AM Post #5 of 20
Why do you want to resample and convert the files? I have an E17. I just set it for 96 / 24 in my control panel, it shows 96 / 24 on the E17 display, and then it plays 88.2 / 24 files just fine. (I believe it just automatically resamples them on the fly. I don't know, but it definitely plays them with no problem.)
 
Jul 17, 2012 at 9:36 AM Post #6 of 20
I'd use foobar2k with the sox mod plugin and configure it to only resample (that is the correct term here) 88.2 kHz to either 48 or 96 kHz. Which one doesn't really matter unless you're concerned with inaudible frequencies above 21+ kHz in which case you should go for 96 kHz.
 
@StratocasterMan: Windows? Yes with DirectSound or WASAPI in shared mode this will result in on-the-fly resampling by the Windows audio engine.
 
Jul 17, 2012 at 10:16 AM Post #7 of 20
Hey guys thanks for all the help!
 
- joeyjojo - Yep it works!  And thanks for the reminder that downsample to 44k is mathematically neater.  I remember reading something similar when doing picture resizing(should always resize to half or quarter size for optimal results) so this makes sense to me.
 
- stratocasterman - Ya xnor got it right, i am using wasapi under foobar2k.  It works alright under directsound as you mentioned, but shows an error message if i'm using wasapi.  Like many others I would like to use wasapi or asio whenever possible for the cleanest sound.
 
- xnor - Thanks for your tips on the sox mod plugin.  I tried and it works, but since I only have like 3 albums at 88k, I prefer to convert them to another rate and rid of this issue once and for all, instead of turning the resampling plugin on and off.  Leaving it on all the time will add another processing burden on the computer which is unnecessary most of the time.
 
Problem solved!  Ciao!
 
Jul 17, 2012 at 10:57 AM Post #8 of 20
The plugin mod version will only resample the sample rates you specify, so for all other non-88 kHz albums there's no processing at all.
 
Jul 17, 2012 at 11:29 AM Post #9 of 20
I'm using SoX 0.7.9, and under Resampler settings, there's only the setting of 'Target samplerate', 'Quality', 'Passband', 'Allow aliasing', and 'Phase response'.  
 
The phrase 'Target samplerate' sounds to me like it's trying to convert everything into this sample rate?
 
Jul 17, 2012 at 11:38 AM Post #10 of 20
There are two mod versions:
 
Quote:
*_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.

 
Jul 17, 2012 at 2:20 PM Post #12 of 20
Quote:
I'd use foobar2k with the sox mod plugin and configure it to only resample (that is the correct term here) 88.2 kHz to either 48 or 96 kHz. Which one doesn't really matter unless you're concerned with inaudible frequencies above 21+ kHz in which case you should go for 96 kHz.
 
@StratocasterMan: Windows? Yes with DirectSound or WASAPI in shared mode this will result in on-the-fly resampling by the Windows audio engine.

 
Yes, Windows Vista and foobar 2000. I haven't customized foobar 2000 much at all since my initial install, so I'm pretty sure that means I'm using DirectSound. I haven't done anything to switch to WASAPI or ASIO. I guess I am using shared mode since all of my normal computer sounds such as web videos go through the E17. I'm also using Spotify and MOG.
 
If I'm understanding things correctly, since I haven't gone to WASAPI or ASIO, that means everything is not bit-perfect. While it seems that there is a theoretical advantage to having everything bit-perfect, I haven't tried to do that because I was afraid it would cause me more trouble than it's worth. I had doubts about whether I would be able to hear the difference and I was concerned I'd end up having some files or regular computer sounds that wouldn't play.
 
So, I guess the question is, should I attempt to go to WASAPI and the sox mod plugin as the original poster is doing? It seems like it might be a little difficult to configure correctly and I don't want to lose functionality with other computer sounds like streaming music or video. Most of my files are 44.1 / 16, but I do have some 96 / 24 and 88.2 / 24 and 320 kbps MP3.
 
Do you think it'd be wise to change my configuration?
 
Jul 17, 2012 at 2:51 PM Post #13 of 20
Nothing wrong with DirectSound but I'd use the sox plugin (normal version) to resample to the sample rate that you configured in the Windows control panel. That way you get high-quality resampling (last time I checked, the Windows resampler didn't produce very good results).
 
Jul 17, 2012 at 4:26 PM Post #14 of 20
Quote:
Nothing wrong with DirectSound but I'd use the sox plugin (normal version) to resample to the sample rate that you configured in the Windows control panel. That way you get high-quality resampling (last time I checked, the Windows resampler didn't produce very good results).

 
Thanks for the help, but now I've really confused myself! 
redface.gif
 I put the file foo_dsp_resampler.dll in my foobar components folder. When I go into my foobar configuration, I get the same options that alflying described in post #9. I don't see anything about *_mod or *_mod2.
 
Edit: The file is the normal version. I do see where I could download the *_mod or the *_mod 2 if I needed to install them instead of the normal version.
 
I can choose the 'Target samplerate'
 
I'm still confused about which options I should select in the foobar configuration and also in the Windows control panel. The FiiO E17 never displays 44.1, it only displays 96k or 48k. My files are usually 44.1 / 16 so it would make sense for me to choose whatever options would be best for those. I've always been confused about the best thing to do for those 44.1 files since the FiiO E17 displays 48k (or 96), but not 44.1.
 
I'd like to set it up so that it's best for 44.1 / 16 files on an ordinary basis, but I'd also like to know what changes to make in the foobar configuration and the Windows control panel when I do want to play the 96 / 24 or 88.2 / 24 files I have.
 
Jul 17, 2012 at 5:45 PM Post #15 of 20
Here's a link to the download. The normal version resamples everything to the target sample rate, unless the track already is at the target sample rate. In that case it does nothing (same as the Windows audio engine if the configured format matches the track's format).
 
If you want to minimize processing then set the target to 44.1 kHz since most of your tracks are already at that sample rate (=> no resampling) and also set the the format in the control panel to 44.1 kHz. I don't know why the E17 doesn't display 44.1 kHz but it seems to support 24 bit input so you should choose that in the Windows control panel.
 
A completely different route would be to give the WASAPI or ASIO plugins a try, which can be found on the foobar2000.org/components page and resampling only those tracks (using mod2) that have a sampling rate that is not supported by your DAC.
 
edit: the correct way to install fb2k plugins is using File - Preferences - Components - Install...
 

Users who are viewing this thread

Back
Top