Opened 2 years ago
Closed 2 years ago
#9887 closed defect (fixed)
Error on decoding 24 bit WavPack file
Reported by: | Rollinnn | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | wavpack |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug: ffmpeg can't properly decode WavPack file 24bit/44.1 kHz that is created with official WavPack comandline tool with parameters -hhx3. Decoded file contains silent sections. WavPack comandline tool decodes this file without problem. If decoded wav is encoded to WavPack again using ffmpeg encoder with -compression_level 3, ffmpeg can't properly decode it too.
How to reproduce:
Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены. C:\Users\Андрей>ffmpeg -i "D:\Downloaded\02 - Ascension.wv" "D:\Downloaded\02 - Ascension.wav" ffmpeg version N-107787-gc469c3c3b1-20220814 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 12.1.0 (crosstool-NG 1.25.0.55_3defb7b) configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=i686-w64-mingw32- --arch=i686 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --disable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --disable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --disable-libsvtav1 --enable-libtwolame --disable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --disable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20220814 libavutil 57. 33.101 / 57. 33.101 libavcodec 59. 42.101 / 59. 42.101 libavformat 59. 30.100 / 59. 30.100 libavdevice 59. 8.101 / 59. 8.101 libavfilter 8. 46.103 / 8. 46.103 libswscale 6. 8.102 / 6. 8.102 libswresample 4. 8.100 / 4. 8.100 libpostproc 56. 7.100 / 56. 7.100 Input #0, wv, from 'D:\Downloaded\02 - Ascension.wv': Metadata: Track : 02/04 Disc : 1/1 Artist : Rchetype Title : Ascension Album : Reset EP Year : 2013 Genre : Drum & Bass Album artist : Rchetype Comment : Visit http://rchetype.bandcamp.com Encoder : WavPack 5.5.0 Settings : -hhx3 Duration: 00:04:01.01, start: 0.000000, bitrate: 1791 kb/s Stream #0:0: Audio: wavpack, 44100 Hz, stereo, s32p (24 bit) Stream mapping: Stream #0:0 -> #0:0 (wavpack (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help Output #0, wav, to 'D:\Downloaded\02 - Ascension.wav': Metadata: IPRT : 02/04 Disc : 1/1 IART : Rchetype INAM : Ascension IPRD : Reset EP Year : 2013 IGNR : Drum & Bass Album artist : Rchetype ICMT : Visit http://rchetype.bandcamp.com Settings : -hhx3 ISFT : Lavf59.30.100 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s Metadata: encoder : Lavc59.42.101 pcm_s16le [wavpack @ 06502140] k 35287168 is too large9.7kbits/s speed=72.5x [wavpack @ 06506140] k 34112190 is too large [wavpack @ 06504fc0] k 35399834 is too large8.1kbits/s speed=89.2x [wavpack @ 06504fc0] k 35110575 is too large [wavpack @ 06506140] k 34911153 is too large [wavpack @ 06504fc0] k 35048486 is too large2.1kbits/s speed= 113x [wavpack @ 06506140] k 37734884 is too large [wavpack @ 065032c0] k 37564940 is too large [wavpack @ 06504240] k 36266347 is too large [wavpack @ 06504fc0] k 35653755 is too large size= 41518kB time=00:04:00.75 bitrate=1412.7kbits/s speed= 131x video:0kB audio:41518kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000494% ffmpeg version N-107787-gc469c3c3b1-20220814 built on 2022-08-14 12:36
File - https://www.dropbox.com/s/gggkb5lp7f51y11/02%20-%20Ascension.wv?dl=1
Change History (3)
comment:1 by , 2 years ago
Component: | undetermined → avcodec |
---|---|
Keywords: | wavpack added |
comment:2 by , 2 years ago
comment:3 by , 2 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 9bf9d42d013bb6ff17aca90d63e2e257a50a6dc3. Please check whether it is bitperfect with original flac.
Will be fixed by http://ffmpeg.org/pipermail/ffmpeg-devel/2022-August/300419.html
It would be also nice to fix 16 channel decoding.