Ashyni / mpv-scripts

dynamic-crop.lua script for mpv player/lib.
MIT License
81 stars 4 forks source link

dynamic-crop.lua script causes OSD to bug out in fullscreen #20

Closed geextahslex closed 10 months ago

geextahslex commented 10 months ago

Setup (please complete the following information):

Additional context MPV config: script="C:\Program Files\MPV\scr\dynamic-crop.lua" hwdec=no vo=gpu-next

Log file

output.txt

Describe the bug When you go fullscreen, the OSD bugs out, pulsates/flickers. OSD doesn't disappear after time, it displays all the time.

Expected behavior After fullscreen, OSD acts as usual, don't bug out, and disappear after 2 seconds.

Screenshots dfdf

Ashyni commented 10 months ago

Hello, can't reproduce and never had this issue.

The logs are incomplete, doesn't show dynamic crop loading, etc. Example:

[   0.012][d][dynamic_crop] Loading lua script C:\Users\xxxxx\mpv-scripts\dynamic-crop.lua...
[   0.015][d][dynamic_crop] reading options for dynamic_crop
...
[   0.266][i][dynamic_crop] File loaded.

But i see you're using DEL shortcut, which is used to toggle OSC visibility between Never, Auto and Always. May be it's your issue.

geextahslex commented 10 months ago

I don't know, I just put in cmd "mpv --log-file=output.txt" and thats it. "DEL shortcut"? This is the default setting. Do you have any suggestions what I can try out to fix this?

I am a noob, I use mpv since 4 days or so.

Ashyni commented 10 months ago

I don't know, I just put in cmd "mpv --log-file=output.txt" and thats it.

add in mpv.conf instead, to get the logs in any case. log-file=output.txt

What do you mean by "DEL shortcut"? Do you have any suggestions what I can try out to fix this?

The touch DEL from your keyboard, make sure the settings is never or auto.

I am a noob, I use mpv since 4 days or so.

It's ok, but i don't think the issue is related to the script.

geextahslex commented 10 months ago

Everything works, as expected, when I leave the script out. What else could cause the issue? I mean the script works, which is great, but it breaks the OSD.

Ashyni commented 10 months ago

Win 7/driver, mpv/ffmpeg bug fix in master or anything else.

geextahslex commented 10 months ago

Indeed this doesn't happen on Windows 11. Only on 7 ^^