6 ms·
FreeBSD for hi-fi audio: real-time processing, equalizer, MPD and FFmpeg
- m4c-pl 2y agoGuide to configuring FreeBSD as an audiophile audio server: setting up system and audio subsystem parameters, real-time operation, bit-perfect signal processing, and the best methods for enabling and parameterising the system graphic equalizer (equalizer) and high-quality audio equalization with FFmpeg filters. Linux users will also find useful information, especially in the context of configuring and personalising the MPD player and filters.
- dazzawazza 2y agoAs a non-audiophile I really enjoyed this dive in to FreeBSD. I use FreeBSD every day but I've never needed to dig in this deep. I really shouldn't be surprised that it was an audiophile that would just keep digging until they got what they wanted. Thanks, most interesting.
- venamresm__ 2y agoRelevant? https://medium.com/@skikirkwood/truth-lies-and-fraud-in-the-audiophile-world-a365e56c97c4 https://medium.com/@skikirkwood/truth-lies-and-fraud-in-the-...
- dsr_ 2y agoYes, though mostly non-technical. The submission's article here is a little too concerned with irrelevancies -- BSD vs Linux, graphic equalizers -- and is not concerned enough with the biggest improvement in audio quality over the last twenty years: measurement and realtime correction of audio playback systems. The simplest example is with headphones, because the measurement can generally happen once per model, rather than each time you move things around in a room. Take moderately capable headphones -- this does not correlate with price, there are good choices for $25 and bad choices for $2500 -- and measure their frequency response from 20-20000 Hz. Construct the minimum set of parametric equalizations to bring them to a target curve -- that's the bit which has gone from deep expensive magic to ten seconds on a modern CPU -- and apply that from now on. Your $25 headphones are now 97% as good as the best available in the world. The standard cautions, because HN is full of pedantic floccinaucinihilipilificators: the headphones must not distort too much; ear canals differ and must be accounted for individually; preference in target curves differ; Olive and Toole's curves are representative of what a reasonably large sample size of humans "like"; uncalibrated microphones introduce their own distortions. Speakers in rooms must be measured in those rooms, as currently configured in terms of furniture and anything absorptive or reflective at audio frequencies. The second biggest issue, the one not related to quality as such, is the availability of sufficient and sufficiently cheap bandwidth and storage to allow people to run their own music servers and personal/household music streaming services.
- user_7832 2y ago> The standard cautions, because HN is full of pedantic floccinaucinihilipilificators I think (I am not sure, I’m more familiar with the in-room speakers style of audio reproduction) the “biggest” issue is that different speakers have different time-based nonlinearities. This should be most clear in impulse responses. At an extreme example, a headphone that has terrible resonance at 400hz can never be fixed purely by EQ using a standard amp. > The standard cautions, because HN is full of pedantic floccinaucinihilipilificators I think (I am not sure, I’m more familiar with the in-room speakers style of audio reproduction) the “biggest” issue is that different speakers have different time-based nonlinearities. This should be most clear in impulse responses. At an extreme example, a headphone that has terrible resonance at 400hz can never be fixed purely by EQ using a standard amp. Now, this could be solved at least partly using current drive amplifiers. Apple has apparently done this on their AirPods. But it’s not a common thing at all.
- dsr_ 2y agoIt's true, which is why that's in the standard cautions. But it's also the case that you can get reasonably priced headphones and speakers (reasonably priced by the standards of nonaudiophiles!) that do not have terrible resonances. So: you can't fix everything, but if you're paying attention before you buy, you can avoid making mistakes. E.g.: Kali LP8v2 are frequently on sale for $400/pair; that includes amplification. Moondrop Chu II IEMs are under $25.
- drbig 2y ago@m4c-pl you have a typo there, search for `nemal` :-) You're welcome.
- m4c-pl 2y agothx!
- qixv 2y agoI don’t think I understand the purpose of RTOS here. Why does it improve the audio quality?
- padenot 2y agoIt does not, it serves no purpose for only listening to music. Producing, broadcasting, or any sort of scenario that require reliable low latency can benefit from a real time kernel, but not merely listening to music.
- AndrewThrowaway 2y agoRTOS does not improve playback of music but is crucial if you e.g. want to produce music. Imagine a situation where you connect some MIDI keyboard and play some music - you want OS to produce the sound "real time" instead of "scheduling it".
- flyinghamster 2y agoA good way to demonstrate the problem is by trying to use a music-making app through a Bluetooth headphone or speaker. That delay completely kills the ability to stay on the beat.
- lmpdev 2y agoIt’s very helpful for performing music I sometimes play live (I don’t enjoy it) using Spectrasonic’s Keyscape, which loads many dozens of gigabytes into RAM. If I have one more “mystery” buffering issue I’m going to tear my hair out This is on an ultra locked down, high spec dedicated PC I would be absolutely enthralled if my software/hardware had a consistent schedule like that prioritised by an actual RTOS It’s why almost all actual musicians use industry standards like Nord for keyboards. While my Keyscape VST sounds much better, I can’t reliably use it in live contexts because the Windows/Mac stacks are just too precarious I don’t need it to crush numbers, just have the gap between best case and worst case scenario for computation to be effectively zero Live performance craves near-deterministically performing instruments and tooling
- nsteel 2y ago
- sellmesoap 2y agoI'm curious about why pipewire is unfortunate.
- aa-jv 2y agoIts not perfect. Bugs, instability, crashing, latency .. compatibility issues, difficult to configure at first .. bluetooth audio is lower quality than it could be (AptX and LDAC codes unsupported) .. performance is not that great compared to pulseaudio and jack ..
- stncls 2y agoI'm ready to believe that pipewire is imperfect (although I have personally experienced no crash, and did not have to configure anything), but the sentence from the original post is: > Therefore, I naturally omit the use and configuration of additional audio layers in the form of a Jack server, PulseAudio or the unfortunate PipeWire from RedHat. I cannot understand this sentiment. I have used all three for years each. If I had to qualify one as "unfortunate", it would certainly not be PipeWire (nor would it be Jack for that matter). > performance is not that great compared to pulseaudio and jack .. Jack makes different trade-offs by default, so for some definition of performance, yes, one could see it as superior to PipeWire. But in my experience PipeWire is better than PulseAudio on all axes (at least: latency, CPU usage, resampling quality).
- dralley 2y ago> performance is not that great compared to pulseaudio and jack I'm aware that performance is not quite as good as Jack (but not by significant margins AFAIK), but how is performance worse than PulseAudio? That cuts against every datum I've ever heard about the two.
- RALaBarge 2y agoYou have great taste in music, my man! As a humble 'good enough' audiophile, I have a fleet of Fiio devices and assorted cans and IEMs, but never have enough spare cash to consider a "real" audiophile setup. I've had experience with studio monitors and really good audio coming through mixing desks and what not, but I've never had the opportunity to try a real expensive kit. Flac is my source, decent DAC, decent cans, good enough I guess
- bluGill 2y agoAudiophile's are famous for spending a lot of money on "snake oil" to get results that objectively cannot be heard and then claim the sound is better. Sometimes the sound is better, but the human ear cannot tell (lab equipment can). Of even the best lab equipment cannot find a difference. Good enough if you are happy is good enough. Maybe you can do better in ways you can hear, but with "Flac is my source, decent DAC, decent cans" you are probably getting close to the edge of what the human ear can hear anyway (assuming good audio in that Flac, and the DAC/cans really are decent as you claim)
- kurlberg 2y agoI recently got into making some sort of budget hifi setup, and found audiosciencereview.com quite helpful - a good amount of reviewed gadgets with focus on measurements. Ended up with kali lp-6v2 speakers and a SMSL SU-1 dac. Please don't tell me I screwed up. :-)
- skydhash 2y agoI have a pair of Hifiman Sundara that I take out for proper listening (they’re a bit heavy). But more often than not I listen through a pair of creative pebble which is more than enough for me.
- RALaBarge 2y agoMy favorite IEMs are hifiman, great sound stage
- 2y ago
- nitia 2y agoSo is there a good solution for active volume normalization while using oss?
- kiririn 2y agoThis is missing a good justification for digging into realtime processing. For me that was to create a DIY receiver, so the equaliser/room correction needs to happen quickly and consistently to maintain lip sync. I'm not sure it's quite so justified for an audio/music server FreeBSD never crossed my radar as a viable platform for realtime audio processing, instead I had good luck with Linux + RT patch + Pulseaudio + https://github.com/bmc0/dsp https://github.com/bmc0/dsp. (Pulseaudio really shines in this kind of use case, will resample to correct for slight differences in input/output clocks etc) Also an aside, "USB cable: WireWorld ULTRAVIOLET 8" is a controversial thing to mention
- frantathefranta 2y agoI expected that USB cable to be $250+ but I see them for $50-$70 which is still super expensive for a USB2.0 cable. But I guess if you like the look of it, it makes sense.
- matsz 2y agoAudiophile USB cables are pure placebo, there's no controversy here. Changing the medium doesn't magically make digital signal higher quality, only reduces data loss, if anything.
- deleted 2y ago[deleted]
- nesarkvechnep 2y agoFreeBSD is versatile! Underrated OS.