Posts: 19
Joined: Jan 2010
Reputation:
0
2015-09-27, 22:21
hi.
I have tried to raise this question in an older thread, but probably this was not the right one, and the question (request) hasn't received too much attention.
Would it be possible to enable Kodi to bitstream DSD files? Is this something complex? Is it realistic to hope that in the foreseeable future this functionality will be there? KODI is a great media player and since the AudioEngine is in place it really make sense to consider a Kodi device to be the music player in a home media system. I hope, it is not just me who think's this functionality would be great to have.
Posts: 19
Joined: Jan 2010
Reputation:
0
any view from any one on this?
Posts: 1,506
Joined: Nov 2013
there is no standard way of bitstreaming dsd afaik. it's not in the specs, neither hdmi nor spdif. if something does it, it's operating outside the specs and it works by random chance.
Posts: 6,564
Joined: Apr 2008
Reputation:
160
natethomas
Enjoying Retirement by Staying Busy
Posts: 6,564
Out of curiosity, what would be the benefit of bitstreaming DSD files? I'm not aware of any AVRs that can decode DSD, unless that's just one of the less talked about functions.
Posts: 1,065
Joined: Oct 2011
Reputation:
27
Soli
Posting Freak
Posts: 1,065
2015-10-06, 10:16
(This post was last modified: 2015-10-06, 10:22 by Soli.)
He's probably talking about DoP (made popular by quite a few usb dacs) , packing DSD into fake PCM data (so only valid for untouched volume and pure alsa). The newer Linux kernels also support DSD-U32-BE native which is kinda bitstreaming (all bits are used instead of only the lower 16, making possible a doubling of DSD FS rate at the same "packed" PCM rate if that makes sense), but still within the constraints of PCM frames. Since there doesn't exist a "DSD handshake protocol", all supported DACs (only a few for now) are actually hardcoded into the kernel for DSD native, whereas for DoP is only userspace. (But requires an output that support at least 24/176, the DSD data begins at -48db so you don't run any risk of destroying your speakers in case your dac doesn't supports DoP)
Actually, it's more or less like IEC958 DTS/AC3 bitstreaming, but with much more bandwidth required. DSD64 requires an IEC958 rate of 176khz, so DSD128 and up is only possible via USB. (Or any other high bandwidth audio protocol or interface)
I could talk lots more, but maybe this was a little too much info already...
Basically, I don't think this is a good idea at all for Kodi. Best to leave this for dedicated music players.
Posts: 6,564
Joined: Apr 2008
Reputation:
160
natethomas
Enjoying Retirement by Staying Busy
Posts: 6,564
Ah, alright. Makes sense.
Posts: 1,065
Joined: Oct 2011
Reputation:
27
Soli
Posting Freak
Posts: 1,065
It seems to me that DSD bitstreaming is a little far fetched for a general purpose mediacenter to support, since it involves nonstandard way of manipulating sound output and the requirement of exclusive access to the sound device.
But I'm also pretty sure that noone are opposed to it. FFmpeg already support DSF and DFF (and DST?) formats so to be frank it would only involve writing some wrapper code for the DoP encoding. But unless a dev has a personal need for this feature or that you are able to write it yourself, then it might never happen.
As a workaround, I'd recommend instaling MPD (preferably build it from source) and run that in the background. It can coexist with Kodi and I find it quicker and more intuitive for music playback.
Posts: 1,506
Joined: Nov 2013
2015-10-06, 20:54
(This post was last modified: 2015-10-06, 20:57 by ironic_monkey.)
no dst in ffmpeg. which sucks a lot cause my sacd vfs suffers badly from it since i have to decode on the input level (and have no idea about total size of decompressed bitstream) :/
Posts: 1,506
Joined: Nov 2013
i decode sacd to pcm. i'm not audiophile, so i don't care about the 300kHz of noise and aliasing space..
Posts: 7,650
Joined: Jun 2011
Reputation:
287
disable "keep audio device alive" in kodi.
Posts: 1,065
Joined: Oct 2011
Reputation:
27
Soli
Posting Freak
Posts: 1,065
If it still doesn't work, then you might want to disable sounds in Kodi entirely if you use the MPD addon. (No menu clicks)