Problems capturing to PNG images
John Coppens
john at jcoppens.com
Tue Sep 11 19:06:30 UTC 2018
On Mon, 10 Sep 2018 17:23:48 +1000
James Cameron <quozl at laptop.org> wrote:
> How I've done it;
>
> - last element in pipeline is gdkpixbufsink
>
> - get the pipeline bus, with get_bus(),
>
> - connect a handler for the 'message' signal,
>
> - in the handler, use get_structure().get_name() to check for
> 'pixbuf', and if so call get_proprty('last-pixbuf) on the
> gdkpixbufsink element,
>
> - in the main program, call pixbuf.savev to convert to PNG file.
>
> Hope that helps.
Thanks James!
Somehow Google never pointed me to that particular sink - a bit strange, as
many of the words must have coincided. And never crossed it in - at least -
dozens of examples I looked over.
As soon as I can get my hands on the camera again I'll try that out.
Cheers!
John
More information about the gstreamer-devel
mailing list