Bug 237277 - www/qt5-webengine: HTML5 video rendering/play color problem
Summary: www/qt5-webengine: HTML5 video rendering/play color problem
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: kde
URL:
Keywords:
: 237330 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-14 09:23 UTC by Nuno Teixeira
Modified: 2019-08-19 21:15 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
falkon (38.70 KB, image/png)
2019-04-14 09:23 UTC, Nuno Teixeira
no flags Details
otter with webengine (45.49 KB, image/png)
2019-04-14 09:23 UTC, Nuno Teixeira
no flags Details
otter with webkit (346.31 KB, image/png)
2019-04-14 09:24 UTC, Nuno Teixeira
no flags Details
glxinfo log (12.86 KB, text/plain)
2019-04-14 09:27 UTC, Nuno Teixeira
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno Teixeira 2019-04-14 09:23:15 UTC
Created attachment 203660 [details]
falkon

Hello,

Since last qt-webengine port update I cannot see html5 videos with correct color.

https://www.quirksmode.org/html5/tests/video.html , video is played in blue color.

www.youtube.com videos are played in green/black colors.

I tested with falkon and otter-browser with webkit and webengine backends, only webkit backend works normally.

I'm using freebsd 12.0 with latest ports.

I have take some screenshots.

Thanks,

Nuno Teixeira
Comment 1 Nuno Teixeira 2019-04-14 09:23:59 UTC
Created attachment 203661 [details]
otter with webengine
Comment 2 Nuno Teixeira 2019-04-14 09:24:34 UTC
Created attachment 203662 [details]
otter with webkit
Comment 3 Nuno Teixeira 2019-04-14 09:27:34 UTC
Created attachment 203663 [details]
glxinfo log
Comment 4 Tobias C. Berner freebsd_committer 2019-04-17 13:46:09 UTC
*** Bug 237330 has been marked as a duplicate of this bug. ***
Comment 5 Lorenzo Salvadore 2019-04-24 19:19:23 UTC
I think the problem is that we need to get back WebRTC.
See https://wiki.qt.io/QtWebEngine/VideoAcceleration .
Comment 6 Alexander Sherikov 2019-06-30 10:53:33 UTC
qutebrowser has the same issue. For those who are looking for a quick fix: forcing software rendering helps, e.g, "c.qt.force_software_rendering='chromium'".
Comment 7 Dwayne MacKinnon 2019-06-30 20:46:32 UTC
I'm using nvidia-driver on FreeBSD 12.0-RELEASE-p2. The only browser I have that uses qt-webengine (according to pkg info -d) is konqueror. The video at quirksmode looks fine to me. 

Just including another result in the hope that it can help narrow things down.
Comment 8 Lorenzo Salvadore 2019-08-15 09:21:28 UTC
I think this is not a real bug, but a misconfiguration with hardware acceleration, as comment #6 and comment #7 also suggest.

If you have a recent enough hardware, you should try to get hardware acceleration working properly. This page, although for arch linux, can help: https://wiki.archlinux.org/index.php/Hardware_video_acceleration

If, on the contrary, you have an old graphic card, such as myself, you can disable hardware acceleration by starting your browser with --disable-gpu. I can confirm that this fixes the problem with falkon 3.1.0 and qt5-webengine 5.12.2_3 on FreeBSD 12.0-RELEASE r350836 amd64.
Comment 9 Nuno Teixeira 2019-08-19 21:15:08 UTC
(In reply to Lorenzo Salvadore from comment #8)

Hello Lorenzo,

My hardware is from 2010.

I've tested youtube videos with very good framerate and quality with "--disable-gpu" option.

This option works.

I was thinking if this option should be included in pkg-message in all browsers that use webengine as backend, I was waiting for this information for months.

I've just tested Falkon, I will try to test other browsers with the same issue.

Thanks :)

Yours,

Nuno