0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/options
wm4 9dba2a52db player: add a --dump-stats option
This collects statistics and other things. The option dumps raw data
into a file. A script to visualize this data is included too.

Litter some of the player code with calls that generate these
statistics.

In general, this will be helpful to debug timing dependent issues, such
as A/V sync problems. Normally, one could argue that this is the task of
a real profiler, but then we'd have a hard time to include extra
information like audio/video PTS differences. We could also just
hardcode all statistics collection and processing in the player code,
but then we'd end up with something like mplayer's status line, which
was cluttered and required a centralized approach (i.e. getting the data
to the status line; so it was all in mplayer.c). Some players can
visualize such statistics on OSD, but that sounds even more complicated.
So the approach added with this commit sounds sensible.

The stats-conv.py script is rather primitive at the moment and its
output is semi-ugly. It uses matplotlib, so it could probably be
extended to do a lot, so it's not a dead-end.
2014-04-17 21:47:00 +02:00
..
m_config.c options: don't sort sub-option help output 2014-04-12 11:38:00 +02:00
m_config.h command: make options property return the list of all options 2014-02-24 22:50:24 +01:00
m_option.c options: don't allow --no-foo=yes 2014-04-14 20:51:27 +02:00
m_option.h options: allow changing options at runtime 2014-02-25 23:59:27 +01:00
m_property.c command: remove extended information from --list-properties 2014-04-11 01:27:57 +02:00
m_property.h command: add helper function to split property paths 2014-03-30 13:41:03 +02:00
options.c player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
options.h player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
parse_commandline.c player: remove ASX, SMIL and NSC playlist parsers 2014-04-13 15:40:05 +02:00
parse_commandline.h msg: remove global state 2013-12-21 23:11:12 +01:00
parse_configfile.c options: some more mp_msg conversions 2013-12-21 21:43:16 +01:00
parse_configfile.h Move options/config related files from mpvcore/ to options/ 2013-12-17 02:07:57 +01:00
path.c config: fix --config-dir logic for global config files 2014-02-28 21:32:00 +01:00
path.h path: add function to split URL into prefix and path 2013-12-22 23:25:10 +01:00