Improve performance on screen capture using CUDA.

Davide Perini perini.davide at dpsoftware.org
Sun Feb 5 12:20:06 UTC 2023


Hi all,
I'm recording the screen using a pipeline like this:

// ./gst-launch-1.0 d3d11screencapturesrc monitor-handle=221948 ! 
d3d11convert ! d3d11download ! autovideosink
using this pad:
video/x-raw(memory:SystemMemory),width=INTERNAL_SCALING_X,height=INTERNAL_SCALING_Y,sync=false,

I have seen that in GStreamer 1.22 there are some features that uses 
Nvidia CUDA, can I optimize my pipeline using CUDA?

// ./gst-launch-1.0 d3d11screencapturesrc ! cudaconvertscale ! 
cudadownload ! autovideosink
using this pad:
video/x-raw(memory:CUDAMemory),width=INTERNAL_SCALING_X,height=INTERNAL_SCALING_Y,sync=false,

Does CUDA help in improving performance in this use case?

In any case I cannot use CUDA since I got this error:

WARNING: erroneous pipeline: no element "cudaupload"

Any idea?

Thanks
Davide


More information about the gstreamer-devel mailing list