Skip to content

Commit 20fcd01

Browse files
committed
vo: officially deprecate vo_vaapi
Using vo_vaapi has already been heavily discouraged for years since years since 5c313f1. More importantly, it's just fundamentally broken on most hardware, serves no real purpose, and well we shouldn't just ship broken stuff. vo_vaapi largely only ever worked correctly on some intel hardware. The VO relies on certain API calls that other vendors never implemented so things like the OSD and subtitles are just never going to work. This largely has no reason to exist either. If you're looking for efficient playback, you can use vo_gpu/vo_gpu_next in dumb mode with vaapi decoding. You can also use vo_dmabuf_wayland with vaapi as well to avoid even more GPU to CPU copies and theoretically be even more efficient.
1 parent af47c1d commit 20fcd01

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deprecate `--vo=vaapi`

DOCS/man/vo.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ Available video output drivers are:
319319
This is low quality, and has issues with OSD. We strongly recommend that
320320
you use ``--vo=gpu`` with ``--hwdec=vaapi`` instead.
321321

322+
.. warning:: This VO is deprecated will be removed next release.
323+
322324
The following global options are supported by this video output:
323325

324326
``--vo-vaapi-scaling=<algorithm>``

video/out/vo_vaapi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,8 @@ static int preinit(struct vo *vo)
826826
vo->hwdec_devs = hwdec_devices_create();
827827
hwdec_devices_add(vo->hwdec_devs, &p->mpvaapi->hwctx);
828828

829-
MP_WARN(vo, "Warning: this compatibility VO is low quality and may "
829+
MP_WARN(vo, "Warning: this VO is deprecated will be removed next release.\n"
830+
"This compatibility VO is low quality and may\n"
830831
"have issues with OSD, scaling, screenshots and more.\n"
831832
"vo=gpu-next is the preferred choice in any case and "
832833
"includes VA-API support via hwdec=vaapi or vaapi-copy.\n");

0 commit comments

Comments
 (0)