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

Cannot work with external camera under macOS (Mojave) #102

Open
eugenn opened this issue Sep 28, 2019 · 2 comments
Open

Cannot work with external camera under macOS (Mojave) #102

eugenn opened this issue Sep 28, 2019 · 2 comments

Comments

@eugenn
Copy link

eugenn commented Sep 28, 2019

I've got the following error when try to run under macOS

"python[12359:946679] *** AVCaptureSession warning: Session received the following error while decompressing video: Error Domain=NSOSStatusErrorDomain Code=-12903 "(null)". Make sure that the formats of all video outputs are properly configured."

It happens when I use an external camera, but when I change device id to 1 (inner camera) it works well.

@eugenn eugenn changed the title Cannot work with external camera under MacOS Cannot work with external camera under macOS (Mojave) Sep 28, 2019
@jadielam
Copy link
Collaborator

Can you share your code. This external camera is connected through USB? Or you are using an ip address?

@eugenn
Copy link
Author

eugenn commented Sep 29, 2019

Can you share your code. This external camera is connected through USB? Or you are using an ip address?

import videoflow.core.flow as flow
from videoflow.core.constants import BATCH
from videoflow.producers.video import VideostreamReader

reader = VideostreamReader(url_or_deviceid=0, nb_frames=30)

fl = flow.Flow([reader], [], flow_type=BATCH)

fl.run()
fl.join()

True, camera connected through USB (logitech c922)

This code crashed in macOS but works fine in Ubuntu (python 3.6)

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