Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Play/Convert DSD Stream Files (.dsf)? (Read 1081 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Play/Convert DSD Stream Files (.dsf)?

Howdy -- does there exist any foobar2000 extension to play and ideally convert DSD Stream Files (.dsf)?

Thanks in advance for your wisdom.


Re: Play/Convert DSD Stream Files (.dsf)?

Reply #2
Thanks! That worked great!

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #3
Welcome, glad it worked :)

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #4
and ideally convert DSD Stream Files (.dsf)?

Convert, into what? Different purposes call for different tools:
* If it is only to reduce size, then WavPack can  - losslessly - compress DSD except those that are already compressed (even harder) with DST. Then you cannot use fb2k, you must use official WavPack. (You can play the .wv files back in fb2k!)
* If you want to convert into PCM (because, say, that is what your device can play) then beware that DSD decoding should have a low-pass filter to kill that noise that comes with the format.
* If it is to convert into lossy, then (I think!) that is all fine - those will kill the unwanted ultrasonic noise for you.

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #5
Convert, into what?

FLAC, for the most part. fb2k says it can't do this losslessly, but I ran the conversion and it sounds fine.

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #6
How do I extract DSF files from an SACD iso within foobar?

If I use an external program to extract DSF that works just fine, but I cannot get extraction working from within foobar.

I installed  foo_dsd_converter 0.1.9 and it is available on the context menu, but if I start it it just opens a black window and does nothing.
It also does not output anything to the console.log.

Any ideas?

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #7
Convert, into what?

FLAC, for the most part. fb2k says it can't do this losslessly, but I ran the conversion and it sounds fine.
Yeah, your target resolution is already more than your ears can hear - should be! - but beware that DSD could at worst plague your amplifier and tweeter with high-frequency noise at volumes that could induce distortion.
foobar2000 can resample on-the-fly, so it could get rid of it ... https://archimago.blogspot.com/2015/04/analysis-dsd-to-pcm-2015-foobar-sacd.html

Note, FLAC compresses linear PCM. DSD is pulse-density modulation, it works like an old-fashioned light dimmer ("subtracted the half": half-way dimmed corresponds to zero).
It is not possible to convert losslessly between the two. The reason why WavPack can do it, is that it has a special compressor for DSD.
But both CD quality PCM and SACD-quality DSD are "enough", so it is possible to convert back and forth - both operations lossy - without your ears noticing.

(Notes for nitpickers:
* "Not possible" to convert losslessly ... yeah sure you can think of PDM as PCM, but ...
* "without your ears noticing": Maybe if you put a computer at work doing the back-and-forth a sufficient number of times, it would be noticeable, but as long as you aren't actively trying to sabotage ...)

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #8
There is one main thing to remember: PCM and DSD do not store audio the same way.

PCM stores it's audio using samples that contain a number of bits that correspond directly to the amplitude of that sample. So you know a sample of 0XFF will be full-scale amplitude and 0x00 will be full scale the oppostite direction. Samples can be signed...yadda yadda...but with PCM you have bits that represent a sample level.

DSD doesn't have that. It's sample is a bit. DSD doesn't even store the position of the waveform....it stores the delta of the wave....and it does this by flipping a saw-tooth oscillator very very rapidly then low-pass filtering it. This is also called Delta-Sigma Modulation.

You've probably dealt with it without realizing it. Most DACs use the "oversampling" technique; which uses delta-sigma internally at higher rates. CD players in the 80s and 90s used oversampling like crazy. It should also be noted that when digitizing signals, they usually start out as delta-sigma before being decimated to PCM.

The "lossy" aspect is talking about bit-perfection through the chain...not perceptual quality. You can't decimate DSD to PCM anything and then back to DSD and get the same bits back. You'll get the same perceptual audio quality. You can't go PCM-DSD-PCM losslessly either.



SMSL SU-8 -> Little Bear P5 -> Sansui SE-8 - Denon PMA-770 -> Ohm Model L | High-Res Lover | DSD Enthusiast | Mad SACD-Scientist

Re: Play/Convert DSD Stream Files (.dsf)?

Reply #9
Regarding the Wikipedia illustration, it does not say it is a DSD signal, and if it is a DSD signal, it is an illegal signal.
X

https://archive.org/details/super-audio-cd-system-description/SACDspecP2audio_200%20contents/page/136/mode/2up
X

https://www.dafx.de/paper-archive/2004/P_372.PDF
X

Check out the spectrum of the attached 7z file. It is a 441Hz tone at 44100Hz sample rate.
X

X

This article from the developer of SoX's DSD extension could be useful as well:
https://troll-audio.com/articles/pcm-and-dsd/