1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/player
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
..
lua lua: make it easier to integrate with foreign event loops 2014-04-12 20:41:12 +02:00
timeline player: remove ASX, SMIL and NSC playlist parsers 2014-04-13 15:40:05 +02:00
audio.c af: add replaygain_data field to af_stream and af_instance 2014-04-04 18:35:29 +02:00
client.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
client.h client API: add a way to notify clients of property changes 2014-04-06 03:22:49 +02:00
command.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
command.h client API: add a way to notify clients of property changes 2014-04-06 03:22:49 +02:00
configfiles.c build: simplify libavfilter configure checks 2014-03-16 13:19:29 +01:00
core.h client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
discnav.c player: rename dvdnav to discnav 2014-03-30 11:42:49 +09:00
loadfile.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
lua.c client API: remove mpv_event_pause_reason 2014-04-14 22:33:41 +02:00
lua.h lua: port to client API 2014-02-10 21:03:59 +01:00
main_fn.c build: add option to build a library 2014-02-10 21:25:22 +01:00
main.c player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
misc.c player: dvdnav: fix start time when entering and leaving menu 2014-03-30 07:31:02 +02:00
osd.c player: hack to fix --msgmodule --term-osd-bar 2014-04-13 13:03:31 +02:00
playloop.c player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
screenshot.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
screenshot.h
sub.c sub: uglify OSD code path with locking 2014-01-18 01:27:43 +01:00
video.c command: allow changing filters before video chain initialization 2014-03-30 19:59:26 +02:00