This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim4:applications:hardware-encoding [2023/11/08 20:09] nick [JPEG Hardware Encoding] |
products:sbc:vim4:applications:hardware-encoding [2024/04/21 21:36] (current) nick [Library Source Code] |
||
|---|---|---|---|
| Line 54: | Line 54: | ||
| ==== JPEG Hardware Encoding ==== | ==== JPEG Hardware Encoding ==== | ||
| - | <tabbox VIM4> | ||
| - | |||
| - | ```shell | ||
| - | jpeg_enc_test 1080p.nv12 dump.jpg 1920 1080 100 3 0 16 16 0 | ||
| - | ``` | ||
| - | |||
| - | <tabbox VIM3/3L> | ||
| ```shell | ```shell | ||
| jpeg_enc_test 1080p.nv12 dump.jpg 1920 1080 100 3 0 8 8 0 | jpeg_enc_test 1080p.nv12 dump.jpg 1920 1080 100 3 0 8 8 0 | ||
| ``` | ``` | ||
| - | </ | ||
| The encoded file is '' | The encoded file is '' | ||
| Line 93: | 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 / | ||
| - | echo 1 | sudo tee / | ||
| - | echo 0 | sudo tee / | ||
| - | ``` | ||
| Decoding & encoding: | Decoding & encoding: | ||
| Line 117: | 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 / | ||
| - | echo 1 | sudo tee / | ||
| - | echo 0 | sudo tee / | ||
| - | ``` | ||
| Decoding & encoding: | Decoding & encoding: | ||
| Line 149: | Line 125: | ||
| ===== Library Source Code ===== | ===== Library Source Code ===== | ||
| - | * H264/H265 [[https://github.com/ | + | * VIM4 H264/H265 [[gh> |
| - | * JPEG [[https:// | + | * VIM3/3L [[gh>numbqq/ |
| + | * JPEG [[gh>numbqq/ | ||