Rescale a running live pipeline

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

Rescale a running live pipeline

Thomas Scheuermann
Hello,

I have the following pipeline running:

rtspsrc ! decodebin ! vaapipostproc ! capsfilter ! appsink

Now I want to change the size of the video.
What I do now is adding a probe with GST_PAD_PROBE_TYPE_IDLE after decodebin
and in the callback I change the capsfilter with the new size.

Is this the correct way or do I have to do anything else like changing
the state of the pipeline
or splitting the pipeline and reconnect after changing the capsfilter?

It works most of the time, but I've also seen crashes.
So I don't know if this is the correct principle to resize the video.

Regards,

Thomas
This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Rescale a running live pipeline

Sebastian Dröge-3
On Fr, 2016-03-18 at 15:59 +0100, Thomas Scheuermann wrote:

> Hello,
>
> I have the following pipeline running:
>
> rtspsrc ! decodebin ! vaapipostproc ! capsfilter ! appsink
>
> Now I want to change the size of the video.
> What I do now is adding a probe with GST_PAD_PROBE_TYPE_IDLE after
> decodebin
> and in the callback I change the capsfilter with the new size.
>
> Is this the correct way or do I have to do anything else like
> changing
> the state of the pipeline
> or splitting the pipeline and reconnect after changing the
> capsfilter?
>
> It works most of the time, but I've also seen crashes.
> So I don't know if this is the correct principle to resize the video.
How does it crash sometimes? In theory that's the correct way of doing
it, but you probably also want to set the caps-change-mode property on
capsfilter to delayed.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


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

signature.asc (968 bytes) Download Attachment