[gst-devel] is it possible dynamically change framerate in a running pipeline?
John Buckley
buckleyassoc at comcast.net
Thu Jan 14 22:09:22 CET 2010
Tim-Philipp Müller-2 wrote:
>
> On Sat, 2010-01-09 at 21:23 +0100, Farkas Levente wrote:
>
> Hi,
>
>> is it possible dynamically change a running pipeline's framerate while
>> it's in RUNNING state?
>
> Yes.
>
>> or should we've to set to READY, set the
>> framerate and set back to RUNNING?
>
> No.
>
>> since if've to change it to READY
>> then we loose a few frame during the state transmission which wouldn't
>> be useful in case of using a grabber card.
>> or gstreamer not able to change the capabilities in an already
>> negotiated pipeline?
>
> It depends a bit on the elements involved, but there's no problem in
> principle with changing the framerate on the fly. The framerate field in
> the caps is at best indicative, what matters more are timestamps on
> buffers (and the initial newsegment event). Some elements (e.g.
> theoraenc) will not react well if you change the input framerate, but
> most elements won't really care and just process things based on the
> timestamps.
>
> Cheers
> -Tim
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and
> easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
Do you know of any example code of changing these parameters on the fly?
I would like to apply this approach to videocrop, videoscale & the image
size...
-John Buckley
--
View this message in context: http://n4.nabble.com/is-it-possible-dynamically-change-framerate-in-a-running-pipeline-tp1010431p1014264.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list