1#!/bin/sh 2 3export DISPLAY=:0.0 4#export GST_DEBUG=*:5 5#export GST_DEBUG_FILE=/tmp/2.txt 6export mpp_syslog_perror=1 7 8case "$1" in 9 rk3036) ###TODO:Display bug, since rk3036 just two overlay. 10 sudo service lightdm stop 11 sleep 2 12 gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! kmssink plane-id=52 13 sudo service lightdm start 14 ;; 15 rk) ### rkximagesink for better performance 16 gst-launch-1.0 uridecodebin uri=file:///usr/local/test.mp4 ! rkximagesink 17 ;; 18*) 19 ### xvimagesink for better compatibility 20 gst-play-1.0 --videosink=xvimagesink /usr/local/test.mp4 21 ;; 22esac 23shift 24