Internal data flow error during caps modification

Ashwini Sharma ak.ashwini at gmail.com
Wed Oct 12 21:34:56 PDT 2011


I think u need to use the videorate element inbetween with the caps you are
setting.

That may help you.

-Ashwini

On Mon, Oct 10, 2011 at 9:21 PM, hrbaty <garbbraf at gmail.com> wrote:

> Hi.
>
> I have a simple pipeline like this:
>
>            /|queue2|--|edgetv|--|ffmpegcolorspace|--|appsink|
> |v4l2src|--|videoscale|--|capsfilter|--|ffmpegcolorspace|--|tee|
>
>            \|queue2|--|xvimagesink|
>
> The capsfilter element looks like this:
>    caps = gst_caps_new_simple("video/x-raw-yuv",
>                               "width", G_TYPE_INT, m_high,
>                               "height", G_TYPE_INT, m_width,
>                               "depth", G_TYPE_INT, 24,
>                               "bpp", G_TYPE_INT, 32,
>                               "framerate", GST_TYPE_FRACTION, 10, 1,
>                               NULL);
> g_object_set(G_OBJECT(capsfilter), "caps", caps, NULL);
>
> and everything works fine, but I'd like to modify caps before appsink.
> So I decided to add next caps filter between |ffmpegcolorspace|and|appsink|
>    caps_2 = gst_caps_new_simple("video/x-raw-rgb",
>                               "width", G_TYPE_INT, m_high,
>                               "height", G_TYPE_INT, m_width,
>                               "depth", G_TYPE_INT, 8,
>                               "bpp", G_TYPE_INT, 8,
>                               "framerate", GST_TYPE_FRACTION, 10, 1,
>                               NULL);
> g_object_set(G_OBJECT(capsfilter2), "caps", caps_2, NULL);
>
> But now I get internal data flow error. What do I do wrong here? Or maybe
> there is another way to set caps in appsink, without capsfilter?
>
> Thanks for any hints.
>
> BR
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Internal-data-flow-error-during-caps-modification-tp3890773p3890773.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20111013/48db10a8/attachment.html>


More information about the gstreamer-devel mailing list