mpvnet-player / mpv.net

🎞 mpv.net is a media player for Windows with a modern GUI.
GNU General Public License v2.0
3.56k stars 164 forks source link

MPV detected by Geforce Experience #220

Open tizio04 opened 3 years ago

tizio04 commented 3 years ago

Describe the bug When MPV goes to fullscreen, if Shadowplay/Geforce Experience is enabled, is getting detected as game (?), so fps counter and icons for recording are shown above the video.

To Reproduce Steps to reproduce the behavior: Game overlay needs to be enabled in Geforce Experience settings; if so, going to fullscreen triggers the Nvidia overlay, with the message of activation of said overlay, and eventually fps counter and icons. In my case, I only enabled the fps conter, which remains even after leaving fullscreen. I even tried disabling hw acceleration, but this still happens.

Expected behavior Geforce overlay shouldn't trigger.

phiharri commented 3 years ago

I also encounter this issue regardless of mpv.net being fullscreen or not.

As a workaround you can change the driver settings to disable Shadowplay per application with a tool such as "NVIDIA Profile Inspector", creating a new app profile matching the mpv.net executable and setting variable 0x809D5F60 (found near the bottom of the list) to 0x10000000. Disclaimer that those necessary profile variables don't seem to be publicly documented. This works for me to disable the NVIDIA overlays in mpv.net but has to be reapplied when the graphics driver is upgraded. NVIDIA Profile Inspector has handy export/import functions to make that trivial.

I tried to figure out what a dev can do to influence the enabling of NVIDIA overlay features in their app but couldn't find anything concrete to suggest.