Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 554 Bytes

File metadata and controls

14 lines (11 loc) · 554 Bytes

qtgstreamer-snapshot-taker-example

A simple application based on QtGStreamer which can play a video and take snapshots.

The create pipeline is quite simple:

----------------   --------------
| videotestsrc |-->| ximagesink |
----------------   --------------

Basically, We use the last-sample property of ximagesink to get a GstSample. This sample is converted in the desired format, using gst_video_convert_sample. Then, the converted sample is written into a QImage