Change resolution on the fly
张若
zr92zr at gmail.com
Mon Sep 26 07:06:41 UTC 2016
Sorry, I am a new comer to gstreamer.
I am not sure where can I change the caps of the second filter? Because the
pipeline is running.
On the terminal or in the c file ?
Thanks
2016-09-26 8:24 GMT+02:00 Sebastian Dröge <sebastian at centricular.com>:
> 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
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160926/d2d49dc3/attachment.html>
More information about the gstreamer-devel
mailing list