Rescale a running live pipeline

Sebastian Dröge sebastian at centricular.com
Sat Mar 19 09:25:59 UTC 2016


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160319/722f29e4/attachment.sig>


More information about the gstreamer-devel mailing list