This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge-2l:applications:hardware-decoding [2025/11/27 02:39] gray ↷ Page moved from local:users:start:applications:hardware-decoding to local:users:gray:products:sbc:edge-2l:applications:hardware-decoding |
products:sbc:edge-2l:applications:hardware-decoding [2026/05/11 02:46] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Edge-2L | + | ====== Edge-2L |
| - | ===== Introduction ===== | + | {{page>products:sbc:edge2:applications:hardware-decoding& |
| - | + | ||
| - | This document mainly introduces how to use hardware decoding on Edge-2L. | + | |
| - | + | ||
| - | ===== Decoding ===== | + | |
| - | + | ||
| - | <WRAP important | + | |
| - | If encounter error, please add sudo and try again. | + | |
| - | </ | + | |
| - | + | ||
| - | 1. Check decoder. | + | |
| - | + | ||
| - | ```shell | + | |
| - | khadas@Khadas:~$ gst-inspect-1.0 | grep mpp | + | |
| - | 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. | + | |
| - | </ | + | |