Does the Pi 4 have hardware video decoding in mainline Linux yet? I gave up on Raspberry stuff after buying a 4 and finding out that the mainline support was so much worse than expected.
It seems the answer is 'yes', especially for formats like h.264. Notably, they discontinued HW support in the RPI5 and chose to process it through software instead. This approach saves money since they don't need to pay for the intellectual property rights in the System on Chip (SoC). Additionally, the BCM2712 handles the video processing w/out breaking a sweat.