I think u need to use the videorate element inbetween with the caps you are setting.<div><br></div><div>That may help you.</div><div><br></div><div>-Ashwini<br><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 9:21 PM, hrbaty <span dir="ltr"><<a href="mailto:garbbraf@gmail.com">garbbraf@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi.<br>
<br>
I have a simple pipeline like this:<br>
/|queue2|--|edgetv|--|ffmpegcolorspace|--|appsink|<br>
|v4l2src|--|videoscale|--|capsfilter|--|ffmpegcolorspace|--|tee|<br>
\|queue2|--|xvimagesink|<br>
<br>
The capsfilter element looks like this:<br>
caps = gst_caps_new_simple("video/x-raw-yuv",<br>
"width", G_TYPE_INT, m_high,<br>
"height", G_TYPE_INT, m_width,<br>
"depth", G_TYPE_INT, 24,<br>
"bpp", G_TYPE_INT, 32,<br>
"framerate", GST_TYPE_FRACTION, 10, 1,<br>
NULL);<br>
g_object_set(G_OBJECT(capsfilter), "caps", caps, NULL);<br>
<br>
and everything works fine, but I'd like to modify caps before appsink.<br>
So I decided to add next caps filter between |ffmpegcolorspace|and|appsink|<br>
caps_2 = gst_caps_new_simple("video/x-raw-rgb",<br>
"width", G_TYPE_INT, m_high,<br>
"height", G_TYPE_INT, m_width,<br>
"depth", G_TYPE_INT, 8,<br>
"bpp", G_TYPE_INT, 8,<br>
"framerate", GST_TYPE_FRACTION, 10, 1,<br>
NULL);<br>
g_object_set(G_OBJECT(capsfilter2), "caps", caps_2, NULL);<br>
<br>
But now I get internal data flow error. What do I do wrong here? Or maybe<br>
there is another way to set caps in appsink, without capsfilter?<br>
<br>
Thanks for any hints.<br>
<br>
BR<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Internal-data-flow-error-during-caps-modification-tp3890773p3890773.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Internal-data-flow-error-during-caps-modification-tp3890773p3890773.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></blockquote></div><br></div>