Menu

#94 Playback of WavPack files with DSD audio inside fails

1.x.x
open
udsd_01.0 (1)
1
2025-02-07
2025-01-30
ManniX-ITA
No

Playback of WavPack files with DSD audio inside fails, works find with input_sacd.

Discussion

  • Maxim V.Anisiutkin

    Could you share such WavPack file, please?

     
  • ManniX-ITA

    ManniX-ITA - 2025-01-31

    Sent you a PM

     
  • Maxim V.Anisiutkin

    I tested this file with foobar v2.24.1 and foo_input_udsd v0.1.0 for x64/x86. Playback and tag editing worked normally. What doesn't work in your setup? If foobar crashed, please send me crashdumps as well.

     
  • ManniX-ITA

    ManniX-ITA - 2025-02-01

    That's really weird, maybe it's having issues with another plugin?

    Opening track for playback: "file.wv" / index: 1
    Unable to open item for playback (Unsupported format or corrupted file):
    "file.wv" / index: 1
    Error: Cannot open MD5 hash source
    Unrecoverable playback error: Unsupported channel layout

    Will check with the portable version.

    This is my list of plugins:

    Core (2024-12-16 11:29:52 UTC)
    foobar2000 core 2.24.1
    foo_abx (2024-05-02 11:30:48 UTC)
    ABX Comparator 2.2.1
    foo_beefweb (2023-09-03 07:10:02 UTC)
    Beefweb Remote Control 0.8
    foo_converter (2024-12-16 11:30:24 UTC)
    Converter 2.24.1
    foo_cover_resizer (2023-02-22 17:18:26 UTC)
    Cover Resizer 1.0.8
    foo_discogger (2023-05-18 22:25:36 UTC)
    Discogger 1.0.17.4
    foo_dsd_processor (2025-01-22 20:53:37 UTC)
    DSD Processor 1.3.3
    foo_dsp_eq (2024-12-16 11:30:28 UTC)
    Equalizer 1.2.3
    foo_dsp_resampler (2023-07-02 15:42:15 UTC)
    SoX Resampler 0.8.8
    foo_dsp_std (2024-12-16 11:30:30 UTC)
    Standard DSP Array 2.24.1
    foo_dsp_vst3 (2024-04-09 11:38:38 UTC)
    VST 2.x/3.x Adapter 0.12
    foo_fileops (2024-12-16 11:30:34 UTC)
    File Operations 2.24.1
    foo_freedb2 (2024-12-16 11:30:38 UTC)
    Online Tagger 0.10
    foo_headphone_eq (2023-09-05 14:32:14 UTC)
    MathAudio Headphone EQ 1.5.1
    foo_input_apt-x100 (2024-12-18 13:18:54 UTC)
    APT-x100 Decoder 0.3.6
    foo_input_dvda (2024-11-05 13:22:26 UTC)
    DVD-Audio Decoder 0.8.1
    foo_input_ffmpeg (2024-12-01 21:09:44 UTC)
    FFmpeg Decoder Wrapper 0.8.1
    foo_input_std (2024-12-16 11:30:18 UTC)
    CD Audio Decoder 2.24.1
    FFmpeg Decoders 6.0
    FLAC Decoder 1.4.3
    Monkey's Audio Decoder 10.80
    Opus Decoder 1.5.2
    Standard Input Array 2.24.1
    WavPack Decoder 5.7.0
    foo_input_tak (2023-03-16 12:06:34 UTC)
    TAK Decoder 0.5.8
    foo_input_udsd (2025-02-01 10:12:04 UTC)
    uDSD Decoder 0.1.0
    foo_musicbrainz (2023-02-23 21:51:48 UTC)
    MusicBrainz Tagger 0.5.0
    foo_musicbrainz64 (2023-04-04 00:29:06 UTC)
    MusicBrainz64 1.2.9
    foo_openlyrics (2024-09-05 18:28:24 UTC)
    OpenLyrics 1.11
    foo_out_asio (2024-12-27 16:28:34 UTC)
    ASIO Output 2.2.4
    foo_out_asio+dsd (2025-01-21 21:44:20 UTC)
    ASIO+DSD Output 0.4.3
    foo_out_upnp (2022-08-29 15:33:36 UTC)
    UPnP MediaRenderer Output 1.4
    foo_out_wasapis (2024-03-30 14:56:36 UTC)
    WASAPI shared output 0.6.24
    foo_pggb_rt (2023-04-12 08:17:22 UTC)
    PGGB-RT 5.4.1
    foo_popup_panels (2023-05-21 19:29:28 UTC)
    Popup Panels 1.0.2
    foo_room_eq (2023-12-14 00:48:28 UTC)
    MathAudio Room EQ 2.8.4
    foo_ui_columns (2025-01-20 18:03:56 UTC)
    Columns UI 3.0.0-alpha.3
    foo_ui_std (2024-12-16 11:30:04 UTC)
    Album List 2.24.1
    Decoding Speed Test 2.24.1
    Default User Interface 2.24.1
    File Integrity Verifier 2.24.1
    foo_uie_albumlist (2024-09-03 18:38:30 UTC)
    Album list panel 2.0.3
    foo_uie_console (2023-05-06 19:46:38 UTC)
    Console panel 3.0.0
    foo_uie_tagger_mod (2023-04-22 10:35:44 UTC)
    Tagger Panel 2.0.0
    foo_unpack (2024-12-16 11:30:48 UTC)
    ZIP/GZIP/RAR/7-Zip Reader 2.24.1

     
  • ManniX-ITA

    ManniX-ITA - 2025-02-01

    I should have tested more Wavpack files sorry, I don't have many :P

    Not sure how it gets to this issue about the unsupported channels layout.
    It's anyway interesting that input_sacd is more robust and can handle it, while input_udsd ends up with this error.

    The root cause is the WavPack which is messed up.
    I had in the same directory the DSD64 and works perfectly.

    It doesn't work even with the portable version, only your plugins installed.
    The behavior depends also on the audio output, I didn't think about it.
    Somehow the frequency of the DSD256 is not read correctly from the WV.

    I see when playing the same Wavpack but with DSD64 inside:

    DSD64 | 5645 Kbps | 2822400 Hz | stereo

    But with the DSD256 version:

    WavPack | 11176 Kbps | 1411200 Hz | stereo

    What is that? DSD32? :)

    This is not a problem if I use DirectSound/WASAPI output but it is with ASIO, the error is more helpful:

    Unrecoverable playback error: Sample rate of 1411200 Hz not supported by this device

    So this wrong frequency is passed out and in my full installation this causes the "unsupported channels layout"

     
  • ManniX-ITA

    ManniX-ITA - 2025-02-01

    Seems the problem is not in the file but in the foobar's WavPack decoder.

    I used EZ CD Audio Converter to create another WP DSD version from the original.
    The original is correctly read by EZCD, no issue.

    The new version does exactly the same with foobar.
    Only difference is in how the codec is shown in the playlist when not playing the file.
    The original shows DSD256, same as the DSD64 version, but the codec both in the status bar and the playlist changes to WavPack once you start playing the track.
    Instead of setting the correct frequency and bit depth as with DSD64, it's set to 8 bit and the frequency divided by 8.
    Doesn't look like a great idea... it's probably mistakenly identifying the payload as PCM.

    I will check if there's an issue open for this on the WavPack decoder.

     
  • Maxim V.Anisiutkin

    Yes, you are right, some fixings in file info are definitely needed.

     
  • Maxim V.Anisiutkin

    Please check v0.1.1. Reload info tags before playback.

     
  • ManniX-ITA

    ManniX-ITA - 2025-02-03

    Thanks awesome!

    Now on the portable install seems to work, I can see the right frequency reported.

    I still have problems with my main install and I'm struggling to fix it.
    It doesn't work with input_udsd, not input_sacd, and I get always the "Unrecoverable playback error: Unsupported channel layout".
    It's driving me nuts, any idea?

     
  • ManniX-ITA

    ManniX-ITA - 2025-02-03

    I had to go back to input_sacd on my main install, input_udsd doesn't work with WavPack and I can't find any reason why.
    Can't risk to destroy it, too much deep customization.

    BTW both are incompatible with the Fading in Output; once enabled input_sacd crashes in a couple of seconds, input_udsd randomly and foobar never closes when exited (zombie process).
    Is that a known limitation?

     
  • Maxim V.Anisiutkin

    If you zip and share your foobar setup (C:\Program Files\foobar2000, C:\Program Files (x86)\foobar2000, C:\Users\<user>\AppData\Roaming\foobar2000) I'll try to make it out.</user>

     
  • ManniX-ITA

    ManniX-ITA - 2025-02-07

    I'll open a private ticket (never used before).
    Thank you!

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.