VA-API video encoding on AMD 5700XT causes white pixels and issues on in-game scene changes
System information
- OS: Arch Linux
- GPU: 0c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] [1002:731f] (rev c1)
- Kernel version: 5.15.6
- Mesa version: 21.2.5
- Desktop manager and compositor: Gnome 41.2 / Mutter (On Wayland)
If applicable
- DXVK version: Proton Experimenal
- Wine/Proton version: Proton Experimenal
Describe the issue
When streaming gameplay with OBS and VA-API acceleration, two issues happen.
- On in-game scene changes or black screens, white pixels will show on the stream. You can see an example on the recording linked below.
- On this moments the encoding may glitch, OBS doesn't report any issue and eveything seems to be working fine, but the stream ends up on infinite buffering and won't continue. This happens when using FFMPEG VA-API encoding, when using Gstreamer VA-API encoding this issue may happen and for a few secods it will go into buffering, but ends up recovering itself. This issue can't be seen on recorded streams, will link an example recorded by myself.
PD: This has happened with more games and it's not something new. I'm just testing it with Resident Evil: Village since it's easy to trigger it during the new game scene transitions.
Screenshots/video files (if applicable)
White pixels issue: https://www.twitch.tv/videos/1226043335 on minute: 13:30
Infinite buffering issue: https://imgur.com/a/A6ihxmh
Context: When starting new game, a difficulty selector shows and once it's chosen the cinematic you are seeing will play. When changing from the menu to the cinematic it goes to infinite loop. This issue can also happen when in-game scene changes of gameplay, so it's not related to media foundation workarounds for Proton