[gst-devel] gst buffer to image

Olivier Aubert olivier.aubert at liris.cnrs.fr
Fri Dec 11 13:37:59 CET 2009


> irks, thats quite a hack. You should atleast use the handoff signal in fakesrc
> or even better use appsrc. Both playbin and camerabin have such code (see
> gstscreenshot.c in -base/gst/playback/)
This snapshot/conversion issue is becoming a FAQ (search for the keyword
"snapshot" in the mailing-list archive). I will maybe find some time
next week to propose a FAQ entry with appropriate information.

As for using the handoff signal or using appsrc, I think that this
advice cannot be followed when programming in python, as long as the
following bug (for which I have proposed a patch) remains open:
https://bugzilla.gnome.org/show_bug.cgi?id=589582

I have proposed on this list 2 different solutions for snapshotting (one
based on a pipeline conversion of the playbin.props.frame data, and the
other one using a dedicated pipeline with a custom sink). I am now using
the last one for my video annotation application (cf
http://www.advene.org/ ), but I would very much like to also be able to
use the first one, for the live stream annotation case (live annotation
of a webcam stream).

Regards,
Olivier





More information about the gstreamer-devel mailing list