GNOME Bugzilla – Bug 784429
Totem player couldn't use VA-API hardware acceleration
Last modified: 2021-05-25 17:32:47 UTC
Created attachment 354775 [details] Totem htop 60% CPU usage each core Totem player couldn't use VA-API hardware acceleration, but VLC player on same computer and video file can $ totem --version totem 3.24.0 $ vainfo libva info: VA-API version 0.40.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib64/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_0_40 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.40 (libva ) vainfo: Driver version: Intel i965 driver for Intel(R) Sandybridge Desktop - 1.8.2 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc
Created attachment 354776 [details] VLC htop (15-20% each core)
This issue has been fixed in Ubuntu 17.10, but you need fixes in a bunch of different components: https://bugs.launchpad.net/bugs/1698287 https://bugs.launchpad.net/bugs/1701463 https://bugs.launchpad.net/bugs/1708091 And I think most of those fixes are still missing in non-Ubuntu distros.
On the other hand, if you're only measuring CPU then it's possible VA-API is actually working in totem and this is then roughly a duplicate of: https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1698282 Even when totem is working with VA-API it uses 10-20 times more CPU than other players. That's an issue I am working on separately.
Actually not quite 10-20 times. It depends on the video, and how big your window is, and which display server you use...
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new enhancement request ticket at https://gitlab.gnome.org/GNOME/clutter-gst/-/issues/ Thank you for your understanding and your help.