summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-03 14:03:02 +0100
committerwm4 <wm4@nowhere>2015-11-03 14:03:02 +0100
commit163c6ad862c1bffcec34eb09e03d09c133b15d92 (patch)
tree254dce347f7f2ebe5cb0cf2671ae2f3d67b5aaf0 /DOCS/man/options.rst
parent4058b418bf3618c5d9b01e08e31774ae115d2365 (diff)
downloadmpv-163c6ad862c1bffcec34eb09e03d09c133b15d92.tar.bz2
mpv-163c6ad862c1bffcec34eb09e03d09c133b15d92.tar.xz
vd_lavc: make hwdec fallback more tolerant
A hw decoder might fail to decode a frame for multiple reasons, and not always just because decoding is impossible. We can't generally distinguish these reasons well. Make it more tolerant by accepting failures of 3 frames, but not more. The threshold can be adjusted by the repurposed --vd-lavc-software-fallback option. (This behavior was suggested much earlier in some PR, but at the time the "proper" hwdec fallback was indistinguishable from decoding error. With the current situation, "proper" fallback is still instantious.)
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 94beae933a..4eb29eb4f7 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -823,9 +823,10 @@ Video
The result is most likely broken decoding, but may also help if the
detected or reported profiles are somehow incorrect.
-``--vd-lavc-software-fallback=<yes|no>``
+``--vd-lavc-software-fallback=<yes|no|N>``
Fallback to software decoding if the hardware-accelerated decoder fails
- (default: yes).
+ (default: 3). If this is a number, then fallback will be triggered if
+ N frames fail to decode in a row. 1 is equivalent to ``yes``.
``--vd-lavc-bitexact``
Only use bit-exact algorithms in all decoding steps (for codec testing).