[gst-devel] run-time adjust fps

Thành Trung Nguyễn trungnthut at gmail.com
Fri Aug 21 04:25:57 CEST 2009


Sorry for my ambiguous question.
What I want is some think like the first solution you offer, but I wonder if
I can do it at run-time, mean It's 30fps at first, then I decrease it to
15fps for example when the video is still playing. Yes, I wonder If we can
do it with videorate and capsfilter at run-time.

Thanks

On Fri, Aug 21, 2009 at 1:49 AM, Michael Smith <msmith at xiph.org> wrote:

> 2009/8/20 Thành Trung Nguyễn <trungnthut at gmail.com>:
> > Hi all,
> >
> > I wonder if we can adjust video fps using capsfilter element at run-time
> ?
> > If we can do that, please tell me how.
>
> Do you want to adjust the actual number of frames per second (by
> inserting new frames; either duplicates or using some more complex
> technique, or dropping frames)? For this, you can use the videorate
> element (followed by a capsfilter specifying the desired framerate).
>
> Or do you want to override the declared framerate on some video (and,
> presumably, override the actual timestamps to match your new
> framerate)? For this, I think you might need to write a new element -
> it'd be very simple though.
>
> Or, do you want to just play back the video content at a different
> framerate? For this, you can send a seek event specifying a rate of
> other than 1.0 to the pipeline.
>
> Just putting a capsfilter by itself in won't help you - capsfilter
> only filters the existing caps, so it won't work if you're specifying
> a different framerate from the input.
>
> Mike
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
trungnt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090821/f8d94512/attachment.htm>


More information about the gstreamer-devel mailing list