mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.32k stars 2.9k forks source link

FPS estimate when on secondary display is wrong, possibly based on the primary monitor? #11478

Open Myaanee opened 1 year ago

Myaanee commented 1 year ago

Important Information

Note: May be related to?: https://github.com/mpv-player/mpv/issues/11465

When having the mpv window on the secondary screen it estimates the fps based on the primary screen:

Screenshot

Provide following Information:

Reproduction steps

Open MPV via: >mpv --no-config -v -v --log-file=debug.txt --video-sync=display-resample --vo=gpu-next ytdl://https://www.youtube.com/watch?v=7ePaVk7TKGM

Move video from 180Hz main screen to another screen that is 60Hz.

Expected behavior

Estimate should be ~60Hz

Actual behavior

Estimate is 180Hz, taken from the wrong monitor.

Log file

https://0x0.st/s/31O7IqeOxpbLcRA8oNwyew/H-_u.txt

Sample files

I was using a youtube video as demo via ytdl inside mpv (See command up top): https://www.youtube.com/watch?v=7ePaVk7TKGM`

Myaanee commented 1 year ago

Can anyone confirm this?

escape0707 commented 1 year ago

I can confirm this in Linux (gnome wayland), too. Mpv will take my laptop screen's 60hz fps even if it starts directly on my external 120hz monitor. I'll have to move it out of my external monitor then move it back for it to correctly detect.

Dudemanguy commented 1 year ago

That's not supposed to happen, but from that description it sounds like a GNOME bug (sending erroneous surface entrance events on startup). It's not related to OP though which is windows and totally different.

escape0707 commented 1 year ago

That's not supposed to happen, but from that description it sounds like a GNOME bug (sending erroneous surface entrance events on startup). It's not related to OP though which is windows and totally different.

I'll check on KDE later, and see if I need to submit a new issue. Thanks for maintaining this beautiful project!

Myaanee commented 1 year ago

Anyone got any more info on this, it's quite annoying.