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

WIP: implement DMABuf support #8

Draft
wants to merge 12 commits into
base: stable
Choose a base branch
from
Draft

WIP: implement DMABuf support #8

wants to merge 12 commits into from

Conversation

ABeltramo
Copy link
Member

@ABeltramo ABeltramo commented Nov 21, 2024

See below for more info, here's a TL;DR
GPU-usage-DMA-vs-RAW

Fixes #3

@ABeltramo
Copy link
Member Author

Status update: we can finally exchange DMABuf caps with other plugins and render the wayland output into a DMA buffer to achieve a zero copy pipeline. 🚀

Tested and working pipelines

Simple display output

waylanddisplaysrc ! 'video/x-raw(memory:DMABuf),width=1280,height=720,framerate=60/1' 
! glupload ! glimagesink

Again, just output the buffer

waylanddisplaysrc ! 'video/x-raw(memory:DMABuf),width=1280,height=720,framerate=60/1' 
! glupload ! waylandsink

Nvidia HEVC encoding, decoding and displaying.

waylanddisplaysrc ! 'video/x-raw(memory:DMABuf),width=1280,height=720,framerate=60/1' 
! glupload ! glcolorconvert ! 'video/x-raw(memory:GLMemory),format=NV12' 
!  nvh265enc ! nvh265dec 
! autovideosink

On Nvidia I had to add GST_GL_API=opengl3 to avoid the warning OpenGL context could not support PBO download

Also, will listen for events directly so that we don't have to send them via the pipeline.
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

Successfully merging this pull request may close these issues.

Add support for zero-copy pipeline
1 participant