I've never tried it, but you might give this a try [FFmpeg Media Encoder]:-
https://play.google.com/store/apps/d...hl=en_GB&gl=US
Maybe google "android x264 encoder".
EDIT: This specifically mentions hardware encode,
LiTr: A lightweight video/audio transcoder for Android
Quote:
Lightweight hardware accelerated video/audio transcoder for Android, or LiTr for short
|
https://engineering.linkedin.com/blo...er-for-android
It seems to be a programmer API, but maybe if you use the name in searches, you may find something that uses it.
EDIT:
Its on GitHub, only as source code.
Google ""litr" android".