Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:edge2:applications:hardware-decoding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:edge2:applications:hardware-decoding [2022/11/04 09:14]
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.
 +</WRAP>
  
 1. Check decoder. 1. Check decoder.
Line 49: Line 53:
  
 If you want to play your decoded file, you can play with ''ffpaly''. If you want to play your decoded file, you can play with ''ffpaly''.
 +
 +4. Decoding from RTSP stream and preview.
 +
 +
 +<tabbox Ubuntu 24.04>
 +
 +You can use gstreamer ''waylandsink'' to preview the video on Ubuntu Wayland desktop:
 +
 +```shell
 +gst-launch-1.0 rtspsrc location=rtsp://USERNAME:PASSWD@192.168.xxx.xxx/snl/live/1/1 ! rtph264depay ! h264parse ! mppvideodec ! video/x-raw,format=NV12 ! waylandsink
 +```
 +
 +You can use the command below to check display fps:
 +
 +```shell
 +gst-launch-1.0 -v rtspsrc location=rtsp://USERNAME:PASSWD@192.168.xxx.xxx/snl/live/1/1 ! rtph264depay ! h264parse ! mppvideodec ! video/x-raw,format=NV12 ! fpsdisplaysink video-sink=waylandsink sync=false text-overlay=false
 +
 +```
 +
 +Display with ''ffmpeg'':
 +
 +```shell
 +ffplay -vcodec h264_rkmpp rtsp://USERNAME:PASSWD@192.168.xxx.xxx/snl/live/1/1
 +```
 +
 +<tabbox Ubuntu 22.04>
 +
 +You can use gstreamer ''clutterautovideosink'' to preview the video on Ubuntu Wayland desktop:
 +
 +```shell
 +gst-launch-1.0 rtspsrc location=rtsp://USERNAME:PASSWD@192.168.xxx.xxx/snl/live/1/1 ! rtph264depay ! h264parse ! mppvideodec ! video/x-raw,format=NV12 ! clutterautovideosink
 +```
 +
 +You can use the command below to check display fps:
 +
 +```shell
 +gst-launch-1.0 -v rtspsrc location=rtsp://USERNAME:PASSWD@192.168.xxx.xxx/snl/live/1/1 ! rtph264depay ! h264parse ! mppvideodec ! video/x-raw,format=NV12 ! fpsdisplaysink video-sink=clutterautovideosink sync=false text-overlay=false
 +```
 +
 +You press ''Alt + F7'' and then move mouse to move the windown.
 +
 +</tabbox>
 +
 +<WRAP tip >
 +Please replace the RTSP stream with yours.
 +</WRAP>
 +
 +
 +
Last modified: 2022/11/04 09:14 by frank