[gstreamer-bugs] [Bug 605594] New: relatively high cpu usage compared to other players
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Dec 28 03:18:17 PST 2009
https://bugzilla.gnome.org/show_bug.cgi?id=605594
GStreamer | gstreamer (core) | 0.10.x
Summary: relatively high cpu usage compared to other players
Classification: Desktop
Product: GStreamer
Version: 0.10.x
OS/Version: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: leidola at web.de
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Playing an audio file (vorbis, mpeg) using gstreamer (via gst-launch, rhythmbox
and so on) I have a higher cpu than using other players, e.g. mplayer, mpg123
and so on. The cpu usage is always two to three times higher than any other
player I've tested.
time mplayer some_file.ogg; time gst-launch-0.10 playbin
uri=file:///"`pwd`/somefile.ogg"
==========================================================================
Öffne Audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Ausgewählter Audiocodec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: kein Video
Starte Wiedergabe...
A: 331.3 (05:31.2) of 331.4 (05:31.4) 1.0%
real 5m31.586s
user 0m6.428s
sys 0m1.804s
(gst-launch-0.10:21852): GLib-WARNING **: g_set_prgname() called multiple times
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
Got EOS from element "playbin0".
Execution ended after 331431382411 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
real 5m32.227s
user 0m21.937s
sys 0m2.136s
In this case gstreamer uses 3.4 times more cpu time to play a simple ogg file
(using 6.6 % of the cpu power).
While 6.6 % is not much, it drains more battery power of a notebook.
This is reproducible (at least) using an ATOM processor and gentoo-x86 as
system. Everything was compiled using -O2.
Processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU N280 @ 1.66GHz
stepping : 2
cpu MHz : 1667.000
cache size : 512 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc
arch_perfmon pebs bts pni dtes64 monitor ds_cpl est tm2 ssse3 xtpr pdcm movbe
lahf_lm
bogomips : 3324.91
clflush size : 64
power management:
--
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