It appears we've reached a milestone today: totem's CPU usage is no longer significantly higher than gst-play-1.0 --videosink=clutterautovideosink (or glimagesink)
If you compare it to mpv though, totem is 2-3 times heavier still. However profiling totem and gst-play-1.0 today seems to suggest that is due to: (a) Lack of DMA-buf support in clutter-gst (https://bugzilla.gnome.org/show_bug.cgi?id=759209) (b) General complexity of GStreamer I think the remaining piece here is to get (a) fixed. However before that will ever work for us, apparently gstreamer-vaapi needs additional fixing so that it does not conflict with the patch we're using for Ubuntu right now: https://bugzilla.gnome.org/show_bug.cgi?id=784369#c12 It sounds like this remaining piece (a) is in progress with upstream. And (b) doesn't look as significant or like a realistically solvable problem any time soon. So I think I'm done here, unless I can help upstream with (a)... ** Bug watch added: GNOME Bug Tracker #784369 https://bugzilla.gnome.org/show_bug.cgi?id=784369 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to gstreamer1.0 in Ubuntu. https://bugs.launchpad.net/bugs/1698282 Title: Totem uses dramatically higher CPU than any other video player Status in Clutter GStreamer Bindings: Unknown Status in Clutter GTK: Confirmed Status in Gstreamer1.0: Fix Released Status in clutter-gst-3.0 package in Ubuntu: Confirmed Status in clutter-gtk package in Ubuntu: Fix Released Status in gstreamer1.0 package in Ubuntu: Fix Released Status in totem package in Ubuntu: Fix Released Bug description: Totem uses dramatically higher CPU than any other video player. Example 1: software playback under Gnome Shell Wayland: totem: 120% (but drops to 80% in Unity7) mplayer: 40% vlc: 40% [all are using ffmpeg for decoding] Example 2: hardware-accelerated playback under Gnome Shell Xorg: totem: 11% gst-play-1.0: 3% [both are using gstreamer-vaapi for decoding] Since the decoding libraries are theoretically the same it sounds like totem's performance problems might be in its rendering path. ProblemType: Bug DistroRelease: Ubuntu 17.10 Package: libgstreamer1.0-0 1.12.0-2 ProcVersionSignature: Ubuntu 4.10.0-22.24-generic 4.10.15 Uname: Linux 4.10.0-22-generic x86_64 ApportVersion: 2.20.5-0ubuntu4 Architecture: amd64 Date: Fri Jun 16 12:57:11 2017 InstallationDate: Installed on 2017-05-03 (44 days ago) InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170502) LogAlsaMixer: Error: command ['/usr/bin/amixer'] failed with exit code 1: amixer: Mixer attach default error: No such file or directory SourcePackage: gstreamer1.0 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/clutter-gst/+bug/1698282/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp