AMD va-api outputs corrupt encoding
System information
- GPU: AMD 6600XT/6750XT/6650XT
- Kernel version: 6.1.8-arch1-1, 6.1.6-arch1-3, 6.0.12-76060006-generic (pop os 22.04)
- Mesa version: mesa 22.3.3 arch, mesa 22.3.3 kisak, mesa 22.3.3 flatpak
Describe the issue
Users report the encoder eventually entering a state where it continues to produce "frames" but typically 59/60 of these are duplicates and the quality of few real frames emitted are of significantly degraded quality. How long this takes seems to vary, users report that once they trigger it once it usually happens within 5 minutes of beginning encoding but sometimes may take over 30m to occur.
All encodings were done with CBR rate control.
Regression
All reports appear to have been on 22.3.3, one user mentioned reverting to 22.3.2 but still having this issue.
Screenshots/video files (if applicable)
example2.mkv (this was downloaded from youtube unlike example1.mkv so it may not reflect precisely the encoder's exact output)
Any extra information would be greatly appreciated
I don't have hardware to reproduce, so this is all I can provide realistically. Users also reported using alternative va-api based implementations like gstreamer and this issue persisting.