This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:vim1s:applications:hardware-decoding [2022/07/17 21:31] 127.0.0.1 external edit |
products:sbc:vim1s:applications:hardware-decoding [2024/09/13 02:30] (current) nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ~~tag> |
+ | ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | This page introduces how to use hardware decoding. | ||
+ | |||
+ | |||
+ | <WRAP important > | ||
+ | Only supoport Amlgoic 5.4/5.15 Kernel. | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== H264 Hardware Decoding | ||
+ | |||
+ | Here is an example to decode H264 file to NV12. | ||
+ | |||
+ | |||
+ | Decoding & encoding: | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 filesrc location=/ | ||
+ | ``` | ||
+ | |||
+ | ===== H265 Hardware Decoding | ||
+ | |||
+ | Here is an example to decode H265 file to NV12. | ||
+ | |||
+ | Decoding & encoding: | ||
+ | |||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 filesrc location=/ | ||
+ | ``` | ||
+ | |||
+ | ===== MJPEG Hardware Decoding | ||
+ | |||
+ | An example to decode video from USB camera: | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 v4l2src device=/ | ||
+ | ``` | ||