diff options
author | wm4 <wm4@nowhere> | 2015-08-10 18:43:25 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-10 18:48:45 +0200 |
commit | 031555fbe6cfdf6d0db3b0a5a316dd55efd75846 (patch) | |
tree | 478cf20c66af2f1a465dd9657b6131afa548a877 /DOCS/man/input.rst | |
parent | fedaad8250b9c9e262da3cda2114ccf5b62703a3 (diff) | |
download | mpv-031555fbe6cfdf6d0db3b0a5a316dd55efd75846.tar.bz2 mpv-031555fbe6cfdf6d0db3b0a5a316dd55efd75846.tar.xz |
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.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r-- | DOCS/man/input.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst index 10be785ec5..9910d6b9c0 100644 --- a/DOCS/man/input.rst +++ b/DOCS/man/input.rst @@ -830,6 +830,12 @@ Property list Factor multiplied with ``speed`` at which the player attempts to play the file. Usually it's exactly 1. (Display sync mode will make this useful.) + OSD formatting will display it in the form of ``+1.23456%``, with the number + being ``(raw - 1) * 100`` for the given raw property value. + +``display-sync-active`` + Return whether ``--video-sync=display`` is actually active. + ``filename`` Currently played file, with path stripped. If this is an URL, try to undo percent encoding as well. (The result is not necessarily correct, but |