blogdron / EPGTV

Show EPG TV information in mpv player from IPTV M3U playlist
MIT License
2 stars 0 forks source link

Bad text visibility #6

Open bt4ibwem8 opened 1 month ago

bt4ibwem8 commented 1 month ago

On first screenshot is shown how it should looks like, on the second screenshot it is incorrectly. This incorrect one is shown every second press Y button. I am using modernx osc lua script. I tried today uosc instead of modernx and your script does it differently. The incorrect display will appear every third time instead of every second time. So my assumption is this behaviour is related to osc script used in mpv.

image

image

blogdron commented 1 month ago

This is some kind of floating problem, I couldn't reproduce it on my machine. In a virtual machine I was able to reproduce it, in one version of MPV it was like that, in another it is not. I tried to fix it by reassigning the drawing order and it helped in a virtual machine. If it appeared again... I don't know yet how to even reproduce it on my machine. When I have time I will try to do something about it. Check if the script is updated to the latest version

The problem is caused by the fact that the shading background is sometimes rendered before the text for some reason. I don't quite understand why this is so. As a temporary solution, you can remove this background completely.

background=false,
bt4ibwem8 commented 1 month ago

I installed mpv via Scoop. It uses mpv builds by shinchiro. I will try to install mpv (from flathub) on my Debian laptop to check if i get this issue also on Linux. This issue is last one major issue. I have some suggestions for further improvements but they are cosmetic or minor issues. Generally you made good job... background=false is not good solution for me because text is poorly visible when video/picture is bright.

blogdron commented 1 month ago

If you can still reproduce the problem (I can't) then could you try changing the settings to these

   update_visual_progress = false,

or

   update_progress_duration = 9999,

will the problem be reproduced?

bt4ibwem8 commented 1 month ago

I pasted it inside local config in conf.lua but did not help. Btw did you try your script in flatpak version of mpv? I cannot get it work, nothing happens after pressing Y or U

blogdron commented 1 month ago

I pasted it inside local config in conf.lua but did not help.

Ok, so it's not because of the redraw update. And this option can be excluded. Оhhh, I guess I need to ask the mpv developers, either I'm doing something wrong, or this is some feature of mpv that only appears on Windows. Maybe later.

Btw did you try your script in flatpak version of mpv? I cannot get it work, nothing happens after pressing Y or U

No, I don't use flatpak, snap and similar things, if there are any problems when working with these sandboxes, then this is the problem of these sandboxes. These are systems with access and rights restrictions; if something doesn’t work in them, then it means that you need to configure them, and not the programs running in them. That's the whole point =)

bt4ibwem8 commented 1 month ago

ok, i will try to figure out why it does not run on my linux. Because other mpv scripts loaded just fine... I like flatpak because there is usually the newest version of the app, while in Debian repo there are old versions of apps very often.

bt4ibwem8 commented 1 month ago

edit: I made your script work fine in Linux. I did not reproduce this issue there, so it happens only in Windows...