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

No support for VideoCaptureMPlane? #121

Open
jkorinth opened this issue Dec 18, 2024 · 4 comments
Open

No support for VideoCaptureMPlane? #121

jkorinth opened this issue Dec 18, 2024 · 4 comments

Comments

@jkorinth
Copy link

Apparently the multi-plane format is not supported, is that correct? I can do, e.g.,

let mut stream = UserptrStream::new(&mut dev, Type::VideoCaptureMplane).unwrap();

But all Devices seem to use Type::VideoCapture implicitly and set_format etc. will fail?

@MarijnS95
Copy link
Collaborator

Perhaps these are relevant / duplicate:

But it looks like there is a dire need (and planning) for massive refactors to the entire buffer and allocation APIs of libv4l-rs, though I am not sure where @raymanfx is at with that.

@gbin
Copy link

gbin commented Jan 29, 2025

Same issue on a Radxa zero 3W and it is the same thing, I cannot capture from the camera.

@raymanfx
Copy link
Owner

I have to admit that my motivation to work on this crate has decreased significantly after moving to a MacOS development host.

The whole buffer abstraction definitively needs reworking to support multi-planar buffers, as you noticed.

Feel free to come up with a proposal of how it should work. I will try to spend some time again on this, but having to use a VM with a virtual camera makes it a bit painful.

@gbin
Copy link

gbin commented Jan 30, 2025

I completely understand... it looks like linux_video might be able to do it, I'll give it a try.

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

4 participants