You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In theory the ffmpeg should be able to play DSD files, could you try that via ffprobe, just to be sure?
I for example used this sample file and ffprobe your_dsd_file.dsf, produced the following output:
$ ffprobe ~/Downloads/01\ -\ David\ Elias\ -\ The\ Window\ -\ Vision\ of\ Her\ \(DSD64\).dsf
ffprobe version 3.3.7 Copyright (c) 2007-2018 the FFmpeg developers
... snip ...
[dsf @ 0x5655579b21e0] Estimating duration from bitrate, this may be inaccurate
Input #0, dsf, from '/home/christoph/Downloads/01 - David Elias - The Window - Vision of Her (DSD64).dsf':
Metadata:
title : Vision of Her
artist : David Elias
genre : Folk
encoder : KORG AudioGate ver.1.5.0
date : 2007-11-20 22:52
Duration: 00:05:07.11, bitrate: 5644 kb/s
Stream #0:0: Audio: dsd_lsbf_planar, 352800 Hz, stereo, fltp, 5644 kb/s
If it works and you compiled cmus yourself, you could add dsf to the ffmpeg.c input plugin's extensions (e.g. after "wav", or better after "flac") and then recompile cmus.
Otherwise this will turn into a "feature"-request.
Maybe there even is another way link an additional extension to an input plugin without changing the source code.
I modified the source code to do that which didn't work it sounded like it was playing super slow. Then I modified ffmpeg.c around line 238 to default to 32 bit output but that just resulted in static.
The ffmpeg plugin has slow playback because of the effective sample rate being unsupported. Actually 353kHz "DSD64" files work fine repeating that ffmpeg experiment today, since the latest release of cmus added support for sample rates up to 384kHz. Unfortunately "DSD128" files (effectively 706kHz) would still be broken as well as any higher variants (although >128 seems to be uncommon anyway).
By the way I don't know anything about the "FLTP sample format" mentioned previously but I guess ffmpeg handles it under the hood because it doesn't seem to be an issue.
Edit: yes it's resampling to S16 PCM anyway, and we can also resample to 384kHz when necessary.
Activity
criztovyl commentedon Apr 26, 2018
In theory the
ffmpegshould be able to play DSD files, could you try that viaffprobe, just to be sure?I for example used this sample file and
ffprobe your_dsd_file.dsf, produced the following output:If it works and you compiled cmus yourself, you could add
dsfto theffmpeg.cinput plugin's extensions (e.g. after"wav", or better after"flac") and then recompile cmus.cmus/ip/ffmpeg.c
Lines 477 to 480 in b595b8c
Otherwise this will turn into a "feature"-request.
Maybe there even is another way link an additional extension to an input plugin without changing the source code.
Madman600 commentedon Apr 26, 2018
I modified the source code to do that which didn't work it sounded like it was playing super slow. Then I modified ffmpeg.c around line 238 to default to 32 bit output but that just resulted in static.
Madman600 commentedon Apr 26, 2018
Looks like you would have to use FLTP sample format but I'm not sure how that maps to sample format bits.
criztovyl commentedon Apr 26, 2018
I am not sure either, maybe someone else can help.
seniorm0ment commentedon Jan 24, 2020
+1 for this
antonellocaroli commentedon Mar 28, 2021
+1
antonellocaroli commentedon Apr 13, 2021
no news for native dsd support?
maybe this will help:
https://github.com/marcoc1712/squeezelite-R2/blob/Release/dsd.c
https://github.com/marcoc1712/squeezelite-R2/blob/Release/dop.c
https://github.com/marcoc1712/squeezelite-R2/tree/Release/dsd2pcm
hajosattila commentedon Apr 20, 2024
+1
azizsayfiddin commentedon May 26, 2024
+1
pryid commentedon May 30, 2024
+1
gavtroy commentedon Jun 3, 2024
The ffmpeg plugin has slow playback because of the effective sample rate being unsupported. Actually 353kHz "DSD64" files work fine repeating that ffmpeg experiment today, since the latest release of cmus added support for sample rates up to 384kHz. Unfortunately "DSD128" files (effectively 706kHz) would still be broken as well as any higher variants (although >128 seems to be uncommon anyway).
By the way I don't know anything about the "FLTP sample format" mentioned previously but I guess ffmpeg handles it under the hood because it doesn't seem to be an issue.
Edit: yes it's resampling to S16 PCM anyway, and we can also resample to 384kHz when necessary.
[FFmpeg] Add .dsf to extension list (DSD support)
[FFmpeg] Add .dsf to extension list (DSD support)
[FFmpeg] Add .dsf to extension list (DSD support)
[FFmpeg] Add .dsf to extension list (DSD support)