-
Notifications
You must be signed in to change notification settings - Fork 29
Support showing mpv statistics and possibly key binding via scripts #29
Comments
Is there any runtime flags for showing mpv statistics? |
Afraid no. IINA uses MPV as a player core (engine) but dont use MPV's UI part. Key binding is completely about UI, keyboard events, etc. |
@CarterLi mpv statistics is enabled by key action The official IINA do support showing statistics when assigning a key to |
I dug a bit into the The script queries properties from mpv periodically via The reason that the frame timing page is empty, is IINA lacks some required properties. local function append_perfdata(s, dedicated_page)
local vo_p = mp.get_property_native("vo-passes")
print("vo_p = ", vo_p)
if not vo_p then
return
end
If IINA can provide the |
There are multiple issues here. Since the Lua stats script is now built into mpv, IINA probably should add the two key bindings that are active by default to the "mpv Default" key bindings. From mpv manual / STATS:
Not sure how IINA could support the dynamic activation of key bindings the stats script supports. Note that the mpv command to display a particular page is not "show-page-<number>" according to the mpv documentation:
By adding key bindings I was able to display pages 1 and 3. I expect page 2 is blank due to this issue iina#3281 On the
I looked through the mpv client API and didn't spot any discussion of statistics. Would have to dig deeply into mpv code to see if there is a way for IINA to supply these statistics to work. |
This is actually a bug in official IINA that not (fully) fixed I think. The official issue: iina#1053
The mpv-stats.lua script is not able to add key bindings to IINA, so the statistics feature in mpv is somewhat unusable. IINA official gives a workaround that add key bindings manually to switch pages. I don't think this is a perfect solution. Also, the page 2 of the statistics, frame timing, don't shown up even with a key binding. The frame timing page is very useful when debugging video filters or custom shader scripts.
What you want IINA to do:
What IINA does currently:
When switching to frame timing page, it shows no contents.
Why you think this should be added:
The frame timing page is very useful when debugging video filters or custom shader scripts.
Examples of other projects that have something similar:
The mpv official manual page: https://mpv.io/manual/master/#stats
The text was updated successfully, but these errors were encountered: