Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim4:applications:hardware-encoding

This is an old revision of the document!


VIM4 Hardware Encoding

Introduction

This page introduces how to use hardware encoding on VIM4.

Only supoport Amlgoic 5.4 Kernel.

Encoding with Amlogic Library

H264 Hardware Encoding

aml_enc_test 1080p.nv12 dump.h264 1920 1080 30 30 6000000 100 1 0 2 4

The encoded file is dump.h264.

H265 Hardware Encoding

aml_enc_test 1080p.nv12 dump.h265 1920 1080 30 30 6000000 100 1 0 2 5

The encoded file is dump.h265.

JPEG Hardware Encoding

jpeg_enc_test 1080p.nv12 dump.jpg 1920 1080 100 3 0 16 16 0

The encoded file is dump.jpg.

Encoding with Gstreamer

Install Gstreamer Encoder Plugins

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
Last modified: 2022/10/25 05:58 by nick