libaom-av1 has a constant quality (CQ) mode (like CRF in x264 and x265) which will ensure that every frame gets the number of bits it deserves to achieve a certain (perceptual) quality level, rather than encoding each frame to meet a bit rate target.
time ffmpeg -i a.mp4 -c:v libaom-av1 -crf 30 -f mp4 out.mp4
returns:
... real 260m18.018s user 1514m33.124s sys 0m43.892s
NOTE:
NOTE: