Hi,
I’m deciding between ordering a Rock Pi 4 or a Rock Pi 3A. My main objective is to put the SBC to work with streaming and the most relevant part I’m looking at is H.264 encoding. From the specs, I can’t answer some questions I have, so I hope you can help with them.
Can both GPUs handle H.264 encoding at 720p and 60fps?
I’m looking for high-speed H.264 encoding that must result in ultra-low latency streaming. Which one do you think will give me the lower latency?
Just some thoughts / considerations about your question;
Looks like you want a live encoding with a webcam, right? 720p 60fps is familiar with webcam, i guess.
I have rk3399 with a dual camera (ov4689), although the camera can work at 720p 180fps (according to specification) , the available driver works with 30fps, unless it is modified by a kernel expert. You may face the same problem with imx219, i don’t have one to confirm this is true. There is a post about imx219 with rockpi 4, you may ask him what frame rate is possible.
I have not done any benchmark, rk3568 seems to have a better and faster encoder than rk3399 but latency does not depend only on encoding speed, and rk3399 is a more powerhouse that could influence the final latency results.
If you set it for 720p 30fps it could be possible to do some simple benchmarks and compare.
Output file size when saved: enc.h264 18844493 bytes
RK3399 Debian 10
real
0m28.126s
user
0m2.309s
sys
0m6.219s
Output file size when saved: enc.h264 19714524 bytes
RK3399 - Ubuntu 20.04
real
0m45.088s
user
0m2.339s
sys
0m7.264s
Output file size when saved: enc.h264 18802221 bytes
The odd thing is that Debian is faster than Ubuntu for this command. It should be the other way around.
RK3399 encodes some frames (a few ones) with artifacts, while RK3568 encoded all frames fine.
The enc.h264 frame with artifacts at the bottom (1920x1080):
Thanks, @avaf! How many frames do those video have (trying to have and idea of how many milliseconds one frame take)? The difference between RK3568 and RK3399 is quite high. I was not expecting such a difference.