brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.53k stars 2.27k forks source link

Blurry non-fullscreen YouTube video when "Hardware acceleration" on and bookmarks bar visible #29946

Open 70sh1 opened 1 year ago

70sh1 commented 1 year ago

Description

All non-fullscreen YouTube videos (among tested) are blurry while HW acceleration is on and bookmarks bar is visible (Ctrl+Shift+B).

Hiding bookmarks bar fixes the issue for some reason.

Steps to Reproduce

  1. Turn on "Use hardware acceleration when available"
  2. Make sure bookmark bar is visible
  3. Open non-shorts YT video in regular mode (not fullscreen)

Actual result:

Blurry non-fullscreen video.

Expected result:

Good non-fullscreen video clarity.

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Brave | 1.50.121 Chromium: 112.0.5615.138 (Official Build) (64-bit) -- | -- Revision | 2258f2fcaeb07bc95c992b7ca47f0b43ead9865c-refs/branch-heads/5615@{# 1282} OS | Windows 11 Version 22H2 (Build 22621.1555)

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

I learned from the issue #8042 that disabling HW acceleration helps.

ryanbr commented 1 year ago

Would test in Chrome to see if its applicable to Chromium in general. And if its still an issue with current Brave release.

Also which GPU are you using? (Also have you updated GPU drivers) @70sh1

70sh1 commented 1 year ago

My GPU is an RTX 3050 Laptop. My drivers are up to date. This bug is still present in the beta version 1.58.109, Chromium: 116.0.5845.163.

I found that this bug has a direct correlation to the actual scale of the video. For example, if you change the page zoom (from 100% to 90% or to 110%, for example), the bug also goes away. That's why I originally noticed it in the example of hiding the bookmarks bar, because that also slightly resized the video as I understand it.

I should also add that the bug is not just about the "blurriness" of the image, but also about some artifacts. These artifacts include a grid-like pattern on monochromatic dark backgrounds (gray, black) - see attached screenshot, and rare red dots on the edges of objects (this is the rarest artifact I've noticed). Some of these artifacts can occur simultaneously. 1

Also in favor of the theory about dependence on the specific scale of the video is the fact that the originally described way of reproducing the bug (expanding the bookmarks panel) works only when using an external monitor in my case. Using the built-in laptop screen (which in turn also changes the scale of the video) this way of reproducing the bug has exactly the opposite effect - hiding the bookmarks panel causes "blurriness" and artifacts, while opening it fixes the bug.

ryanbr commented 1 year ago

Would test in Chrome to see if its applicable to Chromium in general.

How about Chrome?