pupil-labs / pyuvc

python binding to libuvc
Other
119 stars 51 forks source link

uvc.InitError when setting 1080p mode #73

Open lesniakpawel87 opened 4 years ago

lesniakpawel87 commented 4 years ago

Hi,

I am trying to use.example.py with Logitech BRIO camera on macOS 10.15.

For _framesize equal 1280,720, 30 it looks fine. However when I set something above that like 1920, 1080, 30 then I get an error: Traceback (most recent call last): File "example.py", line 42, in <module> frame = cap.get_frame_robust() File "uvc.pyx", line 572, in uvc.Capture.get_frame_robust File "uvc.pyx", line 588, in uvc.Capture.get_frame File "uvc.pyx", line 547, in uvc.Capture._start uvc.InitError

When I display available modes I can see: [(640, 480, 120), (640, 480, 90), (640, 480, 60), (640, 480, 30), (640, 480, 24), (640, 480, 20), (640, 480, 15), (640, 480, 10), (640, 480, 7), (640, 480, 5), (160, 120, 30), (160, 120, 24), (160, 120, 20), (160, 120, 15), (160, 120, 10), (160, 120, 7), (160, 120, 5), (176, 144, 30), (176, 144, 24), (176, 144, 20), (176, 144, 15), (176, 144, 10), (176, 144, 7), (176, 144, 5), (320, 180, 30), (320, 180, 24), (320, 180, 20), (320, 180, 15), (320, 180, 10), (320, 180, 7), (320, 180, 5), (320, 240, 30), (320, 240, 24), (320, 240, 20), (320, 240, 15), (320, 240, 10), (320, 240, 7), (320, 240, 5), (352, 288, 30), (352, 288, 24), (352, 288, 20), (352, 288, 15), (352, 288, 10), (352, 288, 7), (352, 288, 5), (424, 240, 30), (424, 240, 24), (424, 240, 20), (424, 240, 15), (424, 240, 10), (424, 240, 7), (424, 240, 5), (480, 270, 30), (480, 270, 24), (480, 270, 20), (480, 270, 15), (480, 270, 10), (480, 270, 7), (480, 270, 5), (640, 360, 30), (640, 360, 24), (640, 360, 20), (640, 360, 15), (640, 360, 10), (640, 360, 7), (640, 360, 5), (800, 448, 30), (800, 448, 24), (800, 448, 20), (800, 448, 15), (800, 448, 10), (800, 448, 7), (800, 448, 5), (800, 600, 30), (800, 600, 24), (800, 600, 20), (800, 600, 15), (800, 600, 10), (800, 600, 7), (800, 600, 5), (848, 480, 30), (848, 480, 24), (848, 480, 20), (848, 480, 15), (848, 480, 10), (848, 480, 7), (848, 480, 5), (960, 540, 30), (960, 540, 24), (960, 540, 20), (960, 540, 15), (960, 540, 10), (960, 540, 7), (960, 540, 5), (1024, 576, 30), (1024, 576, 24), (1024, 576, 20), (1024, 576, 15), (1024, 576, 10), (1024, 576, 7), (1024, 576, 5), (1280, 720, 90), (1280, 720, 60), (1280, 720, 30), (1280, 720, 24), (1280, 720, 20), (1280, 720, 15), (1280, 720, 10), (1280, 720, 7), (1280, 720, 5), (1600, 896, 30), (1600, 896, 24), (1600, 896, 20), (1600, 896, 15), (1600, 896, 10), (1600, 896, 7), (1600, 896, 5), (1920, 1080, 60), (1920, 1080, 30), (1920, 1080, 24), (1920, 1080, 20), (1920, 1080, 15), (1920, 1080, 10), (1920, 1080, 7), (1920, 1080, 5), (2560, 1440, 30), (2560, 1440, 24), (2560, 1440, 20), (2560, 1440, 15), (2560, 1440, 10), (2560, 1440, 7), (2560, 1440, 5), (3840, 2160, 30), (3840, 2160, 24), (3840, 2160, 20), (3840, 2160, 15), (3840, 2160, 10), (3840, 2160, 7), (3840, 2160, 5), (4096, 2160, 30), (4096, 2160, 24), (4096, 2160, 20), (4096, 2160, 15), (4096, 2160, 10), (4096, 2160, 7), (4096, 2160, 5)]

Any idea?