Sorry for my ambiguous question.<br>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.<br>
<br>Thanks<br><br><div class="gmail_quote">On Fri, Aug 21, 2009 at 1:49 AM, Michael Smith <span dir="ltr"><<a href="mailto:msmith@xiph.org">msmith@xiph.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2009/8/20 Thành Trung Nguyễn <<a href="mailto:trungnthut@gmail.com">trungnthut@gmail.com</a>>:<br>
<div class="im">> Hi all,<br>
><br>
> I wonder if we can adjust video fps using capsfilter element at run-time ?<br>
> If we can do that, please tell me how.<br>
<br>
</div>Do you want to adjust the actual number of frames per second (by<br>
inserting new frames; either duplicates or using some more complex<br>
technique, or dropping frames)? For this, you can use the videorate<br>
element (followed by a capsfilter specifying the desired framerate).<br>
<br>
Or do you want to override the declared framerate on some video (and,<br>
presumably, override the actual timestamps to match your new<br>
framerate)? For this, I think you might need to write a new element -<br>
it'd be very simple though.<br>
<br>
Or, do you want to just play back the video content at a different<br>
framerate? For this, you can send a seek event specifying a rate of<br>
other than 1.0 to the pipeline.<br>
<br>
Just putting a capsfilter by itself in won't help you - capsfilter<br>
only filters the existing caps, so it won't work if you're specifying<br>
a different framerate from the input.<br>
<br>
Mike<br>
<br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what's new with<br>
Crystal Reports now. <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>trungnt<br>