1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 21:06:00 +00:00
mpv/options
wm4 031555fbe6 player: add display sync mode
If this mode is enabled, the player tries to strictly synchronize video
to display refresh. It will adjust playback speed to match the display,
so if you play 23.976 fps video on a 24 Hz screen, playback speed is
increased by approximately 1/1000. Audio wll be resampled to keep up
with playback.

This is different from the default sync mode, which will sync video to
audio, with the consequence that video might skip or repeat a frame once
in a while to make video keep up with audio.

This is still unpolished. There are some major problems as well; in
particular, mkv VFR files won't work well. The reason is that Matroska
is terrible and rounds timestamps to milliseconds. This makes it rather
hard to guess the framerate of a section of video that is playing. We
could probably fix this by just accepting jittery timestamps (instead
of explicitly disabling the sync code in this case), but I'm not ready
to accept such a solution yet.

Another issue is that we are extremely reliant on OS video and audio
APIs working in an expected manner, which of course is not too often
the case. Consequently, the new sync mode is a bit fragile.
2015-08-10 18:48:45 +02:00
..
m_config.c command: add property indicating per-file options 2015-07-23 22:59:04 +02:00
m_config.h command: add property indicating per-file options 2015-07-23 22:59:04 +02:00
m_option.c options: fix conversion of flags to strings 2015-07-01 23:05:11 +02:00
m_option.h Update license headers 2015-04-13 12:10:01 +02:00
m_property.c command: remove old property deprecation warning mechanism 2015-05-22 20:08:04 +02:00
m_property.h Various spelling fixes 2015-06-18 19:36:58 +02:00
options.c player: add display sync mode 2015-08-10 18:48:45 +02:00
options.h player: add display sync mode 2015-08-10 18:48:45 +02:00
parse_commandline.c options: remove unneeded hack from command line parser 2015-04-23 21:08:19 +02:00
parse_commandline.h Update license headers 2015-04-13 12:10:01 +02:00
parse_configfile.c options: clarify quoting for option values starting with % 2015-04-17 16:06:43 +02:00
parse_configfile.h Update license headers 2015-04-13 12:10:01 +02:00
path.c path: improve verbose logging 2015-05-09 16:48:08 +02:00
path.h player: make resuming playlists less noisy in verbose mode 2015-05-09 16:48:05 +02:00