libsamplerate icon indicating copy to clipboard operation
libsamplerate copied to clipboard

m4a file: assertion failed 'channels > 0'

Open bmarwell opened this issue 11 months ago • 2 comments

Hi, I am trying to burn a CD with k3b (yes, some use cases still exist). And k3b uses libsamplerate. I have some audio files in m4a format, and this is what happens:

[aac @ 0x71e2fc030e80] Gain control is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x71e2fc030e80] Reserved bit set.
[aac @ 0x71e2fc030e80] Prediction is not allowed in AAC-LC.
(K3bFFMpegFile) error submitting packet to the decoder
k3b: /usr/src/debug/libsamplerate/libsamplerate-0.2.2/src/src_sinc.c:266: sinc_state_new: Assertion `channels > 0' failed.
[1]    7040 IOT instruction (core dumped)  k3b

After converting them to flac first, I saw no error message in libsamplerate. I am using v0.2.2-3 on Arch Linux.

Thanks, Ben

bmarwell avatar Feb 08 '25 12:02 bmarwell

If you are using libsndfile to read in the .m4a files, keep in mind that there are a lot of .m4a files out there that libsndfile doesn't actually support reading from (mostly for legal reasons), and this issue might be related to that rather than to something in libsamplerate particularly.

jfriesne avatar Jun 27 '25 21:06 jfriesne

I created those files myself, so it's probably not "legal reasons".

Also,

Assertion channels > 0' failed`

Doesn't really sound like legal reasons.

bmarwell avatar Aug 23 '25 15:08 bmarwell