diff options
author | wm4 <wm4@nowhere> | 2018-03-02 15:37:34 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-03-03 02:38:01 +0200 |
commit | 775b86212d4fbe1a25ce0f1552478e0fb9a7c25e (patch) | |
tree | 1ecfd53ab5896234a4f850f808e96d6068c61dbc /etc | |
parent | c917992359fdcae867b53ceab1427a1a9c6c8e78 (diff) |
video: add option to reduce latency by 1 or 2 frames
The playback start logic explicitly waits until the first frame has been
displayed. Usually this will introduce a wait of 1 vsync. For normal
playback this doesn't matter, but with respect to low latency needs,
this only leads to additional data getting queued up in the demuxer or
network buffers.
Another thing is that the timing logic decodes 1 frame ahead (= 1 frame
extra latency) to determine the exact duration of a frame.
To be fair, there doesn't really seem to be a hard reason why this is
needed. With the current code, enabling the option does lead to A/V
desync sometimes (if the demuxer FPS is too inaccurate), and also frame
drops at playback start in some situations. But this all seems to be
avoidable, if the timing logic were to be rewritten completely, which
should probably happen in the future. Thus the new option comes with the
warning that it can be removed any time. This is also why the option has
"hack" in the name.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/builtin.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/builtin.conf b/etc/builtin.conf index 79a5414a35..65b8f9e1f0 100644 --- a/etc/builtin.conf +++ b/etc/builtin.conf @@ -52,6 +52,7 @@ demuxer-lavf-probe-info=nostreams # avoid probing unless absolutely needed demuxer-lavf-analyzeduration=0.1 # if it probes, reduce it video-sync=audio # DS currently requires reading ahead a frame interpolation=no # requires reference frames (more buffering) +video-latency-hacks=yes # typically 1 or 2 video frame less latency # Compatibility alias (deprecated) [opengl-hq] |