1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00
mpv/video
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
..
decode player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
filter vf_vapoursynth: handle destruction more gracefully 2014-04-14 20:51:27 +02:00
out wayland: unset input regions for osd 2014-04-16 16:38:54 +02:00
csputils.c csputils: provide string descriptions of chroma locations 2014-02-16 03:51:02 +01:00
csputils.h csputils: provide string descriptions of chroma locations 2014-02-16 03:51:02 +01:00
fmt-conversion.c video: fix FFmpeg or Libav being a special snowflake 2014-03-16 16:23:12 +01:00
fmt-conversion.h
hwdec.h
image_writer.c image_writer: use new AVFrame API 2014-03-16 13:19:29 +01:00
image_writer.h
img_format.c video: change image format names, prefer mostly FFmpeg names 2014-04-14 20:51:27 +02:00
img_format.h video: change image format names, prefer mostly FFmpeg names 2014-04-14 20:51:27 +02:00
img_fourcc.h
memcpy_pic.h
mp_image_pool.c mp_image_pool: add features needed for use with hwaccel 2014-03-17 18:21:29 +01:00
mp_image_pool.h mp_image_pool: add features needed for use with hwaccel 2014-03-17 18:21:29 +01:00
mp_image.c video: remove use of deprecated AVFrame fields on Libav 2014-04-15 19:55:26 +02:00
mp_image.h video: change image format from unsigned int to int in some places 2014-03-17 18:19:57 +01:00
sws_utils.c sws_utils: remove custom GBRP conversion 2014-04-10 00:07:25 +02:00
sws_utils.h
vaapi.c vaapi: solve potential problem with ambiguous image formats 2014-03-17 18:23:24 +01:00
vaapi.h vaapi: make struct va_surface private 2014-03-17 18:22:35 +01:00
vdpau_functions.inc
vdpau.c vdpau: remove pointer indirection for a field 2014-03-19 19:57:08 +01:00
vdpau.h vdpau: remove pointer indirection for a field 2014-03-19 19:57:08 +01:00
vfcap.h