Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:vim4:applications:hardware-encoding

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:vim4:applications:hardware-encoding [2023/11/08 22:20]
nick [JPEG Hardware Encoding]
products:sbc:vim4:applications:hardware-encoding [2024/04/21 21:36] (current)
nick [Library Source Code]
Line 85: Line 85:
  
 Here is an example to decode H264 file to NV12 and then encode to H264. Here is an example to decode H264 file to NV12 and then encode to H264.
- 
-As we also need to use the hardware decoder, so we need to setup parameters for it first. 
- 
-```shell 
-echo 1 | sudo tee /sys/module/amvdec_ports/parameters/multiplanar 
-echo 1 | sudo tee /sys/module/amvdec_ports/parameters/bypass_vpp 
-echo 0 | sudo tee /sys/module/amvdec_ports/parameters/enable_drm_mode 
-``` 
  
 Decoding & encoding: Decoding & encoding:
Line 109: Line 101:
  
 Here is an example to decode H264 file to NV12 and then encode to H265. Here is an example to decode H264 file to NV12 and then encode to H265.
- 
-As we also need to use the hardware decoder, so we need to setup parameters for it first. 
- 
-```shell 
-echo 1 | sudo tee /sys/module/amvdec_ports/parameters/multiplanar 
-echo 1 | sudo tee /sys/module/amvdec_ports/parameters/bypass_vpp 
-echo 0 | sudo tee /sys/module/amvdec_ports/parameters/enable_drm_mode 
-``` 
  
 Decoding & encoding: Decoding & encoding:
Line 141: Line 125:
 ===== Library Source Code ===== ===== Library Source Code =====
  
-  * H264/H265 [[https://github.com/numbqq/encoder_libs_aml/tree/VIM4/multiEnc | Library Source Code]], check REDME to build. +  * VIM4 H264/H265 [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/multiEnc | Library Source Code of H264/H265 ]], check REDME to build. 
-  * JPEG [[https://github.com/numbqq/encoder_libs_aml/tree/VIM4/jpeg | Library Source Code]], check REDME to build.+  * VIM3/3L [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/amvenc_264H264 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/yocto-202311/jpeg | Library Source Code of JPEG]], check REDME to build.
  
Last modified: 2023/11/08 22:20 by nick