From 5f2b60a645238505228a8fda429a4e47a285eff0 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 30 Dec 2020 15:58:48 +0100 Subject: [PATCH] vd_lavc: add VP8 to the default allowed hwdec codec list It is supported at least on Intel, from gen8 to gen11, and still gives a pretty welcome reduction of CPU usage on my gen9. --- DOCS/man/options.rst | 2 +- video/decode/vd_lavc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index c92353a2a6..18dee24e35 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -1606,7 +1606,7 @@ Video You can get the list of allowed codecs with ``mpv --vd=help``. Remove the prefix, e.g. instead of ``lavc:h264`` use ``h264``. - By default, this is set to ``h264,vc1,hevc,vp9,av1``. Note that + By default, this is set to ``h264,vc1,hevc,vp8,vp9,av1``. Note that the hardware acceleration special codecs like ``h264_vdpau`` are not relevant anymore, and in fact have been removed from Libav in this form. diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index f965e00e5a..15eab18bf9 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -135,7 +135,7 @@ const struct m_sub_options vd_lavc_conf = { .framedrop = AVDISCARD_NONREF, .dr = 1, .hwdec_api = "no", - .hwdec_codecs = "h264,vc1,hevc,vp9,av1", + .hwdec_codecs = "h264,vc1,hevc,vp8,vp9,av1", // Maximum number of surfaces the player wants to buffer. This number // might require adjustment depending on whatever the player does; // for example, if vo_gpu increases the number of reference surfaces for