This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:edge2:applications:hardware-decoding [2022/09/07 02:15] nick created |
products:sbc:edge2:applications:hardware-decoding [2025/09/09 21:26] (current) nick |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Edge2 Hardware Decoding ====== | ====== Edge2 Hardware Decoding ====== | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | This document mainly introduces how to use hardware decoding on Edge2. | ||
+ | |||
+ | ===== Decoding ===== | ||
+ | |||
+ | <WRAP important > | ||
+ | If encounter error, please add sudo and try again. | ||
+ | </ | ||
+ | |||
+ | 1. Check decoder. | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | rockchipmpp: | ||
+ | typefindfunctions: | ||
+ | |||
+ | ``` | ||
+ | |||
+ | 2. Decoding with H264 file. | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | Setting pipeline to PAUSED ... | ||
+ | Pipeline is PREROLLING ... | ||
+ | Pipeline is PREROLLED ... | ||
+ | Setting pipeline to PLAYING ... | ||
+ | Redistribute latency... | ||
+ | New clock: GstSystemClock | ||
+ | 0:00:01.2 / 1:04:25.7 (0.0 %) | ||
+ | 0:00:02.2 / 1:33:57.6 (0.0 %) | ||
+ | ``` | ||
+ | |||
+ | 3. Decoding with MP4 file. | ||
+ | |||
+ | ```shell | ||
+ | khadas@Khadas: | ||
+ | Setting pipeline to PAUSED ... | ||
+ | Pipeline is PREROLLING ... | ||
+ | Pipeline is PREROLLED ... | ||
+ | Setting pipeline to PLAYING ... | ||
+ | Redistribute latency... | ||
+ | New clock: GstSystemClock | ||
+ | 0:00:01.8 / 0:10:34.5 (0.3 %) | ||
+ | ``` | ||
+ | |||
+ | If you want to play your decoded fileļ¼ you can play with '' | ||
+ | |||
+ | 4. Decoding from RTSP stream and preview. | ||
+ | |||
+ | |||
+ | <tabbox Ubuntu 24.04> | ||
+ | |||
+ | You can use gstreamer '' | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 rtspsrc location=rtsp:// | ||
+ | ``` | ||
+ | |||
+ | You can use the command below to check display fps: | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 -v rtspsrc location=rtsp:// | ||
+ | |||
+ | ``` | ||
+ | |||
+ | Display with '' | ||
+ | |||
+ | ```shell | ||
+ | ffplay -vcodec h264_rkmpp rtsp:// | ||
+ | ``` | ||
+ | |||
+ | <tabbox Ubuntu 22.04> | ||
+ | |||
+ | You can use gstreamer '' | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 rtspsrc location=rtsp:// | ||
+ | ``` | ||
+ | |||
+ | You can use the command below to check display fps: | ||
+ | |||
+ | ```shell | ||
+ | gst-launch-1.0 -v rtspsrc location=rtsp:// | ||
+ | ``` | ||
+ | |||
+ | You press '' | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP tip > | ||
+ | Please replace the RTSP stream with yours. | ||
+ | </ | ||
+ | |||
+ | |||