[gst-devel] how to determine fps of a camera pipeline
Stefan Kost
ensonic at hora-obscura.de
Tue Nov 3 18:26:19 CET 2009
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
>
gst-launch -v mycamsrc num-buffers=200 ! "video/x-raw-yuv,
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: halley.zhao at intel.com <BLOCKED::mailto:aihua.zhao at 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list