This doesn't really make any sense - you can video encode 1080p H.264 on the Pi 5 in software without using more than ~25% of the CPU. And the quality, if you don't mind trading more CPU, will be far superior than the hardware encoders ever were.
[1] https://psx-spx.consoledev.net/macroblockdecodermdec/
[2] https://github.com/Lameguy64/PSn00bSDK/blob/master/examples/...