Opened 11 months ago

Last modified 6 months ago

#10323 open defect

Incorrect decoding of Monkey's Audio 3.80

Reported by: death Owned by: Michael Niedermayer
Priority: normal Component: avcodec
Version: git-master Keywords: audio, decoding, ape
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

How to reproduce:

ffmpeg -i bigfear.ape bigfear.wav
ffmpeg version 2023-04-17-git-65e537b833-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      58.  6.100 / 58.  6.100
  libavcodec     60.  9.100 / 60.  9.100
  libavformat    60.  4.101 / 60.  4.101
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  5.100 /  9.  5.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
(...)

Output file is incorrect, contains blocks of noise.
Offending file was encoded with Monkey's Audio version 3.80.
https://www.foobar2000.org/temp/bigfear.ape

Attachments (2)

24_bit_fixed_mono_44k_insane.ape (653.8 KB ) - added by ami_stuff 6 months ago.
24_bit_fixed_stereo_44k_insane.ape (717.4 KB ) - added by ami_stuff 6 months ago.

Download all attachments as: .zip

Change History (12)

comment:1 by jeeb, 11 months ago

General info on the sample:

[ape @ 0x3e2f980] Decoding file - v3.80, compression level 4000
[ape @ 0x563f000] Compression Level: 4000 - Flags: 14

comment:3 by Balling, 10 months ago

Status: newopen

Looks like duplicate of #9816. But the file does not open in Adobe Audition.

Last edited 10 months ago by Balling (previous) (diff)

comment:4 by Balling, 6 months ago

That is still broken even after 80ad0e2198df4e2961928d8304da58df6db77ec4. The issue is 192 kHz I imagine.

Last edited 6 months ago by Balling (previous) (diff)

comment:5 by Balling, 6 months ago

Owner: set to Michael Niedermayer

comment:6 by Balling, 6 months ago

BTW, official MAC.exe agrees, it produces wav with md5 that is the same as written in flac header: ffmpeg.exe -i bigfear.wav -c:a pcm_s24le -f md5 -

I.e. 5aa528cf3fe80cea68bf7f7cbea3fc45

BTW if you recompress it to insane level of compression, it will result in smaller file, yet it will still cause artefacts.

Last edited 6 months ago by Balling (previous) (diff)

comment:7 by ami_stuff, 6 months ago

I will attach two more samples with "insane" compression level (monkey's audio 3.99) which decodes with noise

stereo file is interim, mono i'm not sure

by ami_stuff, 6 months ago

by ami_stuff, 6 months ago

comment:8 by ami_stuff, 6 months ago

it looks like 24-bit decoding in ffmpeg is just broken and the problem is not related to some outdated version of monkey's audio encoder, bacause I can create such noisy files with the latest version of encoder as well

Last edited 6 months ago by ami_stuff (previous) (diff)

comment:9 by ami_stuff, 6 months ago

"24_bit_fixed_mono_44k_insane.ape​" and "24_bit_fixed_stereo_44k_insane.ape​" files decodes ok with 20130418-git-ee94362 build, more I didn't test

in reply to:  9 comment:10 by ami_stuff, 6 months ago

Replying to ami_stuff:

"24_bit_fixed_mono_44k_insane.ape​" and "24_bit_fixed_stereo_44k_insane.ape​" files decodes ok with 20130418-git-ee94362 build, more I didn't test

this is ticket #10563 now

Note: See TracTickets for help on using tickets.