RE: DSF files compressed with WavPack play back as "8/88.2"? - Nutul - 09-13-2023
(09-13-2023, 01:19 PM)Tim Curtis Wrote: (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.
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
Exactly. source and channels should do it
RE: DSF files compressed with WavPack play back as "8/88.2"? - Tim Curtis - 09-13-2023
MPD also parses it correctly using wither the 'audio' tag in status or the 'Format' tag in lsinfo. This WV parse logic in function encodedAt() is mostly there so a bit of extra code should do it. No need to install the wavpack package.
Still though, wavpack PCM is rare.
RE: DSF files compressed with WavPack play back as "8/88.2"? - TheOldPresbyope - 09-13-2023
Another day, another package, but I like it cuz it avoids assuming anything.
Regards,
Kent
RE: DSF files compressed with WavPack play back as "8/88.2"? - Nutul - 09-13-2023
(09-13-2023, 01:51 PM)Tim Curtis Wrote: MPD also parses it correctly using wither the 'audio' tag in status or the 'Format' tag in lsinfo. This WV parse logic in function encodedAt() is mostly there so a bit of extra code should do it. No need to install the wavpack package.
whatever is the easiest. Anyway, MPD is able to extract and save the info in the database, right? As we need to access such data even when the file is not playing...
(09-13-2023, 01:51 PM)Tim Curtis Wrote: Still though, wavpack PCM is rare.
It may be true, but so far all the wavpacks I had at hand (may 15 / 20 complete albums) contained PCM at 96 or 192kHz.
I extracted them, as I would for DSD content, as I prefer not to have many file-types over.
Leaving guesses aside, when it comes to software, is always a good thing IMO :-)
|