Does anyone know if it is possible to do hardware accelerated video encoding on the Rock 4C+ board?
I have a Rock 4C+. For my project with it I need to use ffmpeg to capture video from a webcam and write that to a file. I.e., I am making a video recorder. To make this work effectively I need to be able use the mali GPU to hardware encode the video stream from the webcam. I have been successful in capturing and writing the webcam’s video stream using ffmpeg with software encoding. But I have not been able to get hardware encoding to work. (Software encoding can’t keep up - degrades the video too much.)
My questions are:
-
Can the Rock 4C+ do video hardware encoding on any of available OS image? (I am currently using this image: rock-4c-plus_ubuntu_focal_kde_b60.img)
-
If so, are the necessary GPU drivers already part of this, or one of the other, images?
-
If not, is it feasible to obtain, compile, install the necessary drivers or libraries? Like, e.g., VA-API (vaapi)? (I am quite comfortable working from the command line.)
The version of ffmpeg I installed from your repo was apparently compiled with the switches enabled to support the vaapi encoding codecs; but when trying to invoke them for use ffmpeg says it can’t find the actual drivers on my system. So either none of them are present or perhaps I don’t know how to properly tell ffmpeg how to use them? (I have been able to use vaapi on my intel desktop fedora linux PC, so I’m somewhat familiar with the command line string to use the VA-API interface; not so much with the others.)
If anyone has any insight about hardware video encoding on these boards - I’m all ears.