Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


DSF files compressed with WavPack play back as "8/88.2"?
#11
The problem is, the wv file is basically a container containing compressed audio. Quoting from the wavpack page

Quote:WavPack is a completely open audio compression format providing lossless, high-quality lossy, and a unique hybrid compression mode.

and, further,


Quote:Compatible with virtually all audio data formats including 8, 16, 24, and 32-bit integer PCM; 32-bit float PCM; DSD audio; mono, stereo, and multichannel (up to at least 256 channels); and integer sampling rates up to 1 GHz

Handles all modern audio file formats including Microsoft WAV/BWF/RF64, Apple AIFF & CAF, Sony Wave64, Philips DSDIFF, and Sony DSF (all with no size limitations)

Basically, one doesn't know from the outside what a wv file "is". MPD passes the wv file to the wavpack (or ffmpeg) decoder plugin to decompress it and, ultimately, determine what the format actually is.

Tim mentioned the helper program mediainfo, which moOde uses to get information about audio tracks (but I'm unclear where it's used and where not).

Here's what mediainfo reports on the sample file of yours that I talked about earlier

Code:
pi@m836-64:~ $ mediainfo /mnt/SDCARD/'1969 - In A Silent Way (1969, 2012 MFSL RM)'/"02. In A Silent Way-It's About That Time.wv"
General
Complete name                            : /mnt/SDCARD/1969 - In A Silent Way (1969, 2012 MFSL RM)/02. In A Silent Way-It's About That Time.wv
Format                                   : WavPack
File size                                : 393 MiB
Duration                                 : 1 h 19 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 689 kb/s
Album                                    : In A Silent Way
Track name                               : In A Silent Way/It's About That Time
Track name/Position                      : 02
Performer                                : Miles Davis
Genre                                    : Jazz
Recorded date                            : 1969
Comment                                  : CUE Corrector v. 8.4.2 / b. 1047 (Aug. 05, 2021)
ALBUM ARTIST                             : Miles Davis
CATALOGNUMBER                            : UDSACD 2088
ORGANIZATION                             : Mobile Fidelity Sound Lab

Audio
Format                                   : WavPack
Format profile                           : 4.16
Format settings                          : Lossless
Duration                                 : 1 h 19 min
Bit rate mode                            : Variable
Bit rate                                 : 688 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 88.2 kHz
Bit depth                                : 8 bits
Compression ratio                        : 2.050
Stream size                              : 393 MiB (100%)
Encoding settings                        : -h

This looks like it could be the source of the rate/depth info we see reported on the Playback screen.

OTOH, here's what mediainfo reports on a straight DSD file (on another computer)

Code:
xxx@T520:~/Music/DSD/Derek Jones$ mediainfo 'Derek Jones - Run With Me - 02 - The Nearness of You - DSD128.dsf'
General
Complete name                            : Derek Jones - Run With Me - 02 - The Nearness of You - DSD128.dsf
Format                                   : DSF
Format/Info                              : Direct Stream Digital Stream File
Format version                           : Version 1
File size                                : 270 MiB
Duration                                 : 3 min 20 s
Overall bit rate                         : 11.3 Mb/s
Album                                    : Run With Me
Album/Performer                          : Derek Jones
Track name                               : The Nearness of You
Track name/Position                      : 02
Performer                                : Derek Jones
Genre                                    : Jazz
Recorded date                            :   2016
ISRC                                     : US-KTN-16-00059
Copyright                                : Blue Coast Records 2016

Audio
Format                                   : DSD
Format/Info                              : Direct Stream Digital
Commercial name                          : DSD128
Format settings                          : Little
Duration                                 : 3 min 20 s
Bit rate                                 : 11.3 Mb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 5 645 kHz
Compression mode                         : Lossless
Stream size                              : 270 MiB (100%)

Like the man says, investigation needed to see who is telling what to whom, when, so to speak.

Regards,
Kent
Reply
#12
Looks like mediainfo doesn't support wavpack DSD format and thus shows the wrong info.
https://www.poikosoft.com/support/viewtopic.php?t=13220

It will be a bit tedious but I can make some changes so this format is reported correctly.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#13
(09-11-2023, 02:17 PM)Tim Curtis Wrote: Looks like mediainfo doesn't support wavpack DSD format and thus shows the wrong info.
https://www.poikosoft.com/support/viewtopic.php?t=13220

It will be a bit tedious but I can make some changes so this format is reported correctly.

Ok, the latest commits should fix the WavPack DSD issues. Basically .wv files are assumed to be WavPack compressed DSD and thus will be reported in all parts of the UI as DSD (based on what MPD reports) instead of 8/88.2 as they current are in some parts of the UI.

Also I added .wv format to the Default and Default+ options for Prefs, Thumbgen scan
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#14
(09-12-2023, 10:31 PM)Tim Curtis Wrote: Ok, the latest commits should fix the WavPack DSD issues. Basically .wv files are assumed to be WavPack compressed DSD and thus will be reported in all parts of the UI as DSD (based on what MPD reports) instead of 8/88.2 as they current are in some parts of the UI.

Something is unclear to me...

is this true: .wv files are assumed to be WavPack compressed DSD

or this: based on what MPD reports
Reply
#15
(09-12-2023, 11:24 PM)Nutul Wrote:
(09-12-2023, 10:31 PM)Tim Curtis Wrote: Ok, the latest commits should fix the WavPack DSD issues. Basically .wv files are assumed to be WavPack compressed DSD and thus will be reported in all parts of the UI as DSD (based on what MPD reports) instead of 8/88.2 as they current are in some parts of the UI.

Something is unclear to me...

is this true: .wv files are assumed to be WavPack compressed DSD

or this: based on what MPD reports

TRUE -> The assumption for .wv (WavPack) format is that it's compressed DSD (DSF or DFF file) which from what I've read is what WavPack is most commonly used for. WavPack compressed PCM (if it even exists) prolly won't display correct info in the UI. In this case just convert the file to FLAC.

The "based on what MPD reports" comment refers to displaying 'DSD64', DSD128' labels which are contained in the MPD Format tag from lsinfo.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#16
(09-13-2023, 12:27 AM)Tim Curtis Wrote:
(09-12-2023, 11:24 PM)Nutul Wrote:
(09-12-2023, 10:31 PM)Tim Curtis Wrote: Ok, the latest commits should fix the WavPack DSD issues. Basically .wv files are assumed to be WavPack compressed DSD and thus will be reported in all parts of the UI as DSD (based on what MPD reports) instead of 8/88.2 as they current are in some parts of the UI.

Something is unclear to me...

is this true: .wv files are assumed to be WavPack compressed DSD

or this: based on what MPD reports

TRUE -> The assumption for .wv (WavPack) format is that it's compressed DSD (DSF or DFF file) which from what I've read is what WavPack is most commonly used for. WavPack compressed PCM (if it even exists) prolly won't display correct info in the UI. In this case just convert the file to FLAC.

The "based on what MPD reports" comment refers to displaying 'DSD64', DSD128' labels which are contained in the MPD Format tag from lsinfo.

Hmm,

ok, got it.
Reply
#17
A .wv file can contain other format besides DSD in theory but in practice I would think either DSD or WAV is the most likely. The OP's sample .wv files are about 1/2 the size of the .dff files that wvunpack extracts from them so I can see the allure if storage-bound but I haven't worried about the size of audio files since I stopped using Walkman-like devices. Smile 

Another mediainfo curiosity for me concerns the cover art. The OP's sample .wv files have metadata in both ID3 and APEv2 tag sets at the end. Their APEv2 tag sets includes album cover data properly tagged COVER ART (FRONT). Despite that, mediainfo doesn't report that the files have any cover art.

I note that the current version of mediainfo available on the mediaarea.net site is 23.07 while moOde currently inherits v20.9 from RaspbiOS. If I get a chance today, I'll build 23.07 (complicated by the need for updating some supporting libraries) to see  what if anything is different.

Regards,
Kent
Reply
#18
(09-13-2023, 11:53 AM)TheOldPresbyope Wrote: A .wv file can contain other format besides DSD in theory but in practice I would think either DSD or WAV is the most likely. The OP's sample .wv files are about 1/2 the size of the .dff files that wvunpack extracts from them so I can see the allure if storage-bound but I haven't worried about the size of audio files since I stopped using Walkman-like devices. Smile 

Another mediainfo curiosity for me concerns the cover art. The OP's sample .wv files have metadata in both ID3 and APEv2 tag sets at the end. Their APEv2 tag sets includes album cover data properly tagged COVER ART (FRONT). Despite that, mediainfo doesn't report that the files have any cover art.

I note that the current version of mediainfo available on the mediaarea.net site is 23.07 while moOde currently inherits  v20.9 from RaspbiOS. If I get a chance today, I'll build 23.07 (complicated by the need for updating some supporting libraries) to see  what if anything is different.

Regards,
Kent

FWIW, on my linux box I have v21.09 and the behavior is the same: no album art, and 8/88.2

As I said, when I removed and added the album art again with kid3, mediainfo reported it correctly.

kid3 itself reports 8/88.2 too. Maybe it also uses mediainfo to retrieve its data, this I cannot say.

ETA:

this is the infor wvunpack shows on the original file from the OP:
Code:
WVUNPACK  Hybrid Lossless Audio Decompressor  Linux Version 5.4.0
Copyright (c) 1998 - 2020 David Bryant.  All Rights Reserved.


file name:         ./01. Shhh-Peaceful.wv
file size:         394870911 bytes
source:            1-bit DSD at 2822400 Hz
channels:          2 (stereo)
duration:          0:18:24.01
modalities:        lossless, high
compression:       49.31%
ave bitrate:       2861 kbps
encoder version:   5
source format:     Philips DSDIFF with 'dff' extension
file wrapper:      144 + 628 bytes (FRM8, DIIN)

APEv2 tag items:   11
Album:             In A Silent Way
Album Artist:      Miles Davis
Artist:            Miles Davis
CatalogNumber:     UDSACD 2088
Comment:           CUE Corrector v. 8.4.2 / b. 1047 (Aug. 05, 2021)
Genre:             Jazz
Organization:      Mobile Fidelity Sound Lab
Title:             Shhh/Peaceful
Track:             01
YEAR:              1969
COVER ART (FRONT): 615806-byte binary item

So we might use wvunpack to gather information about the contained stream.
Reply
#19
(09-13-2023, 12:19 PM)Nutul Wrote:
(09-13-2023, 11:53 AM)TheOldPresbyope Wrote: A .wv file can contain other format besides DSD in theory but in practice I would think either DSD or WAV is the most likely. The OP's sample .wv files are about 1/2 the size of the .dff files that wvunpack extracts from them so I can see the allure if storage-bound but I haven't worried about the size of audio files since I stopped using Walkman-like devices. Smile 

Another mediainfo curiosity for me concerns the cover art. The OP's sample .wv files have metadata in both ID3 and APEv2 tag sets at the end. Their APEv2 tag sets includes album cover data properly tagged COVER ART (FRONT). Despite that, mediainfo doesn't report that the files have any cover art.

I note that the current version of mediainfo available on the mediaarea.net site is 23.07 while moOde currently inherits  v20.9 from RaspbiOS. If I get a chance today, I'll build 23.07 (complicated by the need for updating some supporting libraries) to see  what if anything is different.

Regards,
Kent

FWIW, on my linux box I have v21.09 and the behavior is the same: no album art, and 8/88.2

As I said, when I removed and added the album art again with kid3, mediainfo reported it correctly.

kid3 itself reports 8/88.2 too. Maybe it also uses mediainfo to retrieve its data, this I cannot say.

ETA:

this is the infor wvunpack shows on the original file from the OP:
Code:
WVUNPACK  Hybrid Lossless Audio Decompressor  Linux Version 5.4.0
Copyright (c) 1998 - 2020 David Bryant.  All Rights Reserved.


file name:         ./01. Shhh-Peaceful.wv
file size:         394870911 bytes
source:            1-bit DSD at 2822400 Hz
channels:          2 (stereo)
duration:          0:18:24.01
modalities:        lossless, high
compression:       49.31%
ave bitrate:       2861 kbps
encoder version:   5
source format:     Philips DSDIFF with 'dff' extension
file wrapper:      144 + 628 bytes (FRM8, DIIN)

APEv2 tag items:   11
Album:             In A Silent Way
Album Artist:      Miles Davis
Artist:            Miles Davis
CatalogNumber:     UDSACD 2088
Comment:           CUE Corrector v. 8.4.2 / b. 1047 (Aug. 05, 2021)
Genre:             Jazz
Organization:      Mobile Fidelity Sound Lab
Title:             Shhh/Peaceful
Track:             01
YEAR:              1969
COVER ART (FRONT): 615806-byte binary item

So we might use wvunpack to gather information about the contained stream.

Possibly could parse 'source' and 'channels'. I'll add to the TODO list.

Code:
pi@moode:~ $ sudo apt install wavpack

DSD
Code:
pi@moode:~ $ wvunpack -s '/media/VFAT64/Test_mixed/Eldar/1969 - In A Silent Way (1969, 2012 MFSL RM)/01. Shhh-Peaceful.wv'

 WVUNPACK  Hybrid Lossless Audio Decompressor  Linux Version 5.4.0
 Copyright (c) 1998 - 2020 David Bryant.  All Rights Reserved.


file name:         /media/VFAT64/Test_mixed/Eldar/1969 - In A Silent Way (1969, 2012 MFSL RM)/01. Shhh-Peaceful.wv
file size:         394870911 bytes
source:            1-bit DSD at 2822400 Hz
channels:          2 (stereo)
duration:          0:18:24.01
modalities:        lossless, high
compression:       49.31%
ave bitrate:       2861 kbps
encoder version:   5

PCM
Code:
pi@moode:~ $ wvunpack -s '/media/VFAT64/Test_mixed/Wavepack/2013.Makiko Hirabayashi, Klavs Hovman, Marilyn Mazur - Surely/Makiko Hirabayashi Trio - Surely.wv'

WVUNPACK  Hybrid Lossless Audio Decompressor  Linux Version 5.4.0
Copyright (c) 1998 - 2020 David Bryant.  All Rights Reserved.


file name:         /media/VFAT64/Test_mixed/Wavepack/2013.Makiko Hirabayashi, Klavs Hovman, Marilyn Mazur - Surely/Makiko Hirabayashi Trio - Surely.wv
file size:         260826679 bytes
source:            16-bit ints at 44100 Hz
channels:          2 (stereo)
duration:          0:51:13.72
modalities:        lossless, high, extra-4
compression:       51.90%
ave bitrate:       679 kbps
encoder version:   4
original md5:      31b87fc340943c4a85420b5769bbfec2
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#20
Actually could just MPD status for this format.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Forum Jump: