m4a file: assertion failed 'channels > 0'
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
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.
I created those files myself, so it's probably not "legal reasons".
Also,
Assertionchannels > 0' failed`
Doesn't really sound like legal reasons.