Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Format not recognised." for m4a files #431

Open
bohning opened this issue Apr 20, 2024 · 2 comments
Open

"Format not recognised." for m4a files #431

bohning opened this issue Apr 20, 2024 · 2 comments

Comments

@bohning
Copy link

bohning commented Apr 20, 2024

When I try to read an m4a file via

import soundfile as sf
data, samplerate = sf.read('test.m4a')

I get the following error:

soundfile.LibsndfileError: Error opening 'songs/test.m4a': Format not recognised.

Is m4a not supported? Or am I doing something wrong? The file plays just fine e.g. in VLC, was encoded by "Lavf60.3.100".

@bastibe
Copy link
Owner

bastibe commented Apr 22, 2024

M4A is not supported. Soundfile is based on libsndfile, and libsndfile does not support M4A, as it is encumbered by patents. The last M4A patents will expire in 2028 (base profile) and 2031, so expect support to be added some time after that.

@bohning
Copy link
Author

bohning commented Apr 22, 2024

Ah, good to know. Thanks a lot for your answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants