Hardware transcoding for Raspberry Pi 4 plex media server

v4l2m2m has better performance than omx, and is better maintained.

Make sure you’re running the latest rpi kernel and firmware (sudo rpi-update)

Using 64-bit RPI OS will also give you a bit of a speed boost.