How to update videomixer properties during runtime?

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

How to update videomixer properties during runtime?

facepalm
I have a pipeline like this

*gst-launch-1.0 -e \
videomixer name=mix sink_1::xpos=290 sink_1::ypos=10 ! videoconvert !
autovideosink sync=false \
videotestsrc pattern=red \
! videoscale ! "video/x-raw,width=500,height=500" \
! mix. \
videotestsrc pattern=white \
! videoscale ! "video/x-raw,width=200,height=200" \
! mix.*

I wanted to change *videomixer*'s properties during runtime.

For example I have:
*videomixer name=mix sink_1::xpos=290 sink_1::ypos=10*

and I need to change the seconds video's position defined by xpos and ypos
to (100,20) without stopping the pipeline:
*videomixer name=mix sink_1::xpos=100 sink_1::ypos=20*

Is it possible to achieve 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: How to update videomixer properties during runtime?

Matthew Waters
Yes, but you have to write code.  This kind of interaction is not
possible with gst-launch.

On 1/7/20 6:49 pm, facepalm wrote:

> I have a pipeline like this
>
> *gst-launch-1.0 -e \
> videomixer name=mix sink_1::xpos=290 sink_1::ypos=10 ! videoconvert !
> autovideosink sync=false \
> videotestsrc pattern=red \
> ! videoscale ! "video/x-raw,width=500,height=500" \
> ! mix. \
> videotestsrc pattern=white \
> ! videoscale ! "video/x-raw,width=200,height=200" \
> ! mix.*
>
> I wanted to change *videomixer*'s properties during runtime.
>
> For example I have:
> *videomixer name=mix sink_1::xpos=290 sink_1::ypos=10*
>
> and I need to change the seconds video's position defined by xpos and ypos
> to (100,20) without stopping the pipeline:
> *videomixer name=mix sink_1::xpos=100 sink_1::ypos=20*
>
> Is it possible to achieve this?
>
>
>
>
>
> --
> 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

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to update videomixer properties during runtime?

facepalm
Sir, I would do anything to achieve this. Can you site some examples like
what language or anything or links? PLease?



--
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: How to update videomixer properties during runtime?

Josh Doe
On Wed, Jul 1, 2020 at 5:10 AM facepalm <[hidden email]> wrote:
Sir, I would do anything to achieve this. Can you site some examples like
what language or anything or links? PLease?

I'd suggest Python. Here's an example:

The position is set via the mixer's sink pads:
mix = playbin.get_by_name('mix')
pad = mix.get_static_pad('sink_1')
pad.set_property('xpos', 100)



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

Re: How to update videomixer properties during runtime?

facepalm
@Josh Doe, thank you for this



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel