Internal data flow error during caps modification
hrbaty
garbbraf at gmail.com
Mon Oct 10 08:51:46 PDT 2011
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.
More information about the gstreamer-devel
mailing list