DOCS/man/options: mention the impact of --hwdec-codecs on startup time

Probing for hwdec can be very slow: on my setup (Nvidia GPU without
VP9 hwdec capability), this causes 2x hot cache startup time compared
to explicitly disabling VP9 in this list (500 ms -> 1 000 ms).

Also remove --vo=vdpau reference.
This commit is contained in:
nanahi 2024-04-03 20:42:07 -04:00 committed by sfan5
parent b1ee92ad4a
commit 48ce438fae
1 changed files with 8 additions and 1 deletions

View File

@ -1730,9 +1730,16 @@ Video
This is usually only needed with broken GPUs, where a codec is reported
as supported, but decoding causes more problems than it solves.
.. note::
On some broken drivers (e.g. NVIDIA on Linux), probing for codecs which
the GPU does not support can unnecessarily slow down video playback
initialization. To alleviate this, explicitly specify a list which
only includes the codecs supported on the setup.
.. admonition:: Example
``mpv --hwdec=vdpau --vo=vdpau --hwdec-codecs=h264,mpeg2video``
``mpv --hwdec=vdpau --hwdec-codecs=h264,mpeg2video``
Enable vdpau decoding for h264 and mpeg2 only.
``--vd-lavc-check-hw-profile=<yes|no>``