It is strange that it --enable-hwaccel=h264_vaapiis indicated twice in the line, but I see that it is in the original assembly of the script that you linked to.
DXVA2 DirectX Video Acceleration, Windows. . VAAPI API . , Unix, Wikipedia , Android.
, . , ? , Android, MediaPlayer , - . , , , , , AndroidBitmaps ( Android).
FFmpeg VAAPI, VAAPI- > Android. FFmpeg, Android, VAAPI? VAAPI Android? , VAAPI - Android ( , ), , VAAPI . FFmpeg VAAPI? , FFmpeg .