[Bug 682480] clockoverlay create huge load

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Aug 23 04:22:44 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=682480
  GStreamer | gst-plugins-base | 0.10.x

--- Comment #2 from Levente Farkas <lfarkas at lfarkas.org> 2012-08-23 11:22:43 UTC ---
0.10.36

just run this test (eg on 2.8ghz p4 celeron):

gst-launch -e videotestsrc is-live=true !
caps=video/x-raw-yuv,framerate=25/1,width=720,height=288 ! clockoverlay
shaded-background=true halignment=left valignment=top xpad=0 ypad=0
time-format="%Y-%m-%d %H:%M:%S" ! fakesink

gst-launch -e videotestsrc is-live=true !
caps=video/x-raw-yuv,framerate=25/1,width=720,height=288 ! clockoverlay
shaded-background=true halignment=left valignment=top xpad=0 ypad=0
time-format="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" ! fakesink

gst-launch -e videotestsrc is-live=true !
caps=video/x-raw-yuv,framerate=25/1,width=720,height=288 ! clockoverlay
shaded-background=true halignment=left valignment=top xpad=0 ypad=0
time-format="a" ! fakesink

gst-launch -e videotestsrc is-live=true !
caps=video/x-raw-yuv,framerate=25/1,width=720,height=288 ! clockoverlay !
fakesink


gst-launch -e videotestsrc is-live=true !
caps=video/x-raw-yuv,framerate=25/1,width=720,height=288 ! fakesink

cpu usage 6%, 5%, 2.5%, 3% and 2.5%. and it's only 1 pipeline.
it seems the time-format is the most expensive thing. it's depend on the long
of the timeformat.

to get a much more obvious example run this 2 pipes the first use 28% and
second only 4% cpu:

gst-launch -e videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! clockoverlay
shaded-background=true halignment=left valignment=top xpad=0 ypad=0
time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true videotestsrc
is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288 !
clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true
videotestsrc is-live=true ! video/x-raw-yuv,framerate=1/1,width=720,height=288
! clockoverlay shaded-background=true halignment=left valignment=top xpad=0
ypad=0 time-format="%Y-%m-%d %H:%M:%S" ! fakesink sync=true silent=true

gst-launch -e videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true videotestsrc is-live=true !
video/x-raw-yuv,framerate=1/1,width=720,height=288 ! fakesink sync=true
silent=true

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list