Hi: My camera doesn’t provide sets of fps, but could
be queried to get frames of data. So I think it is not a push source, then I add a
capsfilter after it to set frame_rate. gst-launch -v mycamsrc num-buffers=200 !
video/x-raw-yuv, framerate=10 ! tee name=t ! queue ! xvimagesink t. ! theoraenc
! oggmux ! filesink location=test.ogg Is it the correct way? However, I found the real fps doesn’t match to
10 exactly. Then I want to add a videorate after capsfilter to
smooth it. Correct? Thanks. ZHAO,
Halley (Aihua) Email: halley.zhao<a
href="BLOCKED::mailto:aihua.zhao@intel.com"
title="mailto:aihua.zhao@intel.com mailto:hui.xue@intel.com">@intel.com Tel: +86(21)61166476 iNet: 8821-6476 SSG/OTC/Moblin 3W038
Pole: F4 ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Zhao, Halley schrieb:
> > Hi: > > My camera doesn’t provide sets of fps, but could be queried to get > frames of data. > > So I think it is not a push source, then I add a capsfilter after it > to set frame_rate. > > gst-launch -v mycamsrc num-buffers=200 ! video/x-raw-yuv, framerate=10 > ! tee name=t ! queue ! xvimagesink t. ! theoraenc ! oggmux ! filesink > location=test.ogg > framerate=(fraction)10/1" ! tee ... Ideally you would run the thread from mycamsrc under SCHED_RR to ensure that you timestamp buffers when they are read and not when the thread eventually gets scheduled. Stefan > Is it the correct way? > > > > However, I found the real fps doesn’t match to 10 exactly. > > Then I want to add a videorate after capsfilter to smooth it. > > Correct? > > > > Thanks. > > > > > > > > > > > > *ZHAO, Halley (Aihua)* > > Email: [hidden email] <BLOCKED::mailto:[hidden email]> > > Tel: +86(21)61166476 > > iNet: 8821-6476 > > SSG/OTC/Moblin 3W038 Pole: F4 > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ------------------------------------------------------------------------ > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Zhao, Halley
Indeed, advised/requested fps might not always be the real one. For
measuring it, i use a trick: i place a videorate with arbitrary caps after the source, and measure the dropped/duplicated frames to determine the real framerate. You can see and exemple at [1]. I recall there was a developer plugin on it's way used to display/measure the real framerate, but i don't remember. Florent [1] http://code.google.com/p/gst-plugins-elphel/source/browse/trunk/tests/test_elphel_perf.py ------------------------------------------------------------------------------ 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 |
Free forum by Nabble | Edit this page |