Take snapshot from running pipeline in gstreamer with iOS
Sebastian Dröge
sebastian at centricular.com
Wed Aug 17 08:51:04 UTC 2016
On Tue, 2016-08-16 at 06:19 -0700, Macjon wrote:
> Is there any example code on how to use the last-sample property and
> the gst_video_convert_sample()?
Probably but I can't remember any right now. It's very simple though.
You just get the value of the "last-sample" property at any time you
want to take a snapshot, and then pass the sample you receive to
gst_video_convert_sample(). As a parameter this also takes the caps you
want to convert it to, so you could pass in caps for "image/png" for
example.
The resulting GstSample this returns will then contain a buffer of the
format you specified via caps.
--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160817/57ab98c1/attachment.sig>
More information about the gstreamer-devel
mailing list