[gst-devel] High CPU usage in ffmpegcolorspace

Wim Taymans wim.taymans at gmail.com
Mon Jun 16 19:02:47 CEST 2008


On Mon, 2008-06-16 at 18:16 +0200, Julien Isorce wrote:
> Could someone try to replace the videotestsrc by v4l2src ? with the
> exact same pipeline.
> 
> (on win32, with the dshwovideosrc there is the same behaviour)
> 

gst-launch-0.10 v4l2src ! "video/x-raw-yuv, format=(fourcc)YUY2,
width=640, height=480, framerate=(fraction)30/1" ! ffmpegcolorspace !
video/x-raw-rgb, bpp=32, depth=24 ! fakesink sync=1

Gives me around 17-18% CPU usage with top. I had to reduce the frame
size but increase the framerate to match the capabilities of my camera.

Removing ffmpegcolorspace from that pipeline brings down the CPU usage 
to around 1% again.

gst-launch-0.10 v4l2src ! "video/x-raw-yuv, format=(fourcc)YUY2,
width=640, height=480, framerate=(fraction)30/1" ! xvimagesink

Is around 2-3%. 

gst-launch-0.10 v4l2src ! "video/x-raw-yuv, format=(fourcc)YUY2,
width=640, height=480, framerate=(fraction)30/1" ! ffmpegcolorspace !
video/x-raw-rgb, bpp=32, depth=24 ! ximagesink

Is around 16% with top.

Wim

> Thx.
> 
> 2008/6/16 Tim Müller <t.i.m at zen.co.uk>:
>         > > Is it normal that this pipeline :
>         > > gst-launch-0.10 videotestsrc ! "video/x-raw-yuv,
>         format=(fourcc)YUY2,
>         > > width=720, height=576, framerate=(fraction)25/1" !
>         ffmpegcolorspace !
>         > > video/x-raw-rgb, bpp=32, depth=24 ! fakesink sync=1
>         > > uses 50% of the CPU on a Pentium4 2.80GHz, 2 Go RAM ?
>         > >
>         > > Please someone can confirm that and say us your CPU ?
>         >
>         > 24% according to top on an Intel(R) Core(TM)2 Duo CPU T7100
>         @ 1.80GHz.
>         > Which would equate to filling up half a Core. Yes,
>         ffmpegcolorspace is
>         > slow, patches welcome.
>         
>         
>         FWIW, videotestsrc seems to be responsible for about half the
>         cpu cycles
>         burnt in this case (also see [1]).
>         
>          Cheers
>          -Tim
>         
>         [1] http://bugzilla.gnome.org/show_bug.cgi?id=500152
>         
>         
>         
>         
>         -------------------------------------------------------------------------
>         Check out the new SourceForge.net Marketplace.
>         It's the best place to buy or sell services for
>         just about anything Open Source.
>         http://sourceforge.net/services/buy/index.php
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.sourceforge.net
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>         
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________ 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