We are moving! New user registrations to this forum is now closed. Posting here will be disabled eventually. Please go to the new community for your Snakeoil OS support and other discussions. (June 03)

New community website: https://community.snakeoil-os.net (June 03)

Join us in the new community by Creating a new account. (June 04)


How to resample with MPD
#8
(20-Jun-2019, 11:14 AM)mkysimes Wrote: For those who are unaware of MPD's ability to resample, this is for you. What you will get is tighter imaging (better focus) and smoother sound on those recordings that are less than stellar. In some cases, on my system at least, it can make it sound similar to an analog filter. Unfortunately, as with most resampling, there will probably be a slight loss in detail especially on very revealing systems.

There are two quality resamplers that I am aware of in MPD. From my understanding, and I could be wrong, resampling is only available on versions .20 and up but please let me know if that's not the case so I can correct this. Those two resamplers are SoX and SRC (Secret Rabbit Code), otherwise known as libsamplerate.

One way to use these is to make sure you are using MPD (.20 and up) in Snakeoil and check the box for "custom audio output". Then just copy and paste one of the configs below depending on which one you want to use. You will have to substitute your sound device unless you use the same one as me (snd_allo_digione).

libsamplerate:
Code:
resampler {
plugin "libsamplerate"
type "1"
}

audio_output {
name "snd_allo_digione"
type "alsa"
device "hw:0,0"
format "192000:24:2"
auto_resample "no"
auto_format "no"
enabled "yes"
}

SoX:
Code:
resampler {
plugin "soxr"
quality "very high"
threads "0"
}

audio_output {
name "snd_allo_digione"
type "alsa"
device "hw:0,0"
format "192000:24:2"
auto_resample "no"
auto_format "no"
enabled "yes"
}

This will get you started. I'm sure there are other options for both of these. As a matter of fact, I know for sure that the quality of libsamplerate can be set to "0" (type "0") for even better sound but unfortunately for me the Rpi that I use is too slow to accommodate. 

Also, obviously if your gear is unable to sample at 192K then you'll have to change that. 

On my system, the libsamplerate sounds the best, even though I can't go full quality on it. It seems to retain more detail and really helps locate sounds in the stage. SoX seems to be a little bit beefier in the bass and maybe even smoother on the highs but tends to remove some "reality" to the recording much like the difference between MPD and LMS. But that could be specific to my setup. Ultimately it's up to the individual's preference.

Enjoy, and if you have any questions this link is a good place to start:
https://www.musicpd.org/doc/html/plugins...er-plugins

how to do this, i am new to linux
Reply


Bookmarks

Messages In This Thread
How to resample with MPD - by mkysimes - 20-Jun-2019, 11:14 AM
RE: How to resample with MPD - by agent_kith - 20-Jun-2019, 12:21 PM
RE: How to resample with MPD - by mkysimes - 21-Jun-2019, 08:54 AM
RE: How to resample with MPD - by agent_kith - 21-Jun-2019, 10:52 AM
RE: How to resample with MPD - by mkysimes - 21-Jun-2019, 06:43 PM
RE: How to resample with MPD - by agent_kith - 21-Jun-2019, 09:24 PM
RE: How to resample with MPD - by mkysimes - 22-Jun-2019, 04:34 AM
RE: How to resample with MPD - by vinaymoturi - 27-Jan-2021, 08:37 PM
RE: How to resample with MPD - by mkysimes - 10-Jul-2023, 12:49 PM
RE: How to resample with MPD - by vinaymoturi - 05-Jul-2023, 12:05 AM



Users browsing this thread: 1 Guest(s)
[-]
Our Sponsors

[-]
Latest Threads
Android Firefox issues with forum
Last Post: agent_kith
10-Jun-2025 04:45 PM
» Replies: 21
» Views: 2030
[split] Possible To Load Snakeoil OS in ...
Last Post: Snoopy8
09-Jun-2025 06:43 AM
» Replies: 14
» Views: 1500
Snakeoil 1.4.3 (High End U3)
Last Post: hkphantomgtr
05-Jun-2025 03:58 PM
» Replies: 67
» Views: 8867
Snakeoil with Ubuntu Desktop ?
Last Post: Snoopy8
02-Jun-2025 09:38 AM
» Replies: 8
» Views: 903
Add IR remote control using Flirc USB in...
Last Post: Snoopy8
31-May-2025 03:50 PM
» Replies: 5
» Views: 654
Work In Progress: 1.4.4
Last Post: hkphantomgtr
29-May-2025 11:44 PM
» Replies: 44
» Views: 4979
SQ difference - Raspberry Pi vs x86_64?
Last Post: Snoopy8
27-May-2025 02:16 PM
» Replies: 42
» Views: 5380
Snakeoil 1.4.0 (High End)
Last Post: aabman
25-May-2025 11:35 AM
» Replies: 93
» Views: 14826
new install issues
Last Post: carlodim
23-May-2025 09:56 AM
» Replies: 42
» Views: 4396
Is this project still alive?
Last Post: agent_kith
20-May-2025 03:11 PM
» Replies: 10
» Views: 1168

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.