run-time adjust fps

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

run-time adjust fps

Thành Trung Nguyễn
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.

Thanks

--
Cheers !
trungnt



------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: run-time adjust fps

michael smith-6-3
2009/8/20 Thành Trung Nguyễn <[hidden email]>:
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: run-time adjust fps

Thành Trung Nguyễn
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 <[hidden email]> wrote:
2009/8/20 Thành Trung Nguyễn <[hidden email]>:
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



--
trungnt

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel