Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim-5:applications:hardware-encoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
products:sbc:vim-5:applications:hardware-encoding [2026/09/14 03:59]
127.0.0.1 external edit
products:sbc:vim-5:applications:hardware-encoding [2026/09/14 06:20] (current)
nick [Library Source Code]
Line 1: Line 1:
-~~tag>VIM4 encoding~~ +~~tag>VIM-5 encoding~~ 
-====== VIM4 Hardware Encoding ======+====== VIM 5 Hardware Encoding ======
  
 ===== Introduction ===== ===== Introduction =====
  
-This page introduces how to use hardware encoding on VIM4.+This page introduces how to use hardware encoding on VIM 5.
  
  
 <WRAP important > <WRAP important >
-Only supoport Amlgoic 5.4/5.15 Kernel.+Only supoport Amlgoic 6.12 Kernel.
 </WRAP> </WRAP>
  
Line 15: Line 15:
  
 ==== H264 Hardware Encoding ==== ==== H264 Hardware Encoding ====
- 
-<tabbox VIM4> 
  
 ```shell ```shell
-aml_enc_test 1080p.nv12 dump.h264 1920 1080 30 30 6000000 100 1 0 2 4+tahoe_test 1080p.nv12 dump.h264 1920 1080 30 30 6000000 100 1 0 2 4
 ``` ```
- 
-<tabbox VIM3/3L> 
- 
-```shell 
-amvenc_test 1080p.nv12 dump.h264 1920 1080 30 30 6000000 100 1 0 2 4 
-``` 
-</tabbox> 
- 
  
 The encoded file is ''dump.h264''. The encoded file is ''dump.h264''.
  
 ==== H265 Hardware Encoding ==== ==== H265 Hardware Encoding ====
- 
- 
- 
-<tabbox VIM4> 
  
 ```shell ```shell
-aml_enc_test 1080p.nv12 dump.h265 1920 1080 30 30 6000000 100 1 0 2 5+tahoe_test 1080p.nv12 dump.h265 1920 1080 30 30 6000000 100 1 0 2 5
 ``` ```
- 
-<tabbox VIM3/3L> 
- 
-```shell 
-amvenc_test 1080p.nv12 dump.h265 1920 1080 30 30 6000000 100 1 0 2 5 
-``` 
-</tabbox> 
- 
  
 The encoded file is ''dump.h265''. The encoded file is ''dump.h265''.
Line 62: Line 40:
  
 ===== Encoding with Gstreamer ===== ===== Encoding with Gstreamer =====
- 
-==== Install Gstreamer Encoder Plugins ==== 
- 
-You need to install the gstreamer encoder plugins: 
- 
-```shell 
-sudo apt update 
-sudo apt install gstreamer-aml 
-``` 
  
 Check the gstreamer encoder plugins: Check the gstreamer encoder plugins:
Line 89: Line 58:
  
 ```shell ```shell
-gst-launch-1.0 filesrc location=/home/khadas/bbb_sunflower_1080p_60fps_normal.mp4 ! qtdemux name=d d.video_0 ! h264parse ! v4l2h264dec ! video/x-raw,format=NV12 ! amlvenc ! h264parse ! filesink location=/home/khadas/h264dec.h264+gst-launch-1.0 filesrc location=/home/khadas/bbb_sunflower_1080p_60fps_normal.mp4 ! qtdemux name=d d.video_0 ! h264parse ! amlv4l2h264dec ! video/x-raw,format=NV12 ! amlvenc ! h264parse ! filesink location=/home/khadas/h264dec.h264
 ``` ```
  
Line 95: Line 64:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/video0 io-mode=mmap num-buffers=300 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! amlvenc ! h264parse ! filesink location=test_0.h264+gst-launch-1.0 v4l2src device=/dev/video0 io-mode=mmap num-buffers=300 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! amlv4l2jpegdec ! amlvenc ! h264parse ! filesink location=test_0.h264
 ``` ```
  
Line 106: Line 75:
  
 ```shell ```shell
-gst-launch-1.0 filesrc location=/home/khadas/bbb_sunflower_1080p_60fps_normal.mp4 ! qtdemux name=d d.video_0 ! h264parse ! v4l2h264dec ! video/x-raw,format=NV12 ! amlvenc ! h265parse ! filesink location=/home/khadas/h264dec.h265+gst-launch-1.0 filesrc location=/home/khadas/bbb_sunflower_1080p_60fps_normal.mp4 ! qtdemux name=d d.video_0 ! h264parse ! amlv4l2h264dec ! video/x-raw,format=NV12 ! amlvenc ! h265parse ! filesink location=/home/khadas/h264dec.h265
 ``` ```
  
Line 112: Line 81:
  
 ```shell ```shell
-gst-launch-1.0 v4l2src device=/dev/video0 io-mode=mmap num-buffers=300 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! jpegdec ! amlvenc ! h265parse ! filesink location=test_0.h265+gst-launch-1.0 v4l2src device=/dev/video0 io-mode=mmap num-buffers=300 ! image/jpeg,width=1920,height=1080,framerate=30/1 ! amlv4l2jpegdec ! amlvenc ! h265parse ! filesink location=test_0.h265
 ``` ```
  
Line 125: Line 94:
 ===== Library Source Code ===== ===== Library Source Code =====
  
-  * VIM4 H264/H265 [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/multiEnc | Library Source Code of H264/H265 ]], check REDME to build. +  * VIM 5 H264/H265 [[gh>numbqq/encoder_libs_aml/tree/amlbian-202608/amvenc_tahoe | Library Source Code of H264/H265 ]], check REDME to build. 
-  * VIM3/3L [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/amvenc_264| H264 Library Source Code]] / [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/amvenc_265| H265 Library Source Code]], check REDME to build. +  * JPEG [[gh>numbqq/encoder_libs_aml/tree/amlbian-202608/jpeg | Library Source Code of JPEG]], check REDME to build.
-  * JPEG [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/jpeg | Library Source Code of JPEG]], check REDME to build.+
  
Last modified: 2026/09/14 03:59 by 127.0.0.1