Applying shader to multiple input pads

Jonas Danielsson jonas.danielsson at
Fri Nov 11 13:48:07 UTC 2022


We are working on a project where we want to take two video frames
from two input pads and perform an operation on GPU using a shader with both
frames as input. The output from this should be a single video frame in

And we want to do it in Rust. We are a bit stumped on what the best approach
is for this and was wondering if someone could help us out a bit.

If we were to implement this as a element in Rust, then what should we use
a base class? And what help could we expect to get from it? We managed to
perform transformations on a singla pad input using GstGLFilter as a parent
but we are not sure what to use when we want to work on two GLMemory inputs.

In general do if you have examples of working with multiple input pads in
we are interested! :)

All help and documentation tips appreciated!

Jonas Danielsson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list