Opened 3 years ago
Last modified 2 years ago
#10564 new defect
ape: fix decoding of 24-bit ape files (encoded from 24-bit caf)
| Reported by: | ami_stuff | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
monkey's audio encoder can encode 24-bit caf files to ape format
currently ffmpeg decodes such ape files to noise
./ffmpeg -i 24_bit_fixed_caf.ape -y out.wav
ffmpeg version N-112010-g1a87a9d82a Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
configuration:
libavutil 58. 19.100 / 58. 19.100
libavcodec 60. 26.100 / 60. 26.100
libavformat 60. 11.100 / 60. 11.100
libavdevice 60. 2.101 / 60. 2.101
libavfilter 9. 11.100 / 9. 11.100
libswscale 7. 3.100 / 7. 3.100
libswresample 4. 11.100 / 4. 11.100
Input #0, ape, from '24_bit_fixed_caf.ape':
Duration: 00:00:06.76, start: 0.000000, bitrate: 1961 kb/s
Stream #0:0: Audio: ape (APE / 0x20455041), 48000 Hz, stereo, s32p (24 bit)
Stream mapping:
Stream #0:0 -> #0:0 (ape (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'out.wav':
Metadata:
ISFT : Lavf60.11.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s
Metadata:
encoder : Lavc60.26.100 pcm_s16le
[out#0/wav @ 0x5643addad500] video:0kB audio:1267kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.006014%
size= 1267kB time=00:00:06.72 bitrate=1544.2kbits/s speed= 214x
Attachments (1)
Note:
See TracTickets
for help on using tickets.



I was looking to see if my problem is the same as this problem and I tried playing your sample file. I'm using Windows 10 which maybe doesn't work with CAF files, but I thought I would report what happened.
Winamp plays it as noise, and decoding it with Monkey's Audio results in a WAV that plays the same.
Interestingly, Monkey's Audio says it verifies OK.
The info it shows:
I:\24_bit_fixed_caf.ape
Monkey's Audio 3.99 (Normal)
Format: 48.0 khz, 24 bit, 2 ch
Length: 0:06 (324266 blocks)
Tag: None (0 bytes)
I came here to report that a file of mine was partially turned to seemingly the same kind of noise when decoding from ape to wav. After a bunch of noise blasts, the rest of the file plays fine.
My file's info:
I:\myfile.ape
Monkey's Audio 3.88 (Extra High)
Format: 44.1 khz, 16 bit, 2 ch
Length: 5:54 (15625750 blocks)
Tag: None (0 bytes)
Edit: I figured out a bunch more about what caused my issue and put it in as #10696