MusicPlayerDaemon / MPD

Music Player Daemon
https://www.musicpd.org/
GNU General Public License v2.0
2.11k stars 338 forks source link

Support CD De-emphasis #2053

Closed realbaylen closed 1 month ago

realbaylen commented 1 month ago

Feature request

https://wiki.hydrogenaud.io/index.php?title=Pre-emphasis

MaxKellermann commented 1 month ago

I believe this can already be done with the FFmpeg filter plugin. https://mpd.readthedocs.io/en/latest/plugins.html#id40 https://ffmpeg.org/ffmpeg-filters.html#aemphasis

mshkrebtan commented 1 month ago

I can't believe, literally yesterday I was listening to a CD-rip of Pet Shop Boys — Please, which has pre-emphasis applied, and thought that there has to be a way to apply de-emphasis other than sox deemph.

Thank you @MaxKellermann! MPD rules! 🤘❤️

Here's a configuration snippet for others wondering:

filter {
  name "deemph"
  plugin "ffmpeg"
  graph "aemphasis=mode=reproduction:type=cd"
}

Then add it to the audio_output of your choice:

audio_output {
  filters "deemph"
  ...
}

I have 2 outputs for the same device now and enable the one with the filter when needed.