convert-frame signal invalid

Tim Müller tim at centricular.com
Tue Apr 21 02:23:00 PDT 2015


On Tue, 2015-04-21 at 10:04 +0200, Harry wrote:

Hi,

> Using GStreamer 1.4.5 on Windows, and trying to extract the current
> frame as an image, without success.
> My pipeline contains playbin as the only element, and it works fine
> for playing & pausing, but convert-frame fails.

You don't need to create a pipeline and put playbin in it.

Just create a playbin element, it is already a whole pipeline in itself.

> My code is based on several examples I found and is similar to this:
> 
> GstCaps   *caps = gst_caps_from_string("image/png");
> GstSample *sample = 0;
> 
> gst_element_set_state(pipeline, GST_STATE_PAUSED);
> gst_element_get_state(pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
> 
> g_signal_emit_by_name(pipeline, "convert-frame", caps, &sample, NULL);
> 
> I get the error :
> 
> GLib-GObject-WARNING **: gsignal.c:3408: signal name 'convert-frame'
> is invalid for instance '086CD928' of type 'GstPipeline'
> 
> I get the same error when emitting the "convert-frame" signal to
> playbin and also to its video-sink.
> 
> Why is the "convert-frame" signal invalid ? To which element would it
> be valid ?

It's valid for the playbin element, but it's also called
"convert-sample" now, see gst-inspect-1.0 playbin

Regards
 -Tim
-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list