Recordings with hardware encoding at 1920x1080@60 appear lagging
System information
- OS: Arch Linux
- GPU:
10:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e1)
- Kernel version:
Linux desktop 5.14.7-arch1-1 #1 SMP PREEMPT Wed, 22 Sep 2021 21:35:11 +0000 x86_64 GNU/Linux
- Mesa version:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 21.2.2
- Xserver version: 1.20.13
- Desktop manager and compositor: BSPWM and Compton
- dmesg: https://pastebin.com/JFbWdZsQ
Description
First, I am not sure whether this is a Mesa issue.
When I try to record at 1920x1080@60 using my Radeon RX 590, recordings are looking like this: https://www.youtube.com/watch?v=En1i3Cf2mkM
For some reason, they appear lagging even though my PC is definitely not lagging when I record (I have for instance far over 60 FPS in games during recordings).
This issue does not occur if
- I set the resolution to something lower than 1920x1080 (for example 1280x720)
- or if I set the FPS to something lower than 60 FPS (for example 30 FPS).
Here are some other people having the same issue with AMD graphic cards:
- https://www.phoronix.com/forums/forum/linux-graphics-x-org-drivers/open-source-amd-linux/1094693-can-amd-rx570-into-1080p60fps-hardware-video-encoding
- https://github.com/obsproject/obs-studio/issues/3254
- https://www.reddit.com/r/AMDHelp/comments/b67eol/vce_is_overload_for_1080p60fps_with_rx580_on_linux/
It also seems to occur with a RX 570 or RX 580.
Log files
- OBS log: https://obsproject.com/logs/u1a9N8J041Vg2gpA (Maybe it's helpful?)
- OBS settings: https://image.patri9ck.dev/2GlPv.png
It's been a while since I used Windows but as far as I can remember, recordings using hardware encoding worked fine at 1920x1080@60 so I don't think it is a hardware issue.