raymanfx / libv4l-rs

Video4Linux2 bindings for Rust
MIT License
155 stars 65 forks source link

OS Invalid input error #97

Closed hikmetli closed 7 months ago

hikmetli commented 7 months ago

I am trying to execute your example but i am getting this error:

Stream couldn't started: Os { code: 22, kind: InvalidInput, message: "Invalid argument" }

I am using pop-os 22.04 and using droidcam as a camera.

hikmetli commented 7 months ago

Error does not appear on mmap capture example

raymanfx commented 7 months ago

That indicates the userptr buffer mechanism is not available for this hardware / driver combination. There's little we can do about that. Feel free to re-open if you think otherwise.

devNat0 commented 2 months ago

I had the same error running dev.format() by wrongly importing v4l::video::Output instead of v4l::video::Capture.