Ok thx for the tests.I have the exact same behaviour with the dshowvideosrc,<br>so the &quot;slowness&quot; comes from&nbsp; ( 100% sure :P) the ffmpegcolorspace. Itseems to be good only for size &lt;= 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 &lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>&gt;:<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>
&gt; Could someone try to replace the videotestsrc by v4l2src ? with the<br>
&gt; exact same pipeline.<br>
&gt;<br>
&gt; (on win32, with the dshwovideosrc there is the same behaviour)<br>
&gt;<br>
<br>
</div>gst-launch-0.10 v4l2src ! &quot;video/x-raw-yuv, format=(fourcc)YUY2,<br>
width=640, height=480, framerate=(fraction)30/1&quot; ! 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 ! &quot;video/x-raw-yuv, format=(fourcc)YUY2,<br>
width=640, height=480, framerate=(fraction)30/1&quot; ! xvimagesink<br>
<br>
Is around 2-3%.<br>
<br>
gst-launch-0.10 v4l2src ! &quot;video/x-raw-yuv, format=(fourcc)YUY2,<br>
width=640, height=480, framerate=(fraction)30/1&quot; ! 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>
&gt; Thx.<br>
&gt;<br>
&gt; 2008/6/16 Tim Müller &lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt;:<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; Is it normal that this pipeline :<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; gst-launch-0.10 videotestsrc ! &quot;video/x-raw-yuv,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; format=(fourcc)YUY2,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; width=720, height=576, framerate=(fraction)25/1&quot; !<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; ffmpegcolorspace !<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; video/x-raw-rgb, bpp=32, depth=24 ! fakesink sync=1<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; uses 50% of the CPU on a Pentium4 2.80GHz, 2 Go RAM ?<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; &gt; Please someone can confirm that and say us your CPU ?<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; 24% according to top on an Intel(R) Core(TM)2 Duo CPU T7100<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; @ 1.80GHz.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; Which would equate to filling up half a Core. Yes,<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; ffmpegcolorspace is<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &gt; slow, patches welcome.<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; FWIW, videotestsrc seems to be responsible for about half the<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; cpu cycles<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; burnt in this case (also see [1]).<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Cheers<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-Tim<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; [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>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; -------------------------------------------------------------------------<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Check out the new SourceForge.net Marketplace.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; It&#39;s the best place to buy or sell services for<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; just about anything Open Source.<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; gstreamer-devel mailing list<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
&gt; -------------------------------------------------------------------------<br>
&gt; Check out the new SourceForge.net Marketplace.<br>
&gt; It&#39;s the best place to buy or sell services for<br>
&gt; just about anything Open Source.<br>
&gt; <a href="http://sourceforge.net/services/buy/index.php" target="_blank">http://sourceforge.net/services/buy/index.php</a><br>
&gt; _______________________________________________ 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>