Hi,<div><br></div><div>I looked the debug info of the above mentioned pipeline (videotestsrc ! capsfilter ! xvimagesink). When i changed the capsfilter's caps property from 20 fps to 1 fps, i got these lines:</div><div>
<br></div><div>-------------------<br><div>capsfilter gstcapsfilter.c:162:gst_capsfilter_set_property: set new caps video/x-raw-yuv, framerate=(fraction)1/1, width=(int)176, height=(int)144</div><div>capsfilter gstcapsfilter.c:175:gst_capsfilter_set_property: we had negotiated caps video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)20/1</div>
<div>capsfilter gstcapsfilter.c:183:gst_capsfilter_set_property: copied structure fields</div><div>basetransform gstbasetransform.c:2432:gst_base_transform_suggest: new suggest video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)1/1</div>
<div>basetransform gstbasetransform.c:1470:gst_base_transform_buffer_alloc:<caps01:sink>alloc with caps video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)20/1, size 50688</div>
<div>basetransform gstbasetransform.c:1496:gst_base_transform_buffer_alloc:<caps01>new format video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)20/1</div><div>basetransform gstbasetransform.c:1504:gst_base_transform_buffer_alloc:<caps01>have suggestion video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)1/1</div>
<div>basetransform gstbasetransform.c:462:gst_base_transform_transform_caps:<caps01>transform caps (direction = 2)</div><div>capsfilter gstcapsfilter.c:253:gst_capsfilter_transform_caps:<caps01>filter: video/x-raw-yuv, framerate=(fraction)1/1, width=(int)176, height=(int)144</div>
<div>capsfilter gstcapsfilter.c:254:gst_capsfilter_transform_caps:<caps01>intersect: video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)1/1</div><div>basetransform gstbasetransform.c:503:gst_base_transform_transform_caps:<caps01> to: (1) video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)1/1</div>
<div>basetransform gstbasetransform.c:792:gst_base_transform_find_transform:<caps01> intersecting against padtemplate ANY</div><div>...</div><div><div>GST_CAPS gstpad.c:2436:gst_pad_set_caps:<src01:src> caps video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)1/1</div>
</div><div>...</div></div><div><div>GST_PADS gstpad.c:2263:gst_pad_acceptcaps_default:<xvsink01:sink> caps video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176, height=(int)144, framerate=(fraction)1/1</div><div>-------------------<br>
</div><div><br></div><div>It seems to me that the capabilities are changed to 1 fps, on both the source and the sink side, but the pipeline freezed. I don't have any idea why. </div><div>Before i changed the capsfilter's caps property i blocked the source element's source pad, after it i unblocked it. Did i do it right, or what is the correct way of changing the capabilities of a pad?</div>
<div><br></div><div>Please give me some info or example code about it!</div><div><br></div><div>BR, </div><div>Tamas</div><div><br></div><div><br></div></div><div><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:35 AM, Farkas Levente <span dir="ltr"><<a href="mailto:lfarkas@lfarkas.org">lfarkas@lfarkas.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Tim,<br>
could you show us a few lines of example?<br>
thanks in advance.<br>
regards.<br>
<div class="im"><br>
On 01/20/2010 05:59 PM, Tamas Korodi wrote:<br>
> Is there any example code that demonstrates capability renegotiation?<br>
> For example changing the framerate of a running pipeline, because as i<br>
> saw in most cases framerate values are set through capabilities, not<br>
> through properties.<br>
> I already tried to change capsfilter's capabilities in the videotestsrc<br>
> ! capsfilter ! xvimagesink pipeline in PLAYING state, but it didn't work.<br>
><br>
> Cheers,<br>
> Tamas<br>
><br>
> On Fri, Jan 15, 2010 at 1:10 AM, Tim-Philipp Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a><br>
</div><div class="im">> <mailto:<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>>> wrote:<br>
><br>
> On Thu, 2010-01-14 at 13:09 -0800, John Buckley wrote:<br>
><br>
> > Do you know of any example code of changing these parameters on<br>
> the fly?<br>
> > I would like to apply this approach to videocrop, videoscale &<br>
> the image<br>
> > size...<br>
><br>
> <a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/icles/videocrop-test.c" target="_blank">http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/icles/videocrop-test.c</a><br>
><br>
> does something along those lines (run with --with-ffmpegcolorspace). Not<br>
> sure if the pad blocking that the code there does is still needed.<br>
><br>
> Cheers<br>
> -tim<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> Throughout its 18-year history, RSA Conference consistently attracts the<br>
> world's best and brightest in the field, creating opportunities for<br>
> Conference<br>
> attendees to learn about information security's most important<br>
> issues through<br>
> interactions with peers, luminaries and emerging and established<br>
> companies.<br>
> <a href="http://p.sf.net/sfu/rsaconf-dev2dev" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
</div>> <mailto:<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a>><br>
<div class="im">> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
><br>
><br>
><br>
><br>
> --<br>
> kotyoTK<br>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> Throughout its 18-year history, RSA Conference consistently attracts the<br>
> world's best and brightest in the field, creating opportunities for Conference<br>
> attendees to learn about information security's most important issues through<br>
> interactions with peers, luminaries and emerging and established companies.<br>
> <a href="http://p.sf.net/sfu/rsaconf-dev2dev" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
<br>
--<br>
</div><div class="im"> Levente "Si vis pacem para bellum!"<br>
<br>
------------------------------------------------------------------------------<br>
</div><div><div></div><div class="h5">Throughout its 18-year history, RSA Conference consistently attracts the<br>
world's best and brightest in the field, creating opportunities for Conference<br>
attendees to learn about information security's most important issues through<br>
interactions with peers, luminaries and emerging and established companies.<br>
<a href="http://p.sf.net/sfu/rsaconf-dev2dev" target="_blank">http://p.sf.net/sfu/rsaconf-dev2dev</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>kotyoTK<br>
</div>