I am close to the end of my project, but one thing still is stopping me. I have yet to find the most up to date plugin that can achieve the following: Combine multiple video streams (from nvarguscamerasrc) and combine them into a format that can then be passed into nvv4l2h265enc, and then be saved to file.
I thought glvideomixer would be good enough for this purpose, but running the following command gives several errors:
I found one single example that worked in the context I was looking for.
I have another question though, as I am unsure if what I found had the correct answer or not: Is there a maximum resolution to the hardware accelerated nvv4l2h265enc and nvv4l2h264enc encoders? If so, what is it?
I think that nvv4l2h264enc has a maximum width of 4096, and for nvv4l2h265enc it should be 8192.
Never hit the limit in height, I cannot say but it’s easy to try.
I saw this post right here Using h265 with resolutions bigger than 4096 - #10 by DaneLLL, and I am not entirely sure which one is the correct maximum value, but I haven’t been able to use more than the values specified on that forum. I will get the command I have been using so far in a second.
Sorry, I’ve only quickly tested with AGX Xavier running R32.6.1. Not sure if the NVENC HW is the same in TX2 and Xavier SoCs. The available memory may also be different.
Note that odd widh may not be supported. Better try increasing by steps of 2.
Just sharing what works on my AGX Xavier capturing 1080p30, composing and rescaling to 7160x4320, encoding into H265 and storing into mkv container file:
For our project, we need at least 1 fps for recording, so I am using this as a baseline. Eventually, if possible, we might tick it up to 2, maybe 3 fps.
I think I was just doing something wrong, although not sure besides increasing height and width by only 1, when that is not supported.