This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge2:applications:hardware-decoding [2022/11/04 08:34] frank |
products:sbc:edge2:applications:hardware-decoding [2025/09/09 21:26] (current) nick |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ===== Decoding ===== | ===== Decoding ===== | ||
| + | |||
| + | <WRAP important > | ||
| + | If encounter error, please add sudo and try again. | ||
| + | </ | ||
| 1. Check decoder. | 1. Check decoder. | ||
| Line 24: | Line 28: | ||
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| Setting pipeline to PAUSED ... | Setting pipeline to PAUSED ... | ||
| Pipeline is PREROLLING ... | Pipeline is PREROLLING ... | ||
| Line 38: | Line 42: | ||
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| Setting pipeline to PAUSED ... | Setting pipeline to PAUSED ... | ||
| Pipeline is PREROLLING ... | Pipeline is PREROLLING ... | ||
| Line 49: | Line 53: | ||
| If you want to play your decoded file, you can play with '' | 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. | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||