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

[feature request] Support V4L2_MEMORY_DMABUF #501

Open
daijh opened this issue Aug 17, 2022 · 10 comments
Open

[feature request] Support V4L2_MEMORY_DMABUF #501

daijh opened this issue Aug 17, 2022 · 10 comments
Assignees
Labels
kind:feature request topic:kernel things regarding the actual kernel module

Comments

@daijh
Copy link
Contributor

daijh commented Aug 17, 2022

Ask V4L2_MEMORY_DMABUF feature support in v4l2loopback. It could be helpful for hardware accelerator usage, e.g. GL and HW encoder.

@daijh daijh added the needs triage new issues label Aug 17, 2022
@daijh
Copy link
Contributor Author

daijh commented Aug 17, 2022

WIP a POC to implement this feature. Will submit PR for review soon.

@chrisiberg
Copy link

Something new on this?
Would be great to connect in gst to a vaapidecoder with "v4l2sink io-mode=dmabuf-import" !

@daijh
Copy link
Contributor Author

daijh commented Nov 14, 2022

Sorry for late reply.
I had an under-development (buggy and limitation) driver which is able to accept dmabuf import.
It changes a few things over original driver.

It may need ~3 week to cleanup for experiment usage.

@chrisiberg
Copy link

Would be great, can't await to test!

@umlaeute
Copy link
Owner

afaic the lack of support for V4L2_MEMORY_DMABUF is the reason why people cannot use the proprietary nvcamerasrc for nVidia's Tegra/Jetson platform (which depends on V4L2_MEMORY_DMABUF)

@activey
Copy link

activey commented Sep 3, 2023

Yeah, it would be great to have it because of #128

@chrisiberg
Copy link

chrisiberg commented Sep 15, 2023

Did someone try daijh expbuf-dmabuf?
https://github.com/daijh/v4l2loopback/tree/expbuf-dmabuf

I had no luck with it, error compiling in yocto with kernel 5.15.94

v4l2loopback.c:3593:28: error: storage size of 'map' isn't known
| 3593 | struct dma_buf_map map;

@daijh
Copy link
Contributor Author

daijh commented Sep 18, 2023

Did someone try daijh expbuf-dmabuf? https://github.com/daijh/v4l2loopback/tree/expbuf-dmabuf

I had no luck with it, error compiling in yocto with kernel 5.15.94

v4l2loopback.c:3593:28: error: storage size of 'map' isn't known | 3593 | struct dma_buf_map map;

I am glad to hear that you are interested in the expbuf-dmabuf repo.
It has been verified to work on Intel MIPI cameras, and probably with USB camera,

It required significant changes to the original v4l2loopback code, making it difficult to backport.

May I know how you plan to use expbuf-dmabuf?

@chrisiberg
Copy link

@daijh
My plans are to use it for RTSP and NDI streams, decode it via VAAPI to view it in chromium with low latency.
It's now working without DMA but is limited in resolution because of the high CPU usage, without DMA I just can use SW-decoding.
Is it possible to connect to Intel VAAPI with DMA, or is it just limited to devices as input?

@daijh
Copy link
Contributor Author

daijh commented Sep 19, 2023

Could you share if any GStreamer command? I could do some experiment on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature request topic:kernel things regarding the actual kernel module
Projects
None yet
Development

No branches or pull requests

4 participants