[gst-devel] This pipeline consume 100% CPU after resize x output window

Andy Wingo wingo at pobox.com
Wed Aug 8 00:08:15 CEST 2007


"Black Penguin" <gnomecn at gmail.com> writes:

> gst-launch --gst-debug=2 v4lsrc copy-mode=false autoprobe=false
> device=/dev/video1 ! video/x-raw-yuv,width=320,height=240 !
> ffmpegcolorspace ! videobalance ! queue ! tee name=teexx teexx. !
> queue ! timeoverlay ! videoscale ! ffmpegcolorspace ! ximagesink
> teexx. ! queue ! ffmpegcolorspace ! fakesink silent=true
>
> It goes well when it start to run, But after resize the X output
> window, it consume 100% CPU.

This is because when it first starts, some of the filters can operate on
the data in-place, without copying. For example, videoscale does nothing
when it does not need to scale. After you resize, you effectively "turn
videoscale on", hence the increase in CPU usage.

Use xvimagesink if you can, or some other sink which supports scaling in
hardware, without the need for software videoscale.

Regards,

Andy
-- 
http://wingolog.org/




More information about the gstreamer-devel mailing list