<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 30 juin 2020 06 h 30, facepalm <<a href="mailto:ejlungay@gmail.com">ejlungay@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to create a pipeline in gstreamer that would allow me to<br>
dynamically resize the video size or buffer during runtime. Below is what I<br>
wanted ti achieve:<br>
<br>
<<a href="http://gstreamer-devel.966125.n4.nabble.com/file/t379520/Untitled_Diagram_%2810%29.png" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/file/t379520/Untitled_Diagram_%2810%29.png</a>>  <br>
<br>
It is like this:<br>
<br>
We can have<br>
*gst-launch-1.0 videotestsrc pattern=green ! videoscale !<br>
"video/x-raw,width=500,height=500" ! autovideosink*<br>
<br>
Example in three seconds, I wanted to resize the video to 300 by 300 but I<br>
don't want to interrupt the or stop the pipeline from running.<br>
<br>
Is it possible to achieve this in Gstreamer?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, simply update the caps property of your capsfilter element. It will send a reconfigure event which videoscale will honor on the next frame to be process.</div><div dir="auto"><br></div><div dir="auto">You can also demonstrate this while using non scaling sink like ximagesink by rescaling the window.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>