Bug 395051 - [Feature request] Videos aren't GPU accelerated.
Summary: [Feature request] Videos aren't GPU accelerated.
Status: RESOLVED UPSTREAM
Alias: None
Product: Falkon
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
: 407308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-05 10:09 UTC by Lucia Mrenica
Modified: 2019-05-11 09:46 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucia Mrenica 2018-06-05 10:09:58 UTC
This is probably not a bug but more a feature request. Videos played in Falkon could be GPU accelerated using VAAPI. This would lower CPU usage and provide smoother experience while browsing internet.
Comment 1 magiblot 2018-06-24 21:14:17 UTC
Does 'falkon --ignore-gpu-blacklist' work for you?
Comment 2 Lucia Mrenica 2018-06-25 13:20:06 UTC
(In reply to magiblot from comment #1)
> Does 'falkon --ignore-gpu-blacklist' work for you?

I am not sure. Do you know how can I force h264 on youtube, because I cant decode vp9?
Comment 3 magiblot 2018-06-25 14:04:37 UTC
I don't think you can. You have to find a video that hasn't been encoded to vp9.

For example, this one: https://www.youtube.com/watch?v=jZl_xhmbN3M
Comment 4 Lucia Mrenica 2018-06-25 17:09:34 UTC
(In reply to magiblot from comment #3)
> I don't think you can. You have to find a video that hasn't been encoded to
> vp9.
> 
> For example, this one: https://www.youtube.com/watch?v=jZl_xhmbN3M

I have found another one h264 1080p60 but it looks like only CPU is used. If I found a 4K60 video in h264 that would decide my problem without any doubt.
Comment 5 magiblot 2018-06-25 17:25:39 UTC
I'm afraid these do no longer exist. According to "youtube-dl -F" of some 4K videos, 1080p is the greatest resolution with avc encodes. 1440p and 2160p get vp9 directly. So, you will have to find another website.

However, you can also have falkon playing local mp4 files (not avi or mkv) by dragging them into the window.

Anyway, I used --ignore-gpu-blacklist to remove the "--disable-accelerated-video-decode" option in the QtWebEngineProcess processes (according to htop) in my integrated Intel graphics. I read it in some obscure QupZilla issue from GitHub. Here are some more options you might want to try: https://github.com/QupZilla/qupzilla/issues/1952
Comment 6 Lucia Mrenica 2018-06-25 17:59:51 UTC
(In reply to magiblot from comment #5)
> I'm afraid these do no longer exist. According to "youtube-dl -F" of some 4K
> videos, 1080p is the greatest resolution with avc encodes. 1440p and 2160p
> get vp9 directly. So, you will have to find another website.
> 
> However, you can also have falkon playing local mp4 files (not avi or mkv)
> by dragging them into the window.
> 
> Anyway, I used --ignore-gpu-blacklist to remove the
> "--disable-accelerated-video-decode" option in the QtWebEngineProcess
> processes (according to htop) in my integrated Intel graphics. I read it in
> some obscure QupZilla issue from GitHub. Here are some more options you
> might want to try: https://github.com/QupZilla/qupzilla/issues/1952

Using local 4K60 video confirmed that GPU is not used.
Comment 7 magiblot 2018-06-25 18:14:17 UTC
What's your graphics card?
Comment 8 Lucia Mrenica 2018-06-25 18:15:13 UTC
Intel HD 4400
Comment 9 magiblot 2018-06-25 21:38:03 UTC
I tried many cli options but none worked. Anyway, this looks like a QtWebEngine issue: https://wiki.qt.io/QtWebEngine/VideoAcceleration
I wonder what the developer thinks about this.
Comment 10 magiblot 2018-06-25 21:48:04 UTC
Maybe an extension could be made that replaces the YouTube player with mpv. This is a crazy idea, however. I don't see it feasible.
Comment 11 Lucia Mrenica 2018-06-26 10:21:54 UTC
(In reply to magiblot from comment #10)
> Maybe an extension could be made that replaces the YouTube player with mpv.
> This is a crazy idea, however. I don't see it feasible.

Something similar was made for Firefox but I dont know its current state.
Comment 12 David Rosca 2018-06-26 10:24:40 UTC
As already noted, it is not supported by QtWebEngine.
Comment 13 Christoph Feck 2019-05-11 09:46:29 UTC
*** Bug 407308 has been marked as a duplicate of this bug. ***