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
Last revision Both sides next revision
products:sbc:vim4:applications:hardware-encoding [2023/11/08 22:20]
nick [JPEG Hardware Encoding]
products:sbc:vim4:applications:hardware-encoding [2024/04/19 04:15]
nick [H265 Hardware Encoding]
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. +  * 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.+  * JPEG [[gh>numbqq/encoder_libs_aml/tree/yocto-202311/jpeg | Library Source Code of JPEG]], check REDME to build.
  
Last modified: 2024/04/21 21:36 by nick