Ok thx for the tests.I have the exact same behaviour with the dshowvideosrc,<br>so the "slowness" comes from ( 100% sure :P) the ffmpegcolorspace. Itseems to be good only for size <= 320*240 (5% CPU at 150 FPS),<br>
so for now I will just do the conversion myself for my very precise needs.<br><br>J.<br><br><div class="gmail_quote">2008/6/16 Wim Taymans <<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, 2008-06-16 at 18:16 +0200, Julien Isorce wrote:<br>
> Could someone try to replace the videotestsrc by v4l2src ? with the<br>
> exact same pipeline.<br>
><br>
> (on win32, with the dshwovideosrc there is the same behaviour)<br>
><br>
<br>
</div>gst-launch-0.10 v4l2src ! "video/x-raw-yuv, format=(fourcc)YUY2,<br>
width=640, height=480, framerate=(fraction)30/1" ! ffmpegcolorspace !<br>
<div class="Ih2E3d">video/x-raw-rgb, bpp=32, depth=24 ! fakesink sync=1<br>
<br>
</div>Gives me around 17-18% CPU usage with top. I had to reduce the frame<br>
size but increase the framerate to match the capabilities of my camera.<br>
<br>
Removing ffmpegcolorspace from that pipeline brings down the CPU usage<br>
to around 1% again.<br>
<br>
gst-launch-0.10 v4l2src ! "video/x-raw-yuv, format=(fourcc)YUY2,<br>
width=640, height=480, framerate=(fraction)30/1" ! xvimagesink<br>
<br>
Is around 2-3%.<br>
<br>
gst-launch-0.10 v4l2src ! "video/x-raw-yuv, format=(fourcc)YUY2,<br>
width=640, height=480, framerate=(fraction)30/1" ! ffmpegcolorspace !<br>
video/x-raw-rgb, bpp=32, depth=24 ! ximagesink<br>
<br>
Is around 16% with top.<br>
<font color="#888888"><br>
Wim<br>
</font><div><div></div><div class="Wj3C7c"><br>
> Thx.<br>
><br>
> 2008/6/16 Tim Müller <<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>>:<br>
> > > Is it normal that this pipeline :<br>
> > > gst-launch-0.10 videotestsrc ! "video/x-raw-yuv,<br>
> format=(fourcc)YUY2,<br>
> > > width=720, height=576, framerate=(fraction)25/1" !<br>
> ffmpegcolorspace !<br>
> > > video/x-raw-rgb, bpp=32, depth=24 ! fakesink sync=1<br>
> > > uses 50% of the CPU on a Pentium4 2.80GHz, 2 Go RAM ?<br>
> > ><br>
> > > Please someone can confirm that and say us your CPU ?<br>
> ><br>
> > 24% according to top on an Intel(R) Core(TM)2 Duo CPU T7100<br>
> @ 1.80GHz.<br>
> > Which would equate to filling up half a Core. Yes,<br>
> ffmpegcolorspace is<br>
> > slow, patches welcome.<br>
><br>
><br>
> FWIW, videotestsrc seems to be responsible for about half the<br>
> cpu cycles<br>
> burnt in this case (also see [1]).<br>
><br>
> Cheers<br>
> -Tim<br>
><br>
> [1] <a href="http://bugzilla.gnome.org/show_bug.cgi?id=500152" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=500152</a><br>
><br>
><br>
><br>
><br>
> -------------------------------------------------------------------------<br>
> Check out the new SourceForge.net Marketplace.<br>
> It's the best place to buy or sell services for<br>
> just about anything Open Source.<br>
> <a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</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>
><br>
><br>
> -------------------------------------------------------------------------<br>
> Check out the new SourceForge.net Marketplace.<br>
> It's the best place to buy or sell services for<br>
> just about anything Open Source.<br>
> <a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
> _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
</div></div></blockquote></div><br>