aboutsummaryrefslogtreecommitdiffhomepage
path: root/player/lua/stats.lua
Commit message (Collapse)AuthorAge
* stats: show file formatGravatar wm42018-10-01
| | | | Useful in particular with ytdl, where you never know what you get.
* stats: remove superfluous line breaksGravatar Julian2018-06-09
| | | | | Those accidentally slipped in with 9975835bdeec3f2b04b136ef40c70b02487bb0e6 due to bad copy & paste.
* stats: show sample format of audio trackGravatar sfan52018-05-17
|
* stats: print section titles independentlyGravatar Julian2018-03-25
| | | | | | | Previously, section titles (File/Video/Audio) were printed as suffix of a property that was assumed to always exist. However, with e.g. lavi-complex this is not the case, therfore, print them without being dependent on a property.
* stats: improve video/audio detectionGravatar Julian2018-03-25
| | | | | | | | | Switch from audio|video to audio|video-out-params properties as per recommendation in #5670. These properties are tables and include information explicitly queried later, so switch to using these tables and reduce the amount of queried properties. Fixes #5670
* stats: enhance cache statsGravatar Julian2017-12-26
| | | | | | Show total cache as well as demuxer cache separately. This adjusts the presented values to be consistent with status line and OSC modifications made in https://github.com/mpv-player/mpv/pull/5250
* stats: add file sizeGravatar Julian2017-10-13
| | | | also one minor cosmetic change: comment the "coming soon" dummy page
* stats: change the way toggling/oneshot works internallyGravatar Julian2017-10-09
| | | | | | | | | | | | | | | | Previously multiple timers were used to realize oneshot, toggling (redrawing) and page keybindings. The oneshot case in particular also relied on mp.osd_message to display text only for a given duration. This was changed to only use one timer in total now. Because now each case has a defined "start" and "end" point (including oneshot) mp.set_osd_ass() can be used to print stats as well. This is currently optional and has to be activated using the config option persistent_overlay=true. One shortcoming: oneshot and toggling are mutual exclusive right now. Previously you could enter toggling while oneshot stats were shown, this is not possible anymore to reduce the number of cases to be considered. This can be added later on if desired.
* stats: stop coloring timing valuesGravatar Julian2017-10-09
| | | | | | It used a bad heuristic that got even worse/less reliable with recent changes in mpv. In fact, it's not reliable at all. Watch out for dropped frames instead. That's a useful indicator.
* stats: add current and total chapter numberGravatar Julian2017-10-09
| | | | | Fixes #44 (well, partially, I'm still not sure about the time)
* stats: add audio and video filtersGravatar Jan Janssen2017-10-09
|
* stats: reorganize the framedrop countersGravatar Niklas Haas2017-10-09
| | | | | Clarified the relationship between `Dropped` and `VO`, and also merged the DS-exclusive stats into the DS line.
* stats: revert DR indicator as it's unnecessaryGravatar Julian2017-10-09
| | | | | It's apparently already stated as part of the upload pass name. This reverts commit ec837f64c29a1b825e28b65edc34059b6c1cad40.
* stats: reduce default font size to 8Gravatar Julian2017-10-09
|
* stats: visually indicate direct renderingGravatar Julian2017-10-09
|
* stats: change font weight of % sign as wellGravatar Julian2017-10-09
| | | | Due to popular demand
* stats: fix indentation/newline of frame timing pageGravatar Julian2017-10-09
| | | | There was a superfluous newline and some indentation
* stats: show % of a pass on frame timing pageGravatar Julian2017-10-09
|
* stats: always print perfdata totalGravatar Julian2017-10-09
| | | | There's no point in disabling it anyway
* stats: make add_header() append at current positionGravatar Julian2017-10-09
|
* stats: print perfdata total by defaultGravatar Julian2017-10-09
| | | | There is enough space now
* stats: mark dummy as suchGravatar Julian2017-10-09
|
* stats: correctly re-eval ASS tag usageGravatar Julian2017-10-09
| | | | Fixes #42
* stats: make page keybinding repeatableGravatar Julian2017-10-09
| | | | There's no reason it's not.
* stats: remove table in tableGravatar Julian2017-10-09
| | | | | | Almost cosmetic change. This tables-in-table was done back when we actually processed strings but that's long ago now and no longer needed nor useful.
* stats: resilience against accidential timer removalGravatar Julian2017-10-09
| | | | | | | Previously I could trigger a bug with intense button mashing, however, was unable to reproduce it and therefore debug it. This change now seems to be resilient against button mashing, let's hope it really is.
* stats: allow keybindings for specific pageGravatar Julian2017-10-09
| | | | | | A keybinding in input.conf like: e script-binding stats/display-page-2 can be used to directly show the respective page (2, in this case)
* stats: support for multiple "pages" of statsGravatar Julian2017-10-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Please note that the latest version of this script needs a very recent version of mpv (from yesterday, to be precise, see the readme). For older versions, please go to "releases". HOW IT WORKS: While the stats are visible (i.e. text is printed to the OSD) a subsequent click on a numeric key (1, 2, ...) will display the corresponding "page". This works no matter if the stats are toggled or just shown as a single invocation. In case of a single invocation, the newly displayed page will be shown for the full duration again. The selected page will be remembered (not persistantly though). So far, only 3 pages are available. 1: the default page, stats as they used to be 2: extensive VO performance stats (to be redesigned/changed soon) 3: dummy In the future, many more pages are possible. Implementation is likely to change again (functionality will stay the same). A new timer had to be introduced to remove the forced keybindings in the oneshot case. The toggle case can remove them without a timer. Ensuring that each mode won't remove timers of the other mode didn't really turn out neat. Therefore, I intend to change this again, maybe by merging the oneshot case into the toggle case.
* stats: remove check for lua timer functionGravatar Julian2017-10-09
| | | | | We now require a modern mpv version. `property_aliases` is kept for future use.
* stats: rescale graphs to make the average align with the center, if possibleGravatar Niklas Haas2017-10-09
| | | | | For vsync measurements this is not currently done because they don't track their average
* stats: add support for `vo-passes`, which replaces `vo-performance`Gravatar Niklas Haas2017-10-09
| | | | | | | | | | | Due to the large amount of per-pass data, the function takes a parameter indicating whether or not to print a simplified view instead. The overall intent is to print the simplified view for now, but supposed printing the full view on a dedicated "tab" (or extra view type), and as such, `o.print_perfdata_passes` will go away again. I've only introduced it for now so users can play around with this functionality if they want to, until Argon- gets around to implementing stats "tabs".
* stats: update HDR peak for upstream changesGravatar Niklas Haas2017-10-09
| | | | | This no longer reports cd/m² but now reports a relative peak as a multiple of the SDR reference brightness.
* stats: add support for deprecated propertiesGravatar Julian2017-10-09
| | | | | | | | | | | | | | Previously, we used a property and when it was unavailable we assumed it doesn't exist before assuming it really is just unavailable. This lead to unnecessarily falling back to deprecated properties which made mpv print deprecation warnings. Now we can really check if a property is not known to mpv. The alternative would've been to check the error part of mp.get_property and perform string comparisons on the returned error message. Not sure if supporting old mpv versions is actually worth it though. Fixes #37 #36
* stats: comment to remind me about deprecated propertiesGravatar Julian2017-10-09
|
* stats: add new versions of decoder and VO dropped frame countsGravatar Ricardo Constantino2017-10-09
|
* stats: put vsync ratio and jitter on the same lineGravatar Julian2017-10-09
| | | | Free some vertical space. Hope this doesn't hurt visibility.
* stats: declare function as localGravatar Julian2017-10-09
| | | | Apparently forgot this one
* stats: use container-fps together with fps (as fallback)Gravatar Julian2017-10-09
| | | | | This was already done for the actual stats a few months ago. Now it is also used by the perfdata coloring code.
* stats: rename option timing_total to print_perfdata_totalGravatar Julian2017-10-09
| | | | | Should make its purpose more clear. Also add a comment to further explain its use.
* stats: add vsync-ratio and vsync-jitterGravatar Julian2017-10-09
| | | | | | | | | | | | | | | | | | | Both come with graphs enabled by default. They can be disabled using the options plot_vsync_ratio and plot_vsync_jitter (see the readme regarding customization). In case both graphs are deactivated the ratio and jitter properties will be printed on the same line to save some space. One more user-visible/noticeable change: the maximum used to scale the values for each graph is no longer calculated each time the stats are shown but instead when collecting the data. This means the maximum can actually be higher than all values currently present in a graph's data buffer. This makes it easier to judge a graph's values, especially since as we have no axis labels. To prevent high values staying max forever graph data buffers are cleared when toggling (can be disabled). It was never useful to keep old data and simply append newer data (with a time skip) anyway.
* stats: add some documentation for generate_graph()Gravatar Julian2017-10-09
|
* stats: access less variables outside function's stateGravatar Julian2017-10-09
|
* stats: add new container-fps that deprecates fpsGravatar Ricardo Constantino (:RiCON)2017-10-09
|
* stats: remove hwdec-active propertyGravatar Ricardo Constantino (:RiCON)2017-10-09
|
* stats: fix bug introduced in earlier commitGravatar Julian2017-10-09
| | | | | Commit 76387aba26574d0d96af688cf11d10bd165171f7 broke the script in case of timing_total=true.
* stats: fix comment typoGravatar Julian2017-10-09
|
* stats: disable coloring peak performance dataGravatar Julian2017-10-09
| | | | | The peak value is probably not very well suited to draw many conclusions from it.
* stats: change coloring of performance dataGravatar Julian2017-10-09
| | | | | Previously it used display-fps to determine coloration even when display-sync was not even used.
* stats: save ASS sequences locallyGravatar Julian2017-10-09
| | | | | Instead of querying them constantly. Also add a tiny bit of documentation to some variables.
* stats: only print graphs when ASS tags are goodGravatar Julian2017-10-09
|