GPUOpen-LibrariesAndSDKs / AMF

The Advanced Media Framework (AMF) SDK provides developers with optimal access to AMD devices for multimedia processing
Other
585 stars 149 forks source link

[Bug]: <HEVC encoding for PICO 4> #397

Open azzteck opened 1 year ago

azzteck commented 1 year ago

HEVC encoder in AMD cards works badly with square resolutions that are present in PICO 4. When using latest beta drivers HEVC encoding finally works with Virtual Desktop on PICO 4 but has stretching on right eye, cause as I've been told by VD devs is caused by AMD HEVC handling of square resolutions.

Thanks in advance. (That problem appears on screenshots of right eye too, left eye is fine)

Windows 11 21H2 22000.2057 6800XT 23.5.2 Screenshot_VirtualDesktop Android_2022 12 03-15 25 58 199_588 Screenshot_VirtualDesktop Android_2023 04 19-00 14 05 785_274

MikhailAMD commented 1 year ago

HEVC encoder doesn't know about eyes. I saw this problem before. It happens if an app has issues with handling HEVC cropping from HEVC VUI header after decoder. It is needed as HEVC elementary stream is aligned to 16 or to 64. Check AMD ReLive VR with HEVC streaming to Quest.

azzteck commented 1 year ago

Unfortunately, I don't have Quest 2. The developer of the VirtualDesktop program says that this is a problem in the AMD driver. He said that this problem does not exist on Quest 2, because it does not have a square resolution, also this problem does not exist on Pico 4 when using Nvidia graphics cards.

DimkaTsv commented 1 year ago

The developer of the VirtualDesktop program says that this is a problem in the AMD driver.

Tbh... Developers love to blame AMD drivers all the time. And sometimes issue is truly on AMD side. But far from always. Quite often issues root in developers not adapting their software to AMD, and as Nvidia have different specs and nuances, well... You can see results. But they will never admit, neither try to fix it from their side, as it is easier to push blame on AMD.

As well as we will not know who is actually at blame there. At least for now we don't.

P.S, AMD HW limit on encoder resolution for RDNA2 is 8192x4352, not 8192x8192... Meaning no square picture with more than 4352 vertical resolution (which is still a lot, and encoder speed at this point is too bad for VR usage). So it should be enough to not hit limit on resolution.


07.02.2024 I saw version of Virtual Desktop that mentioned "workaround" for HEVC on AMD cards which was released 19.08.2023. But i don't own Pico, so i cannot check. People still have complaints over this though, it seems, based on AMD user to user support forum topic?