Is it possible to make videoscale dynamic?

Nicolas Dufresne nicolas at ndufresne.ca
Wed Jul 1 02:34:00 UTC 2020


Le mar. 30 juin 2020 06 h 30, facepalm <ejlungay at gmail.com> a écrit :

> I am trying to create a pipeline in gstreamer that would allow me to
> dynamically resize the video size or buffer during runtime. Below is what I
> wanted ti achieve:
>
> <
> http://gstreamer-devel.966125.n4.nabble.com/file/t379520/Untitled_Diagram_%2810%29.png>
>
>
> It is like this:
>
> We can have
> *gst-launch-1.0 videotestsrc pattern=green ! videoscale !
> "video/x-raw,width=500,height=500" ! autovideosink*
>
> Example in three seconds, I wanted to resize the video to 300 by 300 but I
> don't want to interrupt the or stop the pipeline from running.
>
> Is it possible to achieve this in Gstreamer?
>

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.

You can also demonstrate this while using non scaling sink like ximagesink
by rescaling the window.

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200630/6bf7d880/attachment.htm>


More information about the gstreamer-devel mailing list