dvlden / ultrawideo-v2

Upscale or stretch any video on the web, to make it look great on UltraWide screens.
MIT License
135 stars 19 forks source link

Not working on Windows with dedicated GPU #46

Closed AnsgarTOdinson closed 3 years ago

AnsgarTOdinson commented 3 years ago

Describe the bug

Upscale has stopped functioning at all. What's more, stretch does work but once stretched the image stays stretched no matter what other modes I cycle through. This persists until the extension is set to normal, then closed and re opened.

Reproduction steps

Cycle through the modes while watching a full screen video

Expected behavior

I would expect upscale to crop and zoom the video as it once did, stretch to work as it is now and when switching back to normal, the video to return to normal without having to exit the browser.

Environment

dvlden commented 3 years ago

Can some Windows + Chrome users confirm this? I just checked on YouTube and it works as expected.

Can you also tell me is this some platform specific issue @AnsgarTOdinson ?

brusli009 commented 3 years ago

Got the same bug and it started happeing today

dvlden commented 3 years ago

@brusli009 Please tell me your OS, Browser and which Platform specifically?

Tested again today, no issues on my end:

Environment

dvlden commented 3 years ago

Downloading Windows 10 to run on Parallels Desktop.

brusli009 commented 3 years ago

I got it on Win 10 buil 18363 with chrome on v88.0.4324.104 on youtube and netflix

jcracken commented 3 years ago

I can confirm similar behavior on Win10 20H2 using Edge 88.0.705.50 on YouTube. However, I only have just installed this extension--another extension I was using, UltraWide Video, recently prompted a behavior of stretching the video when set to crop mode on YouTube. It does not appear to be in the Chrome Store anymore, so I installed this extension to replace it. There may be a common issue between the two extensions or it may be a coincidence.

SplayedAsterisk commented 3 years ago

Confirming similar behavior starting today with windows 10 build 19041.746 and chrome version 88.0.4324.104. upscale now seems to have the same effect as stretch. used on a 21:9 video source (prime video and disney+) it gives me a distorted image that hits the sides of the screen but does not reach the top or bottom. i can cycle through all the modes and get back to normal while in full screen, but where upscale used to fill the monitor with those same sources, now it only stretches them.

AnsgarTOdinson commented 3 years ago

Prime video and Disney+ for me as well.

Though I just tested a moment ago and the bug is gone. I did update my video drivers today so perhaps that has something to do with it?

dvlden commented 3 years ago

Thank you all for reporting this problem and for your involvement to help. I installed Parallels Desktop and Windows 10 yesterday and been testing the extension on it.

I can only confirm the issue #43, which affects all Windows users. But unfortunately, I'm unable to reproduce this problem where any of the modes do not behave as they should.

I'll try to improve the keystrokes issue and will keep testing the Stretch/Upscale on various platforms.

@AnsgarTOdinson I don't know if Chrome and Graphic card could have something in common to make this issue, but let me know if you experience this problem again?

jcracken commented 3 years ago

Hi,

I did some searching around and someone pointed out that disabling hardware acceleration in Chrome settings fixed the issue. So it may be hardware related.

I'm using an RTX 2070 as my graphics card.

Rohin Galhotra

On Wed, Jan 27, 2021 at 8:55 AM Nenad Novaković notifications@github.com wrote:

Thank you all for reporting this problem and for your involvement to help. I installed Parallels Desktop and Windows 10 yesterday and been testing the extension on it.

I can only confirm the issue #43 https://github.com/dvlden/ultrawideo/issues/43, which affects all Windows users. But unfortunately, I'm unable to reproduce this problem where any of the modes do not behave as they should.

I'll try to improve the keystrokes issue and will keep testing the Stretch/Upscale on various platforms.

@AnsgarTOdinson https://github.com/AnsgarTOdinson I don't know if Chrome and Graphic card could have something in common to make this issue, but let me know if you experience this problem again?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/dvlden/ultrawideo/issues/46#issuecomment-768382753, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARYPTD5NGGOOLQHLZ433X3S4AZNRANCNFSM4WOPFBZA .

dvlden commented 3 years ago

Ouch. I am running Intel graphics, so... xD I'll ask some friends around to allow me to test it via Screen Sharing software, just to make sure it's hardware related issue.

Thanks a lot for this research, it is very helpful! @jcracken

Smart123s commented 3 years ago

After some testing I've got the following results:

NOT Working: OS: Windows 10 Browser: Chrome GPU: Nvidia GTX 1650 Super

Working: OS: Windows 10 Browser: Chrome GPU: Intel HD Graphics 4600

Working: OS: Ubuntu 20.10 Browser: Chrome GPU: Nvidia GTX 1650 Super

Working: OS: Windows 10 Browser: Firefox (Nightly) GPU: Nvidia GTX 1650 Super

So I don't think that this issue is caused by a bug in the extension.

dvlden commented 3 years ago

So the conclusion from @Smart123s and @jcracken research is that it has to be a Chrome release issue, affected by the graphic card?

brusli009 commented 3 years ago

It is now fixed on my pc after disabling hardware acceleration in chrome

SplayedAsterisk commented 3 years ago

ok, thanks everyone! also fixed for me after disabling hardware acceleration in chrome. i'm running a 2070 max-q and it seems like this may have started right after my most recent nvidia driver update.

tamius-han commented 3 years ago

There's a sorta better solution than the "disable hardware acceleration" workaround, because disabling hardware acceleration is — depending on your hardware — a bad solution (as it may result in frame dropping).

If you're using transform: scale() CSS property, this is trivial-ish. If you're using object-fit, you should be able to throw a transform: scale(0.995) or something on the video tag.

Standard disclaimers:

dvlden commented 3 years ago

Can anyone tell me if this works? Instead of disabling hardware acceleration, use View > Developer > Developer Tools and select the video element while in full-screen and give it a transform property.

Instead of suggested option by @tamius-han ( THANKS <3 ), try to use tiny upscale, instead of downscale.

.uwv-active .uwv-video {
  transform: scale(1.001);
}

If anyone is still watching this issue, and is using hardware acceleration (disabled) as a fix, please enable hardware acceleration and add this property for testing. I wouldn't want to downscale even for 1 px.

AnsgarTOdinson commented 3 years ago

Thanks, Ill give that a try as it has gone back to doing the same thing on my machine.

markey commented 3 years ago

@dvlden Could you provide this is as a patch to the source code? Just pointing me to the right file and line would suffice too. (I failed at monkey-patching it with Dev Tools).

PS: I'd like to add that with Edge (Dev Channel) on a 34" Ultrawide Monitor, only Youtube is affected by the issue. Netflix and Prime working fine.

dvlden commented 3 years ago

Hello @markey ,

I made a new branch with this patch that might possibly have an effect on this issue. Hopefully positive. You can clone/download the branch and load the extension through developer mode.

If you are interested in this specific file and where would you put this line of CSS, you can find it here: gc-patch inject.scss

Make sure, if you plan to run this as developer - build the extension first and load everything unpacked from dist directory: npm i & npm run build


Are you trying to tell me that for you it is only affected on Edge and specifically YouTube, or everywhere on other browsers, but only YouTube on the Edge?

jcracken commented 3 years ago

Hey, I wanted to step in and say I no longer have this issue as of at least today (I tried a few days ago and the problem was still there, and now it's not).

I did install a new Nvidia driver recently, so it may have been fixed on their end.

Windows 10 Edge 89.0.774.54 Nvidia Driver 461.92

Edit: I updated to Edge 89.0.774.57 and the problem came back.

Smart123s commented 3 years ago

I've also tested it on https://archive.org and it does the exact same thing that it does on YouTube: upscale mode starches the video. Updating my driver to 461.92 also didn't solve the problem.

Video: https://archive.org/details/SF143 Brave | 1.21.77 Chromium: 89.0.4389.90

SendNukez commented 3 years ago

I got the same Issue,

OS: Win 10 (10.0.19042 Build 19042) Browser: Chrome 89.0.4389.90 GPU: RTX 2070 (Driver 461.92)

I've tried the new Branch (gc-patch) but no Luck, I've got the same Problem with my old UW Extension UltraWide Video where it also only stretches and doesn't crop properly. I've tested on YT and the archive.org Video @Smart123s mentioned.

Also tested on Edge 89.0.774.63 and Edge Beta 90.0.818.14, same Issue.

Edit: It seems the Extension I used before got removed from the Webstore.

Edit 2: I can also confirm that disabling Hardware Acceleration does work, but as @tamius-han mentioned, this may result in dropped Frames.

dvlden commented 3 years ago

Thank you all for reporting in again. It's unfortunate that patch is not working as I expected it to work. @SendNukez

Seems like the only solution is:

As this started to become an issue recently, I'll just assume that it is either:

There's a good comment by @Smart123s left early on: #issuecomment-768489842

Seems like there's nothing I can do to solve this problem, but wait for one of the possible issues above to solve theirs.

Mackeriah commented 3 years ago

Hello.

Just wanted to post to say that disabling hardware acceleration on Chrome browser (Brave) resolved this immediately for me also.

If further details of my system/browser would be useful, just let me know.

Cheers Owen

tamius-han commented 3 years ago

Another solution, as per Chromium bug report comments:

Run Chrome with --disable-direct-composition-video-overlays.

That way you probably still keep most of the benefits of hardware acceleration.

dvlden commented 3 years ago

@tamius-han Glad that you reported that to them. Thank you for sharing this with everyone!

Mackeriah commented 3 years ago

Thanks so much for this @tamius-han. Fixed my issue too (using Brave browser)

knlp commented 3 years ago

Another solution, as per Chromium bug report comments:

Run Chrome with --disable-direct-composition-video-overlays.

That way you probably still keep most of the benefits of hardware acceleration.

Awesome! Works like a charm in Opera.

MrJeems commented 3 years ago

Issue with Chrome. Extension did nothing until I disabled Hardware Acceleration. Now that it's disabled: Normal mode does nothing; still has letterboxes at top and bottom. Upscale crops the letterbox and seemingly another letterbox worth of valid video from top and bottom. Stretch definitely stretches and maintains horizontal letterboxes.

Win10.0.19042 Build 19042 Chrome 91.0.4472.114 (64-bit) RTX2080 Super. Odyssey G9 @5120x1440

markey commented 3 years ago

@MrJeems

Issue with Chrome. Extension did nothing until I disabled Hardware Acceleration. Now that it's disabled: Normal mode does nothing; still has letterboxes at top and bottom. Upscale crops the letterbox and seemingly another letterbox worth of valid video from top and bottom. Stretch definitely stretches and maintains horizontal letterboxes.

Did you try the workaround mentioned above? It works on Edge right now for me:

Run Chrome with --disable-direct-composition-video-overlays

MrJeems commented 3 years ago

@MrJeems Did you try the workaround mentioned above? It works on Edge right now for me:

Run Chrome with --disable-direct-composition-video-overlays

Just tried it with Chrome and it still performs the same way. Nothing on Normal, crops content as well with Upscale, and ultrawide distortion when stretched. I have a feeling it's something to do with the Ultra-wide aspect ratio of my monitor.

dvlden commented 3 years ago

@MrJeems Please be aware that:

If your Ultra Wide screen is too wide, this extension won't be good fit for you. I am using 32" UW monitor and I watch everything on Upscale, except video tutorials that contain text/charts or some data like that.

dvlden commented 3 years ago

There's a special dedicated topic in discussion, that is now pinned. For all those that are looking for solution to this, instead of having to going through this massive thread.

Refer to: #62