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

i try to open an audio with m4a format and i got NoBackendError #67

Open
Dashu-Xu opened this issue Apr 11, 2018 · 2 comments
Open

i try to open an audio with m4a format and i got NoBackendError #67

Dashu-Xu opened this issue Apr 11, 2018 · 2 comments

Comments

@Dashu-Xu
Copy link

hi ! thanks for this lib!
i have a audio with m4a format and i want get the content through audioread , but when i doing this i get an error , my code like this:

import audioread
file = './tingting.m4a'
with audioread.audio_open(file) as f:
    print(f.duration, f.channels)
    for buf in f:
        print(f)

the error like this:

NoBackendError                            Traceback (most recent call last)
<ipython-input-8-da9eca8a7457> in <module>()
      1 import audioread
      2 file = './tingting.m4a'
----> 3 with audioread.audio_open(file) as f:
      4     print(f.duration, f.channels)
      5     for buf in f:

D:\Users\keltsing\Anaconda3\lib\site-packages\audioread\__init__.py in audio_open(path)
    114 
    115     # All backends failed!
--> 116     raise NoBackendError()

NoBackendError: 

do i choice a wrong audio format? if that's true, which format audioread support?

@sampsyo
Copy link
Member

sampsyo commented Apr 11, 2018

Hello! It supports all the formats that all the backends support. So depending on your OS, you may consider installing ffmpeg or GStreamer with its full suite of plugins.

@ghost
Copy link

ghost commented Jun 5, 2018

thanks

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