We are trying to convert 1920x1080 jpeg images to avif on Jetson TX2 with Jetpack 4.6.2.
Libaom compiled with -DENABLE_TESTS=0 -DENABLE_CCACHE=1 flags.
And using libheif to do the encoding.
It takes about 2 seconds to do the encoding on TX2 with default clock settings and ~1.5 sec after using jetson_clocks script.
Unfortunately 2 seconds is too much and we would like to have sub 1 second encoding times. Ideally even sub 0.5 sec times. One more constraint we have that it will have to work on TX1 (JP 4.6.2) as well.
Any ideas on performance improvement would be much appreciated, in hope that there is some kind of hardware specific lib implementation is available.
Thank you.
try rebuilding Libaom with a llvm version supporting Denver cores architecture. Note that these 2 Denver cores may be isolated from CPU scheduling from linux boot command line, so you may use these using cpu affinity/taskset.
Hi,
If you need AV1 hardware encoder, please consider use Orin series. For TX2, Jetson Nano, you would need to use software encoder and boost CPU clocks to get maximum throughput, as Honey Patouceul suggests.
Increasing speed of libaom to 9 dropped the timings to 0.6 ish sec but at a cost of quality.
@DaneLLL unfortunately we can’t switch to Orin but it is awesome hardware. @Honey_Patouceul I’ll try to rebuild libaom with llvm and will post new answer if there will be any significant gains.