Change resolution on the fly
Sebastian Dröge
sebastian at centricular.com
Mon Sep 26 06:24:16 UTC 2016
On Sun, 2016-09-25 at 14:48 +0200, 张若 wrote:
> Hi,
>
> I have checked some relative information about changing resolution on
> the fly in past gstreamer-delevel (the links is here):
> http://gstreamer-devel.966125.n4.nabble.com/dynamic-change-element-s-
> parameter-td2536123.html
>
> What I want to do is using the camera to capture a relative high
> resolution video, then change the resolution to a proper one before
> streaming while udp/rtp.
>
> I have done the part from camera capture and streaming like this:
>
> imxv4l2videosrc -> capsfilter1 -> videoscale -> capsfilter2 ->
> imxvpuenc_h264 -> h264parse -> rtph264pay -> udpsink
>
> By this I can display the video with the resolution set in
> capsfilter2.
>
> But I am not sure how to change the resolution at any time while the
> pipeline is running (need the continuous real time camera capture
> video) by resetting the capsfilter2?
You can just change the "caps" property on that second capsfilter at
any time you want.
You might also want to change the "caps-change-mode" property to
"delayed" though.
--
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: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160926/97ff4188/attachment.sig>
More information about the gstreamer-devel
mailing list