Appsrc : Error in the internal data flow

Tim-Philipp Müller t.i.m at zen.co.uk
Wed Mar 30 05:54:07 PDT 2011


On Wed, 2011-03-30 at 09:37 -0400, Matias Hernandez Arellano wrote:

Hi,

> sprintf(pipe_str,"appsrc name=mysource ! video/x-raw-bgr,(...) ! ffmpegcolorspace ! (...)
>   (...)
> /* set the caps on the source */
> caps = gst_caps_new_simple ("video/x-raw-bgr",
> "depth",G_TYPE_INT,frame->depth,
> "width", G_TYPE_INT, frame->width,
> "height", G_TYPE_INT, frame->height,
> NULL);

This ("video/x-raw-bgr") is not a media type used elsewhere in
GStreamer. It should be "video/x-raw-rgb", and then you use the various
mask and endianness fields to express the ordering.

There are some useful utility functions for that in libgstvideo:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#gst-video-format-new-caps

Cheers
 -Tim



More information about the gstreamer-devel mailing list