Actually, Pi4 has hw support for h265 decoding, and encoding/decoding for h264. So not really an issue. You just need to use the omx stuff or something - been a while since i looked into this.
The pi can also easily keep up with the transfer rate as long as its not using NTFS. With ext4 or...