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

Mac unable to read camera #726

Closed
lucasjinreal opened this issue Jan 16, 2022 · 4 comments · Fixed by #738
Closed

Mac unable to read camera #726

lucasjinreal opened this issue Jan 16, 2022 · 4 comments · Fixed by #738

Comments

@lucasjinreal
Copy link

lucasjinreal commented Jan 16, 2022

imageio/plugins/ffmpeg.py", line 475, in _initialize
    raise IndexError(
IndexError: No (working) camera at <video0>.
@lucasjinreal lucasjinreal changed the title Mac unable to read camear Mac unable to read camera Jan 16, 2022
@FirefoxMetzger
Copy link
Contributor

FirefoxMetzger commented Jan 16, 2022

Mac has tighter security than the other OSes. Did you double-check that you gave permission to the shell executing the python script/interpreter to access your webcam?

@FirefoxMetzger
Copy link
Contributor

@jinfagang Did you manage to solve the issue? If not, could you provide some more detail so that we can try to reproduce the behavior locally?

(As with similar issues in the past, if I don't hear from you in the next couple of days, I will close this issue as solved. However, you can simply comment if it persists and I can reopen.)

@almarklein
Copy link
Member

I can reproduce this. Could you try iio.get_reader('<video0>', fps=30)?

@almarklein
Copy link
Member

This relates to #699. It was me who proposed to set the default framerate to 15, because earlier reports from mac users indicated that that was necessary.

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

Successfully merging a pull request may close this issue.

3 participants