This is an old revision of the document!
This page introduces how to use hardware encoding on VIM4.
Only supoport Amlgoic 5.4 Kernel.
aml_enc_test 1080p.nv12 dump.h264 1920 1080 30 30 6000000 100 1 0 2 4
The encoded file is dump.h264
.
aml_enc_test 1080p.nv12 dump.h265 1920 1080 30 30 6000000 100 1 0 2 5
The encoded file is dump.h265
.
jpeg_enc_test 1080p.nv12 dump.jpg 1920 1080 100 3 0 16 16 0
The encoded file is dump.jpg
.
You need to install the gstreamer encoder plugins:
sudo apt update sudo apt install gstreamer-aml
Check the gstreamer encoder plungins:
$ gst-inspect-1.0 | grep aml
amlvenc: amlvenc: Amlogic h264/h265 Multi-Encoder