gstreamer video framework
-
The latest ubuntu22.04 firmware(20230303-ubuntu-22.04-preinstall-desktop-arm64) integrates ffmpeg and gstreamer video frames, and can call the hardware codec module of Rockchip, which can greatly improve the video codec performance of the device and reduce the CPU load.
-
With kmssink, the CPU utilization of 4K video playback is reduced to about 10%.The disadvantage is that it occupies one layer.
-
The following command can obtain layer information.
sudo cat /sys/kernel/debug/dri/0/state | grep "plane"
- Use the following command to play the video and replace xxx.mp4 with the actual path. 88 represents the layer, kmssink only supports the display of Esmart layer.
gst-play-1.0 xxx.mp4 --videosink='kmssink plane-id=88'
- You can also use other plug-ins, such as xvimagesink glimagesink waylandsink, etc.
-
-
sudo cat /sys/kernel/debug/dri/0/state | grep "plane["
这个命令好像不行sudo cat /sys/kernel/debug/dri/0/state | grep "plane"
或
sudo cat /sys/kernel/debug/dri/0/state | grep "plane\["
-
@jugg 已经修改,谢谢提醒。
-
@george
gstramer的硬件解码插件叫什么 只有openh264dec ?