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 |
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 <[hidden email]> wrote: Hi. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |