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-decoding [2022/12/22 21:44] nick |
products:sbc:vim4:applications:hardware-decoding [2024/09/13 02:57] (current) nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
~~tag> | ~~tag> | ||
- | |||
====== VIM4 Hardware Decoding ====== | ====== VIM4 Hardware Decoding ====== | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This page introduces how to use the hardware decoding | + | This page introduces how to use hardware decoding. |
<WRAP important > | <WRAP important > | ||
- | Only supoport Amlgoic 5.4 Kernel. | + | Only supoport Amlgoic 5.4/5.15 Kernel. |
</ | </ | ||
Line 15: | Line 14: | ||
===== H264 Hardware Decoding | ===== H264 Hardware Decoding | ||
- | Here is an example to decode H264 file to NV12 format file. | + | Here is an example to decode H264 file to NV12 and then encode to H264. |
- | ```shell | + | Decoding & encoding: |
- | gst-launch-1.0 filesrc location=/ | + | |
- | ``` | + | |
- | + | ||
- | Another example to decode video from USB camera: | + | |
```shell | ```shell | ||
- | gst-launch-1.0 | + | gst-launch-1.0 |
``` | ``` | ||
===== H265 Hardware Decoding | ===== H265 Hardware Decoding | ||
- | Here is an example to decode | + | Here is an example to decode |
+ | |||
+ | Decoding & encoding: | ||
```shell | ```shell | ||
- | gst-launch-1.0 filesrc location=/ | + | gst-launch-1.0 filesrc location=/ |
``` | ``` | ||
+ | ===== MJPEG Hardware Decoding | ||
+ | |||
+ | An example to decode video from USB camera and encode to H264: | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 v4l2src device=/ | ||
+ | ``` | ||