How to solve the problem of encoding resolution limitation in desktop GPUs

Environment: rtx4080ti videocodec12.0 cuda11.1 opencv4.9
There are 8x4k video streams that need to be concatenated into a super high resolution (3840 * 4, 2160 * 2) video stream in 2 rows and 4 columns for encoding and streaming. However, upon checking the matrix supported by the GPU, the maximum support for H264 encoding is 4k, and the maximum support for H265 encoding is 8k. May I ask how to break through the encoding resolution limit and perform GPU encoding on ultra high resolutions (3840 * 4, 2160 * 2) or higher, or what other methods can be used to achieve this?

Hello @9129244 and welcome to the NVIDIA developer forums.

Please refrain from cross-posting, especially 3 times. The other original post in the Video Processing subcategory should suffice for people to find it and give helpful advice if any.

Thanks!