How to retrieve last-sample from d3d11videosink
jean_philippe_arnaud at yahoo.fr
Tue Mar 2 16:51:28 UTC 2021
I need to store a snapshot from my live display. I'm using the D3D11 elements
on Windows 10 with GStreamer 1.18.3.
The relevant section of the pipeline: "d3d11h264dec ! d3d11convert !
Variable 'sample' is null after the call in the following code:
GstSample* sample = nullptr;
g_object_get(videosink, "last-sample", &sample, NULL);
THROW("Failed getting sample");
If the last-sample option does not work, what alternative do I have to take
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel