Use ffmpeg to support AMD graphics cards, nvidia graphics cards, and Intel graphics cards for hardware encoded screen recording.