linuxOS_AP05/debian/test/rockchip-test/video/test_dec-gst.sh
2025-09-26 09:40:02 +08:00

24 lines
585 B
Bash
Executable File

#!/bin/sh
export DISPLAY=:0.0
#export GST_DEBUG=*:5
#export GST_DEBUG_FILE=/tmp/2.txt
export mpp_syslog_perror=1
case "$1" in
rk3036) ###TODO:Display bug, since rk3036 just two overlay.
sudo service lightdm stop
sleep 2
gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! kmssink plane-id=52
sudo service lightdm start
;;
rk) ### rkximagesink for better performance
gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! rkximagesink
;;
*)
### xvimagesink for better compatibility
gst-play-1.0 --videosink=xvimagesink /usr/local/test.mp4
;;
esac
shift