How to retrieve last-sample from d3d11videosink
Nicolas Dufresne
nicolas at ndufresne.ca
Tue Mar 2 18:39:29 UTC 2021
Le mardi 02 mars 2021 à 10:51 -0600, jean-philippe a écrit :
> 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 !
> d3d11videosink".
>
> Variable 'sample' is null after the call in the following code:
>
> GstSample* sample = nullptr;
>
> g_object_get(videosink, "last-sample", &sample, NULL);
> if (!sample)
> THROW("Failed getting sample");
>
> If the last-sample option does not work, what alternative do I have to take
> a snapshot?
Can you check is enable-last-sample property is set ?
>
> Thanks
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list