mpv/common
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
..
av_common.c Factor out setting AVCodecContext extradata 2014-01-11 01:25:49 +01:00
av_common.h Factor out setting AVCodecContext extradata 2014-01-11 01:25:49 +01:00
av_log.c av_log: add tons of warnings against mismatched ffmpeg/libav libraries 2014-02-10 23:28:10 +01:00
av_log.h
av_opts.c
av_opts.h
codecs.c msg: rename mp_msg_log -> mp_msg 2013-12-21 22:13:04 +01:00
codecs.h
common.c common: drop mp_append_utf8_buffer() 2013-12-30 22:49:51 +01:00
common.h common: add some helper macros 2014-03-07 12:47:07 +01:00
cpudetect.c
cpudetect.h
encode.h encode_lavc: copy metadata to output file 2014-03-30 20:04:20 +02:00
encode_lavc.c New option --no-ometadata to opt out of including metadata when encoding. 2014-04-14 20:33:35 +02:00
encode_lavc.h encode_lavc: copy metadata to output file 2014-03-30 20:04:20 +02:00
global.h
msg.c player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
msg.h player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
msg_control.h player: add a --dump-stats option 2014-04-17 21:47:00 +02:00
playlist.c player: remove ASX, SMIL and NSC playlist parsers 2014-04-13 15:40:05 +02:00
playlist.h player: remove ASX, SMIL and NSC playlist parsers 2014-04-13 15:40:05 +02:00
tags.c mp_tags: move generic mp_tags stuff into its own .c/.h files in common/ 2014-04-13 18:03:01 +02:00
tags.h mp_tags: move generic mp_tags stuff into its own .c/.h files in common/ 2014-04-13 18:03:01 +02:00
version.c Don't include version.h from make options.c 2013-12-22 14:35:45 +01:00