ALVR icon indicating copy to clipboard operation
ALVR copied to clipboard

Encoder rewrite

Open zmerp opened this issue 4 years ago • 8 comments
trafficstars

Replace Nvidia and AMD encoders on Windows and VAAPI and software encoders on Linux with a single codepath using the Vulkan video extensions. The extensions are still provisional.

Requirements:

  • [x] Support for HEVC on Nvidia
  • [ ] On Nvidia hardware, the support must move from beta drivers to stable
  • [ ] Support from AMD (and possibly Intel)

Todo:

  • [ ] Initial simple implementation
  • [ ] Allow multiple encoder instances (sliced encoding)

zmerp avatar Oct 06 '21 11:10 zmerp

Latest news: https://www.phoronix.com/scan.php?page=news_item&px=Vulkan-Video-XDC2021

zmerp avatar Oct 06 '21 17:10 zmerp

https://www.phoronix.com/scan.php?page=news_item&px=Vulkan-Video-Mesa-Progress

zmerp avatar Dec 28 '21 10:12 zmerp

https://www.phoronix.com/news/RADV-Vulkan-Video-H264-H265

Vixea avatar Dec 15 '22 20:12 Vixea

https://www.phoronix.com/news/RADV-Vulkan-Video-H264-Encode

ColdIce1605 avatar Dec 29 '22 11:12 ColdIce1605

Any updates on this? Would be really awesome, considering that for some reason, ALVR-git (on Manjaro using the AUR) fails to create the VAAPI encoder on my 6800 XT, even while using the Mensa-nonfree drivers provided by the maintainers of Manjaro (https://github.com/mesa-freeworld/mesa-nonfree). I can only use the SW decoder and while it's somewhat playable, it makes me dizzy because of the ~30ms of additional latency.

thorsten-passfeld avatar Apr 09 '23 17:04 thorsten-passfeld

No update not that it would likely change anything as it's still using the H264/5 specification under the hood though it should work with vaapi assuming that you did also install everything correctly if you join our discord members possibly myself can provide you more help there.

Vixea avatar Apr 09 '23 18:04 Vixea

On Nvidia hardware, the support must move from beta drivers to stable

On linux 535.54.03 the extensions are now available in stable.

Added support for the VK_KHR_video_queue, VK_KHR_video_decode_queue, VK_KHR_video_decode_h264 and VK_KHR_video_decode_h265 extensions. Source: https://www.nvidia.co.uk/Download/driverResults.aspx/205541/en-uk

hitsounds avatar Jun 20 '23 17:06 hitsounds

These are only the decode extensions we need encode

Vixea avatar Jun 20 '23 18:06 Vixea