raymanfx / eye-rs

Cross platform camera capture in Rust
MIT License
140 stars 10 forks source link

Trouble acquiring stream on Raspberry Pi (Raspbian) #12

Open DoctorWhoof opened 2 months ago

DoctorWhoof commented 2 months ago

Hi, thanks so much for this crate! I managed to get it running without issues on MacOS, and I can compile on a raspberry Pi.

When I run the program on a raspberry Pi "device.streams()" returns an empty vector, even though I get these devices listed when I print out "ctx.devices()":

Available devices:
    Description { uri: "v4l:///dev/video0", product: "mmal service 16.1" }
    Description { uri: "v4l:///dev/video22", product: "bcm2835-isp" }
    Description { uri: "v4l:///dev/video21", product: "bcm2835-isp" }
    Description { uri: "v4l:///dev/video15", product: "bcm2835-isp" }
    Description { uri: "v4l:///dev/video14", product: "bcm2835-isp" }

There's a camera connected and it is functional, I believe it's the "/dev/video0", listed above. Is there anything I'm missing? The repo with the program, a single main.rs file, is here:

https://github.com/DoctorWhoof/motion-detect

Any help would be appreciated, thanks!

RakuJa commented 2 weeks ago

I have the same problem with raspberry pi 4. When i fetch video stream or images using the picamera software it works without problems. (And also if i try to get the stream from a usb camera attached to the raspberry it works, only with the camera module it won't fetch anything). I'm stuck as well