Appsrc internal dataflow error.

Tim Müller tim at centricular.com
Sun Aug 30 04:01:02 PDT 2015


On Sat, 2015-08-29 at 14:01 -0700, dtmoodie wrote:

Hi,

> I'm trying to stream images from opencv to a gstreamer pipeline.
> 
> My caps are as follows:
> GstCaps* caps = gst_caps_new_simple("video/x-raw",
> 	"format", G_TYPE_STRING, "RGB24",
> 	"width", G_TYPE_INT, imgSize.width,
> 	"height", G_TYPE_INT, imgSize.height,
> 	"framerate", GST_TYPE_FRACTION, 15, 1,
> 	"pixel-aspect-ratio", GST_TYPE_FRACTION, 1, 1,
> 	NULL);
> 
> I've also tried with format = RGB.
> red_mask     = 0x00ff0000
> blue_mask   = 0x000000ff
> green_mask = 0x0000ff00
> endianness

Those fields are no longer needed in GStreamer 1.x, they are now implied
by the format string.

> Some examples I'm going off of:
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-caps-api.html
> http://www.imgportal.net/home/wp-content/uploads/maris-script1.cpp
> 
> My desired pipeline:
> appsrc name=mysource ! openh264enc ! rtph264pay config-interval=1 pt=96 !
> udpsink host=127.0.0.1 port=8004

As Justin Kim said, openh264enc wants input in I420 YUV, not RGB. Try
adding a videoconvert element between appsrc and openh264enc.

Cheers
 -Tim

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

Join us at the GStreamer Conference: 8-9 October 2015 in Dublin, Ireland




More information about the gstreamer-devel mailing list