<div dir="ltr">Sorry, I am a new comer to gstreamer.<div>I am not sure where can I change the caps of the second filter? Because the pipeline is running.</div><div>On the terminal or in the c file ?</div><div><br></div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-26 8:24 GMT+02:00 Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, 2016-09-25 at 14:48 +0200, 张若 wrote:<br>
> Hi,<br>
><br>
> I have checked some relative information about changing resolution on<br>
> the fly in past gstreamer-delevel (the links is here):<br>
> <a href="http://gstreamer-devel.966125.n4.nabble.com/dynamic-change-element-s-" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/dynamic-change-<wbr>element-s-</a><br>
> parameter-td2536123.html<br>
><br>
> What I want to do is using the camera to capture a relative high<br>
> resolution video, then change the resolution to a proper one before<br>
> streaming while udp/rtp.<br>
><br>
> I have done the part from camera capture and streaming like this:<br>
><br>
> imxv4l2videosrc -> capsfilter1 -> videoscale -> capsfilter2 -><br>
> imxvpuenc_h264 -> h264parse -> rtph264pay -> udpsink<br>
><br>
> By this I can display the video with the resolution set in<br>
> capsfilter2.<br>
><br>
> But I am not sure how to change the resolution at any time while the<br>
> pipeline is running (need the continuous real time camera capture<br>
> video) by resetting the capsfilter2?<br>
<br>
</span>You can just change the "caps" property on that second capsfilter at<br>
any time you want.<br>
<br>
You might also want to change the "caps-change-mode" property to<br>
"delayed" though.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a></font></span><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>