I was having the same issues (i3+recordmyscreen), so I switched to another environment for screen recording. I later switched to simplescreenrecorder, which I like a lot more. Maybe SSR works with i3? I haven't tried that yet.
Thanks for the hint. Not doing much screen recording, but will give ssr a try next time :-)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!