Is it possible to make videoscale dynamic?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is it possible to make videoscale dynamic?

facepalm
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?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to make videoscale dynamic?

longkas
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to make videoscale dynamic?

facepalm
thank you, I will look into this



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is it possible to make videoscale dynamic?

Nicolas Dufresne-5
In reply to this post by facepalm


Le mar. 30 juin 2020 06 h 30, facepalm <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel