This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:edge2:applications:hardware-encoding [2022/09/07 02:15] nick created |
products:sbc:edge2:applications:hardware-encoding [2024/05/21 06:18] (current) jacobe |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Edge2 Hardware Encoding ====== | ====== Edge2 Hardware Encoding ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | This document mainly introduces how to use hardware encoding on Edge2. | ||
+ | |||
+ | ===== Encoding ===== | ||
+ | |||
+ | <WRAP important > | ||
+ | If encounter error, please add sudo and try again. | ||
+ | </ | ||
+ | |||
+ | 1. Check encoder. | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | typefindfunctions: | ||
+ | |||
+ | ``` | ||
+ | |||
+ | 2. Encoding format '' | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | Setting pipeline to PAUSED ... | ||
+ | Pipeline is PREROLLING ... | ||
+ | Pipeline is PREROLLED ... | ||
+ | Setting pipeline to PLAYING ... | ||
+ | Redistribute latency... | ||
+ | New clock: GstSystemClock | ||
+ | 0:00:16.1 / 0:12:05.0 (2.2 %) | ||
+ | ^Chandling interrupt. (2.8 %) | ||
+ | |||
+ | ``` | ||
+ | |||
+ | 3. Get data from USB camera and encode. | ||
+ | |||
+ | <tabbox kernel 5.10.66> | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | ``` | ||
+ | |||
+ | <tabbox Other version> | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | ``` | ||
+ | |||
+ | </ | ||
+ | |||
+ | Other encoding formats are used similarly. Just replace the corresponding encoder. | ||